Forum Replies Created

Viewing 15 posts - 2,266 through 2,280 (of 2,512 total)
  • Author
    Posts
  • Vladimir
    Keymaster

    Hello,

    All fields in the “Posts/Pages/Custom Post Types Editor Restrictions” section including “with category/taxonomy ID (comma separated)” field are designed for the digital values input only. You should input digital IDs of a categories or taxonomies as a comma separated list. You should not input categories or taxonomies as a text. I confirm such input is ignored. I may add input filter for digits and commas only with one of the future updates.

    Vladimir
    Keymaster

    About your 2nd question
    I need this plugin copy to check its code, make tests and try to help you. Send its installation package to the [email protected]
    I will use it at my localhost for the testing purpose only.

    Vladimir
    Keymaster

    No problem. That’s fine that you found an answer for your question yourself.

    Vladimir
    Keymaster

    Hi Wolfgang,

    “Apply to All Sites” checkbox is available for the network activated User Role Editor, opened under Users menu of the main blog dashboard, not via Network admin. And user should be a super admin to see this option. Look on this screenshot:
    https://storage.googleapis.com/role-editor/downloads/support/ure-multisite-apply-to-all.png

    As I see “Network Update” button at your screenshot above – it was made under Network Admin, where this option is unavailable by design.

    Regards,
    Vladimir.

    Vladimir
    Keymaster

    Answer to question 1:
    If You press the ‘Update Network’ button while editing a custom role,
    1) You save changes of the custom role to the main blog;
    2) You overwrite all roles at all other sub-sites of your network with roles from your main blog. Of course after that you will lose all changes made to the roles at subsites.

    If you wish to apply to all sites a changes made to the custom role only, go to the main blog “Users”-“User Role Editor”, modify custom role there, click “Apply to All Sites” and then click “Update” button.

    P.S. I will try to answer on the question 2 tomorrow.

    Vladimir
    Keymaster

    Hi,
    ‘upload_files’ capability protects the “Media” menu and its items. “Editor” role includes it by default. Some plugin may modify this default settings. So if your editor can not access “Media Library”, try to deactivate all plugins and re-check if that helped.

    in reply to: Block Visual and Text Tabs #1663
    Vladimir
    Keymaster

    Code below removes all metaboxes from the post editor page for all users with “editor” role. Modify it for your own needs. Revisions metabox is ‘revisionsdiv’.


    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);

    in reply to: Block Visual and Text Tabs #1662
    Vladimir
    Keymaster

    Hi,

    This code removes all HTML tags from the post content before save it for all users with ‘author’ role:

    add_filter('content_save_pre', 'nohtml_in_posts');

    function nohtml_in_posts($content) {
    if (current_user_can('author')) {
    $content = wp_filter_nohtml_kses($content);
    }

    return $content;
    }

    Include it into active theme’s functions.php file.

    Vladimir
    Keymaster

    Hi, this plugin does not introduce its own capabilities. It uses built-in WordPress manage_options user capability for its menu item:
    https://storage.googleapis.com/role-editor/downloads/support/si-contact-form-capability.png

    You may find user capability for any admin menu item with a help of “Admin access add-on”:
    https://www.role-editor.com/block-admin-menu-items
    Just open it for the Administrator role and find needed menu item in the list.

    in reply to: Custom Admin Menus – Serious Bugs #1657
    Vladimir
    Keymaster

    Thanks for the information.
    Could you tell me from what plugin that custom menu is, so I may directly test URE with it?

    As about “Block not selected” option, it works currently as straightforward as it named – blocked (as result user is redirected) all not selected URLs. So if some link is clicked from the allowed page, but that link was not selected at menu items list (it may even be not presented there) user will not get access to it.

    in reply to: Additional Roles #1654
    Vladimir
    Keymaster

    Hi,

    Thanks. I found an issue in URE with your help:
    Other default roles (in addition to the primary role) was assigned to a new registered user for requests from the admin back-end only. Now this feature works for the requests from the front-end user registration forms too.

    Try next update: development version 4.19.1.b2. It should work as expected now.

    in reply to: Editing Restricted pages #1652
    Vladimir
    Keymaster

    In order to edit published page, user should have ‘edit_published_pages’ capability. I added it directly to the user. checkman-test may edit allowed page now.

    in reply to: "Options" does not exist #1651
    Vladimir
    Keymaster

    Hi,

    OK. Thanks for letting me know, that you find an answer yourself.

    in reply to: Editing Restricted pages #1645
    Vladimir
    Keymaster

    Is it possible to look on that data online? Send admin credentials to the [email protected]

    in reply to: Editing Restricted pages #1643
    Vladimir
    Keymaster

    If that post is from other author, then user should have ‘edit_others_posts’ capability to get permission to edit it.

Viewing 15 posts - 2,266 through 2,280 (of 2,512 total)