kennibc
Expert
Friendly Neighbour
Member Likes (0)
I just recently upgraded to BP 1.5 and I tried to turn off the BP admin bar and use the built in WP bar.
In WP-config.php I have:
// Uncomment to disable the site admin bar
//define( 'NOADMINBAR', 1 );
//define( 'BP_DISABLE_ADMIN_BAR', true );
define( 'BP_USE_WP_ADMIN_BAR', true );
When I do this I have some users reporting that when they login on the main site the "MySites"admin bar drop down doesn't appear for them.
What would cause that? They all have at least 1 blog. Do they need to have more than one blog for that menu item to appear in the admin bar?
Responses (6)
Sales & Support Pro (joined March 2010) Likes (0)
Hiya,
As this is only an issue for some users, have you checked what the difference is between users they see it and those that don't?
For example, number of sites, certain themes or plugins etc?
Phil
Member (joined October 2008) Likes (0)
I think it has something to do with the number of blogs you have created. More than one might get you the drop down while only one does not. I was wondering if this was built into the Wordpress admin bar or not.
Member (joined October 2008) Likes (0)
OK. I just confirmed that you need more than one blog to get the My Sites drop down in the WP Admin Bar.
Anyone know how to change it to always appear so users can immediately see their site?
Member (joined October 2008) Likes (0)
Here is the code in Adminbar.php in wp-includes folder. How do I change it to make the MySites menu appear when you only have one blog?
Sales & Support Pro (joined March 2010) Likes (0)
You could simply remove lines 11 and 12 from that snippet.
However, you should never edit WP core unless you absolutely have to and know exactly what you're doing.
Your changes will get over-ridden in future updates and your changes could cause unintended consequences.
Phil
Member (joined October 2008) Likes (0)
I did just that with no luck. I actually had to uncomment this from the wp-config.php:
// Uncomment to disable the site admin bar
//define( 'NOADMINBAR', 1 );
define( 'BP_DISABLE_ADMIN_BAR', true );
define( 'BP_USE_WP_ADMIN_BAR', true );
Then My Sites appeared for people only having one website in a multisite setup.
Unfortunately they loose the BP menu items with this scenario.
Hopefully there will be a better admin bar integration with future versions of BP so that users can have direct access to the My Sites if they only have one blog.
WordPress Questions?
We've got answers!
Find out more »