Forum Replies Created

Viewing 15 posts - 1,126 through 1,140 (of 2,539 total)
  • Author
    Posts
  • in reply to: Custom backend CSS applied for custom role? #5047
    Vladimir
    Keymaster

    URE shows full admin menu for the ‘administrator’ role only. URE shows admin menu items to which selected role has access only – for all other roles.

    Do you see mentioned menu item if you open “Admin menu” for the “administrator” role? Look what capability protects needed menu item there. It will appear at the “Admin menu” for other role after you will grant that capability to a role.

    in reply to: unable to update User Role Editor Role #5044
    Vladimir
    Keymaster

    Go to the “Settings->User Role Editor”. Is license key active there? If it does not input your license key there again. Check update process after that.

    in reply to: Custom backend CSS applied for custom role? #5042
    Vladimir
    Keymaster

    There is no custom order functionality for admin menu in User Role Editor Pro.
    Look at Admin menu editor plugin.

    in reply to: The Admin Bar is not showing for one Role. #5040
    Vladimir
    Keymaster

    Yellow colored option is described here and not related to this topic.

    in reply to: Custom backend CSS applied for custom role? #5037
    Vladimir
    Keymaster

    Yes, we can. There is a hook to add additional option for roles.
    Code below adds “Add custom CSS” additional option. Custom CSS will be added to the backend for the selected role once you turn this option ON for it.

    
    add_filter('ure_role_additional_options', 'ure_custom_backend_css_option', 10, 1);
    
    function ure_custom_backend_css_option($items) {
        $item = URE_Role_Additional_Options::create_item('custom_backend_css', esc_html__('Add custom CSS', 'user-role-editor'), 'admin_init', 'ure_add_custom_backend_css');
        $items[$item->id] = $item;
        
        return $items;
    }
    
    function ure_add_custom_backend_css() {
    
      add_action('admin_head', 'ure_custom_backend_css');
    
    }
    
    function ure_custom_backend_css() {
    ?>
       <style>
          # URE custom CSS here
       </style>
    <?php                    
    }
    

    I set this code as a Must Use plugin for testing.

    in reply to: Hide an item from the user menu #5035
    Vladimir
    Keymaster

    OK. I need to make my own tests with it. What about access to the plugin or theme which registered those menu items?
    If it’s not critical for your data, you can export your site (without wp-uploads) using UpdraftPlus plugin and share files with support [at-sign] role-editor.com via DropBox or Google Drive.

    in reply to: Hide an item from the user menu #5033
    Vladimir
    Keymaster

    Hi,

    Give me more details. Did you use “Admin menu access” add-on to block those menu items? If yes, what is going wrong?
    Does user still can open the linked URL?
    Can you provide access to plugin or theme which registered those menu items/URLs?

    in reply to: The Admin Bar is not showing for one Role. #5030
    Vladimir
    Keymaster

    Hi,

    Do you use the latest version of URE Pro 4.47.2?
    Additional options section view for the current role was not refreshed properly after other current role selection until version 4.47.1. So it would show not real value set for the current role.

    Will user see top admin menu bar if you deactivate temporally all plugins? If yes, activate plugins back one by one to isolate a reason.

    in reply to: The Admin Bar is not showing for one Role. #5026
    Vladimir
    Keymaster

    Hi,

    Look if “Show Toolbar when viewing site” option is turned ON at this user profile page.

    in reply to: PHP version 5.4 #5025
    Vladimir
    Keymaster

    This change may produce PHP fatal error in some cases as URE Pro v. 4.47.2 uses some PHP functions available at PHP 5.4 only.

    I recommend to revert installed URE Pro to the previous version – 4.47.1. You can get it from the same download page – scroll to “Previous versions” section and select version from the list. Just replace user-role-edito-pro folder with files from 4.47.2. There was no any changes in the used data format.

    in reply to: The Admin Bar is not showing for one Role. #5019
    Vladimir
    Keymaster

    Hi,

    If a user has more than 1 this role assigned, then look at the “Hide admin bar” option for other role too.

    If you have WooCommerce activated then read this article.

    Vladimir
    Keymaster

    Hi Jesse,

    Go to “Settings->User Role Editor->Additional Modules” tab and set default values for “Content view restrictions” under “Activate content view restrictions” checkbox, like this:
    – Allow;
    – Any user role (logged in only).

    Any new added post or page will get by default these values and will be available for the logged in users only.

    in reply to: Restrict Orders View – 2 #5015
    Vladimir
    Keymaster

    Thanks for the link to the related discussion.
    They discussed and tested the update routine to replace orders post_author with related customer ID during database update for v. 3.5. So you will not need to update anything manually, I hope.
    Let’s wait 3.5 and see.

    in reply to: Restrict Orders View – 2 #5013
    Vladimir
    Keymaster

    WooCommerce support answered to one of my clients that they plan to change this with one of the future updates and write the customer ID to the order post_author field. I’m not sure when though.
    But if they will make that, it does not have sense to extract order customer ID from the post meta and make code more complex (slow) than it is now.
    What do you think?

    in reply to: Restrict Orders View – 2 #5011
    Vladimir
    Keymaster

    It depends from which user your orders are created, who is the author of orders. Are your customers authors of their orders?
    I have a report that WooCommerce may register orders from a user with ID=1. URE edit restrictions will not help in this case. You can check this using SQL command, which shows orders list:

    
    SELECT * FROM wp_posts where post_type='shop_order';
    

    Look at the field ‘post_author’ value. Is this field contains different values or it is not?

Viewing 15 posts - 1,126 through 1,140 (of 2,539 total)