mrjarbenne
El Presidente
Friendly Neighbour
Member Likes (0)
I have users on my multisite who were once Contributors but have now been downgraded to Subscribers. When they are promoted to Contributor, the blog is added to the new toolbar as one of their listed "sites". I've now downgraded their status, but the blog still stays listed on under their "My Sites" menu on the toolbar.
Is there a way to remove this listing on on their toolbar? It's not imperative, merely housekeeping.
Responses (5)
Support Chimp (joined March 2010) Likes (0)
Hey mrjarbenne. Hope you are well. :-)
Are you talking about the BuddyPress bar, the WordPress or some other plugin bar.
Take care.
Member (joined June 2011) Likes (0)
I'm referring to the Wordpress Admin bar in a Buddypress setup (in wp-config I've enabled the new Wordpress toolbar/adminbar, eliminating the Buddybar).
It's a Buddypress Multisite setup, so the users have blogs that they are Administrators on, but under the My Sites listing, they also see the Main Domain as an option. They are only subscribers on this domain, and all of the changes they can make in that Dashboard can also be done using the front-end Buddypress "Edit Profile" menu, so I would rather the Main site not appear at all. This is a change from the BuddyBar, that did not show blogs if you were only a subscriber on them.
Is there a way to block sites from appearing in the My Site menu of the Wordpress adminbar if the the users role on the site is Subscriber? It may be that this is a glitch that will be fixed when Buddypress natively adopts the WP Toolbar, but in the meantime, I think listing might confuse my young bloggers.
Member (joined June 2011) Likes (0)
Have I provided enough detail here? Is this possible?
Support Chimp (joined March 2010) Likes (0)
I thought I had responded here, but apparently not. Please accept my apologies.
This happens because the new WP Admin bar is designed to show users all websites they belong to in the network. Even subscribers when they have that role in a sub site.
Take care.
Support Chimp (joined March 2010) Likes (0)
You could if you wanted though look at coding a little code to check and then choose to display or not. You will find the admin-bar code here:
/wp-includes/admin-bar.php
And you might find the following useful:
http://codex.wordpress.org/Function_Reference/current_user_can
Take care.
WordPress Questions?
We've got answers!
Find out more »