Forum Replies Created

Viewing 15 posts - 2,356 through 2,370 (of 2,506 total)
  • Author
    Posts
  • 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?

    in reply to: Is it possible to get URE in another language ? #1387
    Vladimir
    Keymaster

    Hi,

    I do not publish URE at Github. It is not the official copy.

    I published Pro version 4.18 today. It contains updated .pot file at the lang directory. Rename it to the ure-de_De.po and translate using poedit software.

    in reply to: BBPress #1385
    Vladimir
    Keymaster

    Or wait 1-2 days. I plan to publish Pro version 4.18. And you will get it through automatic update service.

    in reply to: BBPress #1384
    Vladimir
    Keymaster

    Probably you use Pro version 4.17, when standard version is 4.18. Try to Pro version 4.18 beta. You may take it from the same download page.

    Version 4.18 adds capabilities for registered custom post types automatically.

    in reply to: Uninstall – will it affect WP? #1374
    Vladimir
    Keymaster

    It depends from what do you wish to achieve.
    If you have no plugins or theme installed which added its own roles or user capabilities you may just use “Reset” button of User Role Editor. It will re-create roles from the scratch executing WordPress core code which WordPress uses itself during its installation.
    Be careful with ‘Reset’ button and read this post before try this function:
    https://www.role-editor.com/how-to-restore-deleted-wordpress-user-roles/
    This post contains other ways you may go to restore needed state of site roles.

    You may to remove your changes manually. For example, if you created some role, assign to users with that role some of WordPress built-in roles, then you may delete your own role using User Role Editor. The same is correct for new capabilities you added using URE.

    in reply to: Restrict Menu items (appearance) #1372
    Vladimir
    Keymaster

    Thanks for suggestion. I will check “User access manager” plugin and think on extending URE Pro’s functionality in this direction.

    in reply to: Uninstall – will it affect WP? #1371
    Vladimir
    Keymaster

    Hi Tony,

    All changes, which you made with a help of URE Pro, were made in place – at WordPress user roles and capabilities storage (database). Those changes are permanent. They not will be rollbacked with URE’s uninstall.

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