WordPress.org

Support

Support » Plugins and Hacks » Issue with Contributors having access to the banner handling

Issue with Contributors having access to the banner handling

  • Hi!
    Thanks for what appears to be the best banner plugin available right now!

    However, I have some issues with it specifically for the site I manage. The site has many contributors that write articles. All this is handled via a plugin called Role Scoper. Unfortunately, WP Bannerize is completely open to manage for all the site contributors and I assume it relates to it having its own button in the left side menu, not being placed under ‘Settings’.

    Do you have any suggestions as to how I should handle this? As it is, I simply can’t use this plugin, as it would leave too many people with direct access to the banner handling.

    http://wordpress.org/extend/plugins/wp-bannerize/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Almost got it sorted by removing similar admin menu items out in the functions.php. However, the WP Bannerize is stubborn and still remains in the menu. Any advice? I assume it is to do the the name used in the restrictions.

    if (! current_user_can(‘manage_options’)){

    function remove_menus (){
    global $menu;
    $restricted = array(__(‘Quotes’), __(‘Events’), __(‘WP Bannerize’));
    end ($menu);
    while (prev($menu)){
    $value = explode(‘ ‘,$menu[key($menu)][0]);
    if(in_array($value[0] != NULL?$value[0]:”” , $restricted)){unset($menu[key($menu)]);
    }
    }

    }

    Found it. This removes WP Bannerize from non-admin’s admin menu:

    //hide wp-bannerize menu items to non administrators
    if ( is_admin() && ! current_user_can( ‘administrator’ ) ) {
    add_action( ‘admin_menu’, ‘mwr_remove_wpbannerize’ );
    function mwr_remove_wpbannerize() {
    remove_menu_page( ‘wp-bannerize-mainshow’ );
    }
    }

    MyUtd4Life
    Member

    @myutd4life

    Is there a solution for User Role Editor?

    Ruude4s
    Participant

    @yakti-ruud

    I would suggest to use the Adminimize plugin. It let’s you disable admin menu items for specifuc user roles and works great with custom post types.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Issue with Contributors having access to the banner handling’ is closed to new replies.