WordPress.org

Ready to get started?Download WordPress

Forums

WP Bannerize
Issue with Contributors having access to the banner handling (5 posts)

  1. Roger N
    Member
    Posted 1 year ago #

    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/

  2. Roger N
    Member
    Posted 1 year ago #

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

    }

  3. Roger N
    Member
    Posted 1 year ago #

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

  4. MyUtd4Life
    Member
    Posted 1 year ago #

    Is there a solution for User Role Editor?

  5. Ruud Evers
    Member
    Posted 1 year ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.