Forum Replies Created

Viewing 15 posts - 2,356 through 2,370 (of 2,512 total)
  • Author
    Posts
  • in reply to: Prohibit access for visitors #1430
    Vladimir
    Keymaster

    Hi,

    Good question. It is not possible currently with roles selection metabox. I will add such functionality for the next update.

    in reply to: User posts/pages access. #1428
    Vladimir
    Keymaster

    Hi Laurence,

    Thanks for the good feedback. Please read my answer at this topic
    https://www.role-editor.com/forums/topic/user-pagesposts-only-viewable/

    in reply to: User pages/posts only viewable #1427
    Vladimir
    Keymaster

    Hi Laurence,

    You may achieve this by 2 ways:
    1) Try my other plugin https://wordpress.org/plugins/view-own-posts-media-only/
    or
    2) Use posts/pages edit restrictions add-on of a Pro version:
    https://www.role-editor.com/allow-user-edit-selected-posts/
    But do not input that users post IDs as restrictions list.
    If you wish that user add new posts add him or to the his role the ‘create_posts’ capability.
    In order to restrict him to view his own posts do the following:
    – Add to the user or to the his role ‘edit_others_posts’ capability. This will activate ‘edit posts/pages with author user ID (comma separated)’ section at that user profile.
    – Input that user ID to that field to restrict him to view/edit just his posts and any other custom posts types, like WooCommerce products, etc.

    in reply to: Thank You #1424
    Vladimir
    Keymaster

    Thank You.

    in reply to: Plugin is restricting author changes #1416
    Vladimir
    Keymaster

    Is this question still actual?

    in reply to: Plugin is restricting author changes #1414
    Vladimir
    Keymaster

    Please give more details about a problem? Don’t you see users with ‘author’ role at the ‘Author’ drop-down list at post editor or something else?

    in reply to: user_role_editor shortcode problem #1412
    Vladimir
    Keymaster

    Thanks for the additional information. I paid attention on that after read of your 1st message, but thought that text is shown by WordPress/bbPress that way. Please check the double quotes used at the shortcode. Instead of

    
    [user_role_editor roles=”caclient”]
    

    ordinal HTML complied double quote symbol should be there:

    
    [user_role_editor roles="caclient"]
    

    The same problem should be fixed here:

    
    [user_role_editor roles=”affiliate"]
    
    in reply to: user_role_editor shortcode problem #1410
    Vladimir
    Keymaster

    Thank you for the screencast. Shortcode works at my test multisite WordPress installation. So it should not be an issue.

    Could you please send your test post content as a .txt file attachment to support [at-sign] role-editor.com?

    in reply to: user_role_editor shortcode problem #1406
    Vladimir
    Keymaster

    Try other user with ‘caclient’ role. Will it change something? If ‘Yes’, assign to the former user other role and then assign ‘caclient’ back.

    I tested shortcode feature today (to be sure) and this is the record of my test.

    in reply to: Blocking page options #1401
    Vladimir
    Keymaster

    Thanks you for the suggestion. I will add interface for it with high probability. At this moment use this code (it is for the ‘Editor’ role):

    add_action('add_meta_boxes', 'remove_post_metaboxes', 11);
    
    function remove_post_metaboxes() {
      if (!current_user_can('editor')) {
        return;
      }
      
      $side_metaboxes = array('formatdiv', 'categorydiv', 'tagsdiv-post_tag', 'postimagediv');
      $normal_metaboxes = array('revisionsdiv', 'postexcerpt', 'trackbacksdiv', 'postcustom', 'commentstatusdiv', 'commentsdiv', 'slugdiv', 'authordiv');
      
      foreach($side_metaboxes as $metabox) {
        remove_meta_box($metabox, 'post', 'side');
      }
      foreach($normal_metaboxes as $metabox) {
        remove_meta_box($metabox, 'post', 'normal');
      }
            
    }
    
    add_action('add_meta_boxes', 'remove_page_metaboxes', 11);
    
    function remove_page_metaboxes() {
      if (!current_user_can('editor')) {
        return;
      }
      
      $side_metaboxes = array('pageparentdiv', 'postimagediv');
      $normal_metaboxes = array('postcustom', 'commentstatusdiv', 'commentsdiv', 'slugdiv', 'authordiv');
      
      foreach($side_metaboxes as $metabox) {
        remove_meta_box($metabox, 'page', 'side');
      }
      foreach($normal_metaboxes as $metabox) {
        remove_meta_box($metabox, 'page', 'normal');
      }
    
      
    }
    

    You may put it into functions.php file of your active theme or as the separate php file at wp-content/mu-plugins directory. Do not forget to start php file from <?php line.

    in reply to: Download package .zip corrupt? #1399
    Vladimir
    Keymaster

    More information about installation package download problem:
    https://www.role-editor.com/temporary-problems-plugin-download-automatic-updates/

    in reply to: Download package .zip corrupt? #1395
    Vladimir
    Keymaster

    Sure, that was a temporary server or network problem. Please try again.

    in reply to: Huge option box #1391
    Vladimir
    Keymaster

    It is probably CSS conflict with some other plugin or theme. Element ID or class may be the same as some other CSS file defined. Try to check via browser console what real CSS was applied to this element and by what file. Define the source of a problem by that CSS file path: in Google Chrome use F12, Elements…

    in reply to: Delete default roles #1389
    Vladimir
    Keymaster

    Hi,

    It is one time operation. So create wp-content/mu-plugins folder, create there remove_built_in_roles.php file ant copy/paste code below to that file:

    
    <?php
    add_action('admin_menu', 'remove_built_in_roles');
    
    function remove_built_in_roles() {
        global $wp_roles;
    
        $roles_to_remove = array('subscriber', 'contributor', 'author', 'editor');
    
        foreach ($roles_to_remove as $role) {
            if (isset($wp_roles->roles[$role])) {
                $wp_roles->remove_role($role);
            }
        }
    }
    
    

    It will remove all built-in roles except ‘administrator’ from your WordPress.

    After you will see that roles were removed you may delete this file from mu-plugins folder.

    in reply to: Huge option box #1388
    Vladimir
    Keymaster

    Hello Anthony,

    Could you please show the screenshot?

Viewing 15 posts - 2,356 through 2,370 (of 2,512 total)