Forum Replies Created

Viewing 15 posts - 2,371 through 2,385 (of 2,516 total)
  • Author
    Posts
  • 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.

    in reply to: Block front-end options #1367
    Vladimir
    Keymaster

    In order to have a role, a user should login 1st. Not logged in user can not have any role.
    As home page is available to the public I offer you replace those links for not logged in users with the registration/login links.
    And add a filter for automatic redirection after login to the restricted page according to the assigned role. Like this:

    add_filter('login_redirect', 'redirect_user_after_login', 10, 3);
    function redirect_user_after_login($redirect_to, $request, $user) {
        
        if (isset( $user->allcaps ) && is_array( $user->allcaps )) {
            //check for admins
            if (!empty($user->allcaps['administrator'])) {
                // redirect them to the default place
                return $redirect_to;
            } else if (!empty($user->allcaps['candidate'])) {
                $redirect_to = home_url() .'/post-resume';
            } else if (!empty($user->allcaps['employer'])) {
                $redirect_to = home_url() .'/post-job';
            } else {                                                                                            
                return home_url();
            }
        } else {
            return $redirect_to;
        }   
    }
    
    in reply to: Block front-end options #1365
    Vladimir
    Keymaster

    Hi,
    If you set any view restriction for the post, that becomes unavailable for public visitors or not logged in users. In other case a user with role ‘candidate’ may log out and easy post a job as not logged in user.
    I suppose that not logged in users should not have right to send as job, as resume at your site.

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

    Hi,

    Please show on a screenshot to what menu do you wish to restrict access?

    in reply to: Blocking page options #1358
    Vladimir
    Keymaster

    There are no such options in URE. These metaboxes are not managed by user capabilities. So you need to add custom code to remove metabox for selected role. Like this for page attributes:

    function remove_page_metaboxes() {
    if (current_user_can('some_role')) {
       remove_meta_box('pageparentdiv', 'page', 'side');
    }
    }
    add_action('admin_menu', 'remove_page_metaboxes');
    
    in reply to: How to block menu items; not working #1355
    Vladimir
    Keymaster

    Very good news. Thanks for the help with tests.
    I hope now that I will publish Pro version 4.18 soon.

Viewing 15 posts - 2,371 through 2,385 (of 2,516 total)