Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'toolbar'

Viewing 25 results - 1 through 25 (of 561 total)
  • Author
    Search Results
  • #185618
    Avatar of danbp
    danbp
    Participant

    @ganzuelo

    scrolling down the member page provides a funny elastic effect ! ;-) Really cool, but not what you want of course.
    I disabled js on the browser and the effect disapeared immediatly.
    So i think there is a js conflict, probably with some of your theme’s script.
    check for the elements
    `<div class=”col span_3>
    <a>
    <img alt=”Foxtrot Tango” /> `

    You mention salient to be your theme but the source code indicates castle ? Did you rename it for a child theme usage ?
    Some script don’t support this…

    You use also a plugin to remove the admin bar.

    <!--Plugin Global Hide Admin Tool Bar 1.6.1 Build 2014-04-16 Active --->
    <!-- This website is patched against a big problem not solved from WordPress 3.3+ to date -->

    Huh ?

    Don’t know if the second comment belongs to that plugin, but if yes, WP is currently in 4.0 phase, so a 3.3 “problem” maybe solved.
    Google to find a simplier solution to remove the toolbar. There is also a easy and light solution in on the WP codex.

    add_filter('show_admin_bar', '__return_false'); in theme’s function or bp-custom.php would do the job on front-end !

    Don’t use a hammer to kill a fly ! ;-)

    #185458
    Avatar of danbp
    danbp
    Participant

    @jejemo

    try by adding this at the begin of your function
    $user_id = bp_get_activity_user_id();

    If you’re working on the Toolbar, the correct way to add a menu is like on this example:

    
    /* add links/menus to the admin bar*/
    /* more details here: http://wpengineer.com/2113/add-menus-to-the-admin-bar-of-wordpress/ */
    
    function mytheme_admin_bar_render() {
    global $wp_admin_bar;
    
    	$wp_admin_bar->add_menu( array(
    		'parent' => 'new-content', // use 'false' for a root menu, or pass the ID of the parent menu
    		'id' => 'new_media', // link ID, defaults to a sanitized title value
    		'title' => __('Media'), // link title
    		'href' => admin_url( 'media-new.php') // name of file
    		'meta' => false // array of any of the following options: array( 'html' => '', 'class' => '', 'onclick' => '', target => '', title => '' );
    		)
    	);
    }
    add_action( 'wp_before_admin_bar_render', 'mytheme_admin_bar_render' ); 

    A similar method is used to add a tab. Here on a user profile.

    function bpfr_my_setup_nav() {
        global $bp;
    	
    	$mytab=array(
    	'name'            => 'My Tab',
    	'link'      	  => 'http://example.com/wp-content/themes/twentythirteen/my_extra_page.php',
    	'slug'         	  => 'my-tab',
    	'css_id'          => 'my_custom_tab',
    	'position'        => 100,
    	'user_has_access' => 1,
        'screen_function' => 'xprofile_screen_my_tab'
    	);
    	$bp->bp_options_nav['profile']['my-tab']=$mytab; 	
    }
    add_action('bp_setup_nav', 'bpfr_my_setup_nav');
    Avatar of Panicky
    Panicky
    Participant

    Hi!
    First of all, English is not my first language so forgive me if I don’t know the terms and words correctly.

    I’ve been playing around with the layout in buddypress and customized it to my liking! But now I’ve stumbled upon a interesting problem.

    In the member profiles buddypress doesn’t recognize double word-wraps (paragraphs) at all. The text is just condensed and I really don’t know what to do about it.

    when I add a ‘wpautop’ to the bp-xprofile-filters.php to the ‘xprofile_get_field_data’ it does a funny, and irritating, thing.

    Whenever you edit the profile id adds a paragraph tag to the username seen in the buddypress toolbar on the upper right side of the screen and makes the name and last namne in different paragraphs.
    And it looks like this:

    Howdy
    Name
    Lastname

    I really don’t know how to get past this and prevent the wpautop to change the whole data instead of just the profile field mithe the text (in this case profile information about the user).

    Is there another way of doing this? ANd is it my fault, just because I rearranged the whole profile to my liking?
    Thanks!

    Avatar of fakename014
    fakename014
    Participant

    Hi,

    I have a custom theme for Buddypress. Currently the WP admin bar shows for admin users, but no others.
    I would like all users to be able to use the admin bar so they can access their activity, notifications, settings etc

    Is this normal for Buddypress to only show the admin bar to admins? or have I somehow done something to hide it from non-admins?

    It’s not a theme problem because I tried it with other themes and had the same problem.

    Can anyone help?

    Info:
    Wordpress 3.9.1
    Buddypress 2.0.1
    bp-custom.php –> 2 redirect functions for login and logout
    lots of plugins
    Local dev running on MAMP

    Avatar of vinzen
    vinzen
    Participant

    Hi,

    I recently installed BuddyPress and want to make it a special feature for my blog community.

    I spent a few days trying to study and understand the plugin. In my final analysis of my needs, I chalked out a few of my requirements but could not find the related settings in the admin.

    I wonder if you can help me out in making these features/settings possible on my BuddyPress enabled blog.

    1) I do not want to allow my users to modify their account directly from their profiles, but I want them to have control over the email notification settings. Is that possible?

    2) If not, is it possible to disable the email notifications for users but keep the toolbar notification enabled?

    3) If that is also not possible, then can the admin only have all the control over settings (account settings for all users be enabled for the admin).

    I’m sure many people (admins) would like to have more control and options over settings and notifications.

    4) I had about a dozen notification but I observed that there is not “select all” feature to delete or read them all. Eventually I had to individually delete all the dozen notification one by one, which took a lot of time as the page refreshes after every individual action. Can there be a “check all” feature enabled?

    Early help would be greatly appreciated.

    Many thanks.

    WP: 3.9.1
    BP: 2.0.1

    #184137
    Avatar of kemmieg
    kemmieg
    Participant

    I’ve been searching and can’t find anything that shows me how to remove the settings link from the toolbar dropdown menu. I’ve removed the tab on the profile page but the dropdown in the wp toolbar still shows it when the user hovers over their image. All I’ve been able to find is how to remove the whole thing and I don’t want to do that I just want to remove the settings menu and leave the profile menu there.

    #183821
    Avatar of danbp
    danbp
    Participant

    hi @escudero95

    here are 2 function you can use for do what you need. The first add Happy birthday on the Toolbar, near the Howdy.

    The second will add the same thing on the profile header, above @username at the right of the avatar.

    These function can be used from within bp-custom.php or theme’s functions.php

    You have to create a date type profile field and set it to be viewed by friends only.

    Naturally this is intended to be an example of use. It’s certainly perfectible. Also take care of the different comments inside the code. Have fun !

    
    function bpfr_happybirthday( $wp_admin_bar ) {
    	global $bp;
    	
    	// if user is not logged in, we show nothing
    	if ( !is_user_logged_in() )
    	return false;
    	
    	// is xprofile component active ?
    	if ( bp_is_active( 'xprofile' ) )	
    		   // fetch the birthdate
    		   // as the function should work outside of the profile loop, we first need the user_id
    		$user_id = bp_get_activity_user_id();
    			
    			// now we get the birthdate and our text to show (text | username). 53 is the field id.
    			// depending your theme, this may be adjusted by css as it goes probably on two lines
    		$birthdate = xprofile_get_field_data('53', $user_id ) ? __( 'Happy Birthday ' ) . bp_core_get_username( bp_displayed_user_id() ) : '';	
    		
    		// building the output and adding some css	 
    		$user_id = bp_displayed_user_id();
    
    		// condition for the greating on the toolbar
    		if (!is_user_logged_in( $user_id ) ) { 		
    		
    		$my_title = '<span style="float: left; width: 16px;	height: 16px; margin: 5px 5px 0 -1px; display: block; background-color: green; border-radius: 16px;"></span> '.$birthdate.' ';
    		
    			$args = array(
    			'parent'    => 'top-secondary', // position
    			'id'		=> 'birthday_item', // unique identifier
    			'title' 	=> $my_title, // the name who appears on the bar
    			);
    		
    	
    			$wp_admin_bar->add_node($args);
    		}
    	
    }
    add_action( 'admin_bar_menu', 'bpfr_happybirthday', 90 );
    
    function bpfr_happybirthday2u() {
    	global $bp;
    	
    	// if user is not logged in, we show nothing
    	if ( !is_user_logged_in() )
    	return false;
    	
    	if( bp_is_user() && ! bp_get_member_user_id() ) {
            $user_id = 'displayed: '. bp_displayed_user_id();
        } else {
            $user_id = 'get_member_user: '. bp_get_member_user_id();
        }
    	
    	// is xprofile components active ?
    	if ( bp_is_active( 'xprofile' ) )
    	
    	// fetch the birthdate
    	// as the function should work outside of the profile loop, we first need the user_id
    	$user_id = bp_get_activity_user_id();
    	
    	// now we get the birthdate and our text to show (text | username). 53 is the field id.
    	// depending your theme, this may be adjusted by css as it goes probably on two lines
    	$birthdate = xprofile_get_field_data('53', $user_id ) ? __( 'Happy Birthday ' ) . bp_core_get_username( bp_displayed_user_id() ) : '';	
    	
    	// building the output and adding some css
    	$my_title = '<div style="margin: 5px 5px 20px 5px; border:1px solid red; min-height:18px;"><div style="float: left; width: 16px; height: 16px; margin: 5px 5px 0 -1px; display: block; background-color: green; border-radius: 16px;"></div> '.$birthdate.' </div>';
    	
    	echo $birthdate;	
    	
    }
    add_action( 'bp_before_member_header_meta', 'bpfr_happybirthday2u' );

    Codex references:

    http://codex.wordpress.org/Class_Reference/WP_Admin_Bar

    http://codex.buddypress.org/developer/

    Playing with the toolbar (in french but code is in english)

    http://www.geekpress.fr/wordpress/tutoriel/modifier-howdy-admin-bar-1102/

    Avatar of mattnetusa
    mattnetusa
    Participant

    WP 3.9.1
    BP 2.0.1

    http://www.matterialx.com (only shows though if logged in, happy to give temporary login if necessary)

    It appears that my default (I say default, but have no doubt it could be another plug-in possibly causing interference) BuddyPress code has a missing quote or something and I cannot find where to correct it. When I click on any of the BuddyPress Toolbar (My Account section) items, I get an extra unformatted line just below the toolbar going across he screen that has the format diaply_name”/> and nothing else. The inspect element shows it is in the page being generated by jquery.js. It also gives this error “Malformed start tag. A self closing slash should be followed by a U+003E GREATER-THAN SIGN (>).” in the Console part of the Inspect Element. Has anyone seen this or know how to correct it.

    Error in Body of page

    Thanks!

    #183559
    Avatar of asianowl
    asianowl
    Participant

    Found the solution! It was written up in the documentation! HERE

    For my needs, I filtered based on roles like so:

    function my_remove_activity_menu(){
    	if (current_user_can('special_role'))
    	{
    		global $wp_admin_bar;
    
    		$wp_admin_bar->remove_menu('my-account-activity');
    	}
    }
    add_action('bp_setup_admin_bar', 'my_remove_activity_menu',301);
    

    Good luck everyone.

    #183359
    Avatar of @mercime
    @mercime
    Keymaster

    @baldemotions the “create a group” button is found beside the Group Directory title in regular WordPress themes. If you’re not seeing it in your theme, then theme could be using a proprietary tag for the page title instead of regular the_title tag. To remedy that, you’d need to contact theme author for resolution.

    Your users can still create groups by using the “Create a Group” link in their user’s profile links in the WP admin toolbar on the upper right hand side.

    #182386
    Avatar of eclectic_solutions
    eclectic_solutions
    Participant

    I added a custom header(header-new.php) to the site http://parentctrhub.staging.wpengine.com for logged in users of buddypress.The code that I added in default page template is:

    if ( is_user_logged_in() ) {
    get_header('new');
    } 
    else {
    get_header();
    }

    But, now the black buddypress toolbar/admin bar has stopped showing. It is shown for logged out users(if I check the option in buddypress settings) but not for logged in users. Weirdly, now the toolbar doesnt show up even if I undo all the changes. Please help. Its urgent.

    #181678
    Avatar of @mercime
    @mercime
    Keymaster

    Everything was working fine till I decided to change the howdy at the bar. …. It happens with only a particular theme.

    @kingdgm Changing howdy in toolbar shouldn’t have appended forums after the group’s URL. What theme are you using?

    #181604
    Avatar of @mercime
    @mercime
    Keymaster

    @carlsandburg the member directories (or list of all members) in the two sites you posted are seen at http://www.cchca.org/members/ and http://cchca.stevelescure.net/members-2/

    I expected to be able to see all the members somehow using the admin bar (upper-right).

    There seems to be some confusion here. There is nothing in the toolbar/adminbar which will show a list of all the members of your site by default. The upper-right link only show the specific logged-in user’s profile navigation links.

    #181481
    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    > I have lost all other functions. I cannot add new items, edit posts, check Jetpack stats, etc. Dashboard link is there but generates error when clicked.

    When you say that you cannot do these things, do you mean that (a) you don’t see the links in the toolbar, or (b) you can’t access the pages that they link to?

    #181477
    Avatar of Boone Gorges
    Boone Gorges
    Keymaster

    Very weird. More questions, off the top of my head:

    - Logins are generally working correctly, right? Like, the toolbar shows you as logged in?
    - Assuming yes, are you seeing the proper admin-related items in the toolbar when logged in? Eg, are you seeing the “+” dropdown for adding new posts, and the Edit Post button when looking at a post? If so, then WP is definitely recognizing you as an Administrator
    - Are you running any other plugins that do anything related to the current issue? Such as: a plugin that keeps certain users from accessing the dashboard? Or a plugin that lets you modify roles to have custom capabilities?

    Once you get file-level access, it’ll be helpful if you can do a stack trace to get a clearer sense of what’s happening. Let me know if you need help doing that.

    #181210
    Avatar of jerryskate
    jerryskate
    Participant

    Didn’t work for me.. But i redirected the admins titellinks, and hid the toolbar for regular users, seems to work good enough.

    Avatar of jerryskate
    jerryskate
    Participant

    Hi!

    So i have a multiste, where my secondary theme is a dedicated buddypresstheme. My problem is that buddy press segregates from the two themes. I have buddy press as a regular plugin on my main site, network activated, and my theme already have it integrated, what i can understand.

    If i make a post on my main site, it shows up on my secondary theme´s activity wall, just like it should. But if i click on the username, it takes me to the main sites buddypress. Same with the admin toolbar, if I’m on my main theme, the toolbar links gets me to the main sites buddy press, and if I’m on my secondary, the links works like they should.

    So how do i integrate the themes and buddypress? If a deactivate buddy press on my main site, new post from there won’t show up in the activity stream on the buddy press theme.

    thankful for any help!

    Avatar of Pinkman
    Pinkman
    Participant

    I have honestly no idea where to look.

    I’ve tried removing items, sucesfully, with:

    http://codex.buddypress.org/plugindev/buddypress-member-toolbar-menu/

    But I’d rather reorder them instead.

    For example, say the default is

    • Wall
    • Profile
    • Messages
    • Settings

    I’d like to switch it to

    • Messages
    • Wall
    • Profile
    • Settings
    Avatar of aces
    aces
    Participant

    @matthewhout

    I think you may be running on a windows IIS server as your links are of the form http://www.hout.us/Hout.US/index.php/about/ I’m not sure, but I don’t think you are meant to have index.php in a URL –

    Also I think that capital letters in a URL are also invalid as maybe also is a dot between slashes ( in this probable context ) – ie the dot in: /Hout.US/

    Are you sure you have installed wordpress correctly with mod_rewrite or substitute.

    Does the suggestions on http://buddypress.org/support/topic/404-error-when-using-toolbaradminbar/ help?

    Unfortunately I can’t be of more help as although I run windows I use an apache server, But others may have a better idea….

    #179369
    Avatar of danbp
    danbp
    Participant

    Hi @transmission,

    this is not the solution, but an example for your inspiration.
    The below shows how the notification counter can be moved/implemented on the toolbar.

    /* moving the notification counter from right to left */
    remove_action( 'admin_bar_menu', 'bp_members_admin_bar_notifications_menu', 90 );
    function bpfr_notification_ontheleft() {
    	global $wp_admin_bar;
    	
    	if ( !is_user_logged_in() )
    	return false;
    	
    	$notifications = bp_core_get_notifications_for_user( bp_loggedin_user_id(), 'object' );
    	$count         = !empty( $notifications ) ? count( $notifications ) : 0;
    	$alert_class   = (int) $count > 0 ? 'pending-count alert' : 'count no-alert';
    	$menu_title    = '<span id="ab-pending-notifications" class="' . $alert_class . '">' . $count . '</span>';
    	
    	// Add the top-level Notifications button
    	$wp_admin_bar->add_menu( array(
     /*'parent'    => 'top-secondary',*/  // this is the original position
    	'id'        => 'bp-notifications',
    	'title'     => $menu_title,
    	'href'      => bp_loggedin_user_domain(),
    	) );
    	
    	if ( !empty( $notifications ) ) {
    		foreach ( (array) $notifications as $notification ) {
    			$wp_admin_bar->add_menu( array(
    			'parent' => 'bp-notifications',
    			'id'     => 'notification-' . $notification->id,
    			'title'  => $notification->content,
    			'href'   => $notification->href
    			) );
    		}
    	} else {
    		$wp_admin_bar->add_menu( array(
    		'parent' => 'bp-notifications',
    		'id'     => 'no-notifications',
    		'title'  => __( 'No new notifications', 'buddypress' ),
    		'href'   => bp_loggedin_user_domain()
    		) );
    	}
    	
    	return;
    }
    add_action( 'admin_bar_menu', 'bpfr_notification_ontheleft',30);
    /* other position # are 10, 20, 40, 50, 60, 70, 80, 90 */

    In your case, you also have to check this Codex page. And possibly do some research here.

    #179181
    Avatar of Duke Taber
    Duke Taber
    Participant

    Ok I just read modernloopers list of questions so I want to make this as clear as possible. First this problem is not a plugin problem. I disabled and deleted all and it didn’t fix the problem. I also tried a different theme and it didn’t fix the problem so it is not a theme problem. TJ at Buddyboss tried valiantly to figure out the problem to no avail.

    Here are the questions that modernlooper wanted answered.

    Please try to supply answers to the following questions.

    1. Which version of WordPress are you running? 3.81

    2. Did you install WordPress as a directory or subdomain install? directory

    3. If a directory install, is it in root or in a subdirectory? root

    4. Did you upgrade from a previous version of WordPress? If so, from which version? every one for the last year

    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting. Yes

    6. Which version of BP are you running? 1.92

    7. Did you upgraded from a previous version of BP? If so, from which version? Every one for the last year until 1.9 and then it broke. I just went back to my backup and waited. Upgraded to 1.92 and it is still broken. Went through all the normal troubleshooting processes until figuring out it was the notifications that is causing the error.

    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    Ads Manager WP/BB
    Akismet
    BBpress
    BB Force Profile
    BuddyPress Tiny group chat
    BuddyPress Links
    Easy Album
    Facebook Friends Inviter
    IFlyChat
    Invite Anyone
    Social Login
    Wanguard

    9. Are you using the standard BuddyPress themes or customized themes? BuddyBoss

    10. Have you modified the core files in any way? No

    11. Do you have any custom functions in bp-custom.php? No, or at least none I am aware of that was put in there personally

    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in? 2.5.3

    13. Please provide a list of any errors in your server’s log files.

    [Fri Feb 28 14:41:05 2014] [warn] [client xxx] mod_fcgid: stderr: PHP Fatal error: Call to undefined function bp_notifications_toolbar_menu() in /var/www/vhosts/xxx/httpdocs/wp-content/plugins/buddypress/bp-members/bp-members-adminbar.php on line 148, referer: xxx/wp-admin/options-general.php?page=bp-components

    14. Which company provides your hosting? Media Temple

    15. Is your server running Windows, or if Linux; Apache, nginx or something else? Linux and Apache

    #179090
    Avatar of Duke Taber
    Duke Taber
    Participant

    Ok I am having trouble posting the error in the log.

    [Fri Feb 28 14:41:05 2014] [warn] [client xxx] mod_fcgid: stderr: PHP Fatal error: Call to undefined function bp_notifications_toolbar_menu() in /var/www/vhosts/xxx/httpdocs/wp-content/plugins/buddypress/bp-members/bp-members-adminbar.php on line 148, referer: xxx/wp-admin/options-general.php?page=bp-components

    #179033
    Avatar of SubstreamAI
    SubstreamAI
    Participant

    Just thought I’d update for anyone else with a similar problem. It has turned out that my Possible Solution #1 above has solved this for me completely. It does behave differently for Administrators (as it should) which caused me some confusion.

    Other Plugins I would recommend people look at if they have similar needs to mine:
    Theme My Login by Jeff Farthing: integrates user login screens into you Wordpres site/theme.
    Plugin: http://wordpress.org/plugins/theme-my-login/
    Website: http://www.jfarthing.com/extend/wordpress-plugins/theme-my-login/

    Global Hide/Remove Admin Bar Plugin bye Don Fischer: hides the WordPress Toolbar/admin bar
    Plugin: http://wordpress.org/plugins/global-admin-bar-hide-or-remove/
    Website: http://www.fischercreativemedia.com/plugins/global-hideremove-toolbar-plugin//

    Finally bbPress WP Tweaks: so popular I’m not going to leave links.

    All these plugins are essential to my gaming clan site: http://ducesoforion.com

    #179032
    Avatar of SubstreamAI
    SubstreamAI
    Participant

    Just thought I’d update for anyone else with a similar problem. It has turned out that my Possible Solution #1 above has solved this for me completely. It does behave differently for Administrators (as it should) which caused me some confusion.

    Other Plugins I would recommend people look at if they have similar needs to mine:
    Theme My Login by Jeff Farthing: integrates user login screens into you Wordpres site/theme.
    Plugin: http://wordpress.org/plugins/theme-my-login/
    Website: http://www.jfarthing.com/extend/wordpress-plugins/theme-my-login/

    Global Hide/Remove Admin Bar Plugin bye Don Fischer: hides the WordPress Toolbar/admin bar
    Plugin: http://wordpress.org/plugins/global-admin-bar-hide-or-remove/
    Website: http://www.fischercreativemedia.com/plugins/global-hideremove-toolbar-plugin//

    Finally bbPress WP Tweaks: so popular I’m not going to leave links.

    All these plugins are essential to my gaming clan site: http://ducesoforion.com

    #179031
    Avatar of SubstreamAI
    SubstreamAI
    Participant

    Just thought I’d update for anyone else with a similar problem. It has turned out that my Possible Solution #1 above has solved this for me completely. It does behave differently for Administrators (as it should) which caused me some confusion.

    Other Plugins I would recommend people look at if they have similar needs to mine:
    Theme My Login by Jeff Farthing: integrates user login screens into you Wordpres site/theme.
    Plugin: http://wordpress.org/plugins/theme-my-login/
    Website: http://www.jfarthing.com/extend/wordpress-plugins/theme-my-login/

    Global Hide/Remove Admin Bar Plugin bye Don Fischer: hides the WordPress Toolbar/admin bar
    Plugin: http://wordpress.org/plugins/global-admin-bar-hide-or-remove/
    Website: http://www.fischercreativemedia.com/plugins/global-hideremove-toolbar-plugin//

    Finally bbPress WP Tweaks: so popular I’m not going to leave links.

    All these plugins are essential to my gaming clan site: http://ducesoforion.com

Viewing 25 results - 1 through 25 (of 561 total)