Search Results for 'toolbar'
-
AuthorSearch Results
-
January 30, 2013 at 8:59 pm #152096
In reply to: Question: WordPress User Roles and BuddyPress
Slava AbakumovModeratorEach 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.
January 24, 2013 at 8:44 pm #151665FaramarzParticipantHi 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.
January 17, 2013 at 8:48 pm #150961In reply to: Remove 'Edit My Profile'
nylarosieParticipantHi – 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
January 17, 2013 at 6:10 pm #150947In reply to: Re-order profile menu items
danbpfrParticipanthi @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 ! 😉
January 17, 2013 at 4:48 pm #150939In reply to: Remove 'Edit My Profile'
danbpfrParticipantoops, 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/January 15, 2013 at 8:03 pm #150725In reply to: Site GONE after Buddy Press updgrade!
nigdowserParticipantWow! 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!
January 15, 2013 at 6:53 pm #150714In reply to: Site GONE after Buddy Press updgrade!
@mercimeParticipantRename /wp-content/plugins/buddypress-toolbar/ folder to something like /wp-content/plugins/buddypress-toolbar-xxx/
January 15, 2013 at 6:25 pm #150708In reply to: Site GONE after Buddy Press updgrade!
nigdowserParticipantIn 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!
January 13, 2013 at 10:50 pm #150581Lynn HillParticipantI’ll delete the account that you created when you looked at the site. Thanks again.
January 13, 2013 at 10:37 pm #150579imnotme82324ParticipantHi Lynn, that’s great that you got it sorted out 😀 Thanks for letting us know.
January 13, 2013 at 10:17 pm #150577Lynn HillParticipantHi . 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
January 13, 2013 at 9:40 pm #150575Lynn HillParticipantThanks will do that now and get back to you.
January 13, 2013 at 8:55 pm #150571imnotme82324ParticipantHave 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?
January 13, 2013 at 7:38 pm #150554Lynn HillParticipantMy pleasure thanks here it is. I approve members so I’ll look out for you. http://clandestinecakeclub.co.uk
January 13, 2013 at 7:31 pm #150544Paul Wong-GibbsKeymasterCan we get a link to your site so we can register an account and look for any obvious errors?
January 13, 2013 at 7:25 pm #150541Lynn HillParticipantHi 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.
January 13, 2013 at 7:07 pm #150527Lynn HillParticipantHi 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
January 13, 2013 at 6:49 pm #150525imnotme82324ParticipantHave 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.
January 10, 2013 at 5:40 pm #150151In reply to: [Resolved] BuddyPress kills my 3.5 upgrade
lwaltzerParticipantOops. 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 );January 8, 2013 at 7:56 pm #150009In reply to: Not exactly "a few easy clicks"
ngoeganParticipantGreat. 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.
January 5, 2013 at 3:52 pm #149727In reply to: Customizing the admin bar
latinoleaderParticipantI’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???
December 30, 2012 at 5:35 am #149256In reply to: Customizing the admin bar
@mercimeParticipantTo 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.
December 30, 2012 at 2:22 am #149245In reply to: Customizing the admin bar
@mercimeParticipantThere 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/
December 27, 2012 at 9:21 pm #149043In reply to: No BuddyPress Admin Bar
@mercimeParticipantI 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.
December 27, 2012 at 8:32 pm #149036In reply to: No BuddyPress Admin Bar
@mercimeParticipantFirst 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”
-
AuthorSearch Results