Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'toolbar'

Viewing 25 results - 401 through 425 (of 607 total)
  • Author
    Search Results
  • #152096
    Slava Abakumov
    Moderator

    Each user in the network can have different roles on different sites.
    That mean on site1 he is editor, on site2 he is subscriber and so on. These roles are only taken into account in WordPress Toolbar – when visiting different sites with the (dis)ability to post on them.

    BuddyPress itself currently ignores those roles.

    Faramarz
    Participant

    Hi again,

    I installed (but not activated) BP via /wp-admin/network/plugins.php then updated my wp-config.php to define ( ‘BP_ROOT_BLOG’, 2 ); but when I go to http://site.com/community/wp-admin/plugins.php and activate BP and click the “Installation Wizard” link in the toolbar, I get this error: You do not have sufficient permissions to access this page.

    And I am logged in as super admin.

    #150961
    nylarosie
    Participant

    Hi – manged to hide the ‘favorite topics’…now need to :

    1.Add the ‘groups’ main page from wp menu to the groups bp toolbar and

    2. Reorder the main nav on the toolbar

    ! Any suggestions?

    Nyla

    #150947
    danbpfr
    Participant

    hi @diondeville,

    to change the profile menu (on the top right of the ToolBar)
    <code>
    function my_change_profile_tab_order() {
    global $bp;

    $bp->bp_nav[‘settings’][‘position’] = 10;
    $bp->bp_nav[‘activity’][‘position’] = 20;
    $bp->bp_nav[‘friends’][‘position’] = 30;
    $bp->bp_nav[‘groups’][‘position’] = 40;
    $bp->bp_nav[‘blogs’][‘position’] = 50;
    $bp->bp_nav[‘messages’][‘position’] = 60;
    $bp->bp_nav[‘profile’][‘position’] = 70;
    }
    add_action( ‘bp_setup_nav’, ‘my_change_profile_tab_order’, 999 );</code>

    Take care with quotes when copy/pasting from here ! 😉

    #150939
    danbpfr
    Participant

    oops, sorry, was code for the old buddybar. It’s  now called Toolbar and implemented by default on BP, but i don’t use it.
    Also, be a bit more explicit next time you ask for something. They’re many menus in BP. 😉

    Use this in functions.php (tested: works on WP 3.5/BP 1.6.3 MS)

    
    function admin_bar_remove_this(){
    global $wp_admin_bar;
    $wp_admin_bar->remove_node('my-account-forums-favorites');
    }
    add_action('wp_before_admin_bar_render','admin_bar_remove_this');

    The node id’s are all in the footer html of each page where the toolbar appears. This means you have to view the page source code to get the node id you want to remove.
    Menu items are in li tags and each li as a ID which begins with “wp-admin-bar-” followed by “-node-name”
    Other tips here: http://jeffersonsnewspaper.org/2012/tips-for-using-the-wordpress-admin-bar-with-buddypress/

    Legacy reference here:
    https://codex.wordpress.org/Function_Reference/remove_node
    https://codex.buddypress.org/developer/theme-development/modifying-the-buddypress-admin-bar/

    #150725
    nigdowser
    Participant

    Wow! Thanks for that! Do I have to rename the buddypress-toolbar folder back to what it was or should I leave it as it is?

    Thanks again!

    #150714
    @mercime
    Participant

    Rename /wp-content/plugins/buddypress-toolbar/ folder to something like /wp-content/plugins/buddypress-toolbar-xxx/

    #150708
    nigdowser
    Participant

    In addition, I now get the following error message:

    Fatal Error:Call to undefined function bp_get_groups_root_slug() in /home/*******/wp-content/plugins/buddypress-toolbar/buddypress-toolbar.php

    The whole site is just junk at the moment…. please help!

    #150581
    Lynn Hill
    Participant

    I’ll delete the account that you created when you looked at the site. Thanks again.

    #150579
    imnotme82324
    Participant

    Hi Lynn, that’s great that you got it sorted out 😀 Thanks for letting us know.

    #150577
    Lynn Hill
    Participant

    Hi . I feel so silly because the mystery of the missing tool bar is now solved. Only admins and contributors need to see the toolbar, users in general have no need for it. All their menu settings are set within BP.

    Thank so much for your help.

    Lynn

    #150575
    Lynn Hill
    Participant

    Thanks will do that now and get back to you.

    #150571
    imnotme82324
    Participant

    Have you spoken to your theme developer to see if a filter was placed in your functions.php to hide the bar from guests and subscribers?

    #150554
    Lynn Hill
    Participant

    My pleasure thanks here it is. I approve members so I’ll look out for you. http://clandestinecakeclub.co.uk

    #150544
    Paul Wong-Gibbs
    Keymaster

    Can we get a link to your site so we can register an account and look for any obvious errors?

    #150541
    Lynn Hill
    Participant

    Hi again, I just want to add that I have just updated to the latest BP and the missing toolbar problem is still there, along with a few other things as well for new users. such as friends not being listed when they want to invite them to join newly created groups, not sure how long this has been going on, but definitely before the later BP update.

     

    #150527
    Lynn Hill
    Participant

    Hi Dyer,

    I’ve just deactivated the User Role plugin and the problem is still there, no toolbar for new users. This is the link to the plugin that I’m using. http://shinephp.com/user-role-editor-wordpress-plugin/

    Default setting is for all new users to be set as a subscriber.

     

    Many thanks

    Lynn

     

    #150525
    imnotme82324
    Participant

    Have you tried disabling the user role plugin to see if that helps? It would also be beneficial if you provided a link, or the exact title, of the user role plugin you’re using. It sounds like it’s a permission problem, but without knowing what the plugin is it’ll be hard to help you.

    #150151
    lwaltzer
    Participant

    Oops. Trying again:

    /**
    * In WP 3.5+, get_blogs_of_user() is much slower than in previous versions. As
    * a result, if you have a certain number of blogs, running get_blogs_of_user()
    * will create a memory timeout. This is a particular problem because
    * get_blogs_of_user() is called on every page, because of the toolbar.
    *
    * Ideally, there would be a way to short-circuit get_blogs_of_user(), or even
    * to prevent WordPress from calling get_blogs_of_user() while loading the
    * toolbar. But there is not. As a workaround, this function intercepts a key
    * step in get_blogs_of_user() – the get_user_meta() call that gets all of a
    * user’s metadata. If we determine that this request is coming from
    * get_blogs_of_user() (which we do by examining the debug_backtrace(), a truly
    * awful technique), AND that it’s one of the generic meta queries used by
    * get_blogs_of_user(), AND that the current user has more than 75 blogs, THEN
    * we strip all of the blog capability keys from the array of metadata,
    * tricking get_blogs_of_user() into thinking that the current user has no
    * blogs at all.
    */
    function bbg_admin_bar_hack( $check, $object_id, $meta_key, $single ) {
    // Only fire when looking at get_user_meta() with no params
    if ( ! $meta_key ) {

    // check to see whether this came from get_blogs_of_user()
    $db = debug_backtrace();
    $is_get_blogs_of_user = false;
    foreach ( $db as $dbk => $dbv ) {
    if ( ‘get_blogs_of_user’ == $dbv[‘function’] ) {
    $is_get_blogs_of_user = true;
    break;
    }
    }

    if ( $is_get_blogs_of_user ) {
    // Get the real metadata, but don’t recurse
    remove_filter( ‘get_user_metadata’, ‘bbg_admin_bar_hack’, 10, 4 );
    $meta = get_user_meta( $object_id );
    add_filter( ‘get_user_metadata’, ‘bbg_admin_bar_hack’, 10, 4 );

    // How many blogs does this user have?
    static $blog_count_of_user;
    if ( ! isset( $blog_count_of_user ) && is_user_logged_in() ) {
    $blog_count_of_user = 0;
    foreach ( $meta as $mk => $mv ) {
    if ( ‘capabilities’ === substr( $mk, -12 ) ) {
    $blog_count_of_user++;
    }
    }
    }

    // We only care about those with counts > 75
    if ( $blog_count_of_user > 75 ) {
    static $clean_keys;
    if ( isset( $clean_keys ) ) {
    return $clean_keys;
    } else {
    foreach ( $meta as $mk => $mv ) {
    if ( ‘capabilities’ === substr( $mk, -12 ) ) {
    unset( $meta[ $mk ] );
    }
    }

    $clean_keys = $meta;
    return $meta;
    }
    }
    }

    }

    return $check;
    }
    add_filter( ‘get_user_metadata’, ‘bbg_admin_bar_hack’, 10, 4 );

    #150009
    ngoegan
    Participant

    Great. Someone hacked into the site and removed the Dashboard toolbar at the top of the site. I’m thinking ning may not be such a bad option after all.

    #149727
    latinoleader
    Participant

    I’m confused…

    To keep the admin toolbar in place for everyone, all the time, go to Settings > BuddyPress > Settings page — Main Settings – Toolbar and leave the box unchecked.

    The Toolbar line under Main Settings reads “[checkbox] Show the Toolbar for logged out users”

    If I uncheck the box, would the toolbar not disappear for visitors that have not logged in???

    #149256
    @mercime
    Participant

    To keep the admin toolbar in place for everyone, all the time, go to Settings > BuddyPress > Settings page — Main Settings – Toolbar and leave the box unchecked. That’s it.

    If you prefer to use code snippets, no problem. There are tutorials out there which have snippets for different kinds of admin toolbar customizations. Or, you can check out the plugin code and use portions which would apply in your case.

    #149245
    @mercime
    Participant

    There are a number of plugins in the WP plugin repo which could change what shows up in the admin toolbar. For BP-specific nav links, check out https://wordpress.org/extend/plugins/buddypress-custom-profile-menu/

    #149043
    @mercime
    Participant

    I looked in that folder but there’s no footer.php file

    Deactivate BuddyPress. If your admin toolbar is still missing in action, you’d need to contact theme author re possibly missing/misplaced wp_footer hook required.

    #149036
    @mercime
    Participant

    First thing, did you go through the Installation Wizard? You didn’t answer above.

    Second, what theme are you using? Can you access your theme folder in server wp-content/themes/ and double-check for footer.php or are you using a child theme?

    Third, re admin toolbar, look in Settings > BuddyPress > Settings if you unchecked “Show the Toolbar for logged out users”

Viewing 25 results - 401 through 425 (of 607 total)
Skip to toolbar