Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'toolbar'

Viewing 25 results - 1 through 25 (of 568 total)
  • Author
    Search Results
  • Avatar of vivis
    vivis
    Participant

    I used this code bud the notifications disapear completly, i want to use it on my header not in the toolbar, i have disabled the toolbar. And i use sweetdate theme not kleo.

    Avatar of danbp
    danbp
    Moderator

    hi @vivis,

    try with this function <?php bp_notifications_toolbar_menu ?>
    Read also the documentation of your Premium theme (Kleo) about menu and the WP codex on how to add toolbar menus and sub menus.

    http://codex.wordpress.org/Toolbar

    #187225
    Avatar of MrMarkG
    MrMarkG
    Participant

    Is there an example page.php or buddypress.php in the BP install that I could copy into my theme? I didn’t see one.

    The name on the top right comes from my own toolbar which uses bootstrap styles:

      <nav class="navbar navbar-default" role="navigation">
      <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
        </div>
    
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse navbar-inverse navbar-fixed-top" id="bs-example-navbar-collapse-1">
          <ul class="nav navbar-nav">
    	    <?php wp_list_pages(array('title_li' => '')); ?> 
          </ul>
    	  <ul class="nav navbar-nav navbar-right">
    	  <?php if ( is_user_logged_in()) : 
    			  // get the currently logged-in user
    			$user = wp_get_current_user(); ?>
    			<li><a href="<?php echo bp_loggedin_user_domain(); ?>"">
    			<button type="button" class="btn btn-info">
    			<span class="glyphicon glyphicon-envelope"></span> 
    			<span class="badge"><?php bp_total_unread_messages_count() ?></span>
    			</button>
    			<?php // echo the user's display_name
    			 echo $user->display_name; ?>
    			 
    			  </a>
    			</li>
    			</ul>
    	  <?php else: ?>	
          <form class="navbar-form" role="login">
            <div class="form-group">
              <input type="text" class="form-control" placeholder="User Name">
    		  <input type="text" class="form-control" placeholder="Password">
            </div>
            <button type="submit" class="btn btn-default">Login</button>
          </form>
    	  </ul>
    	    <?php endif; ?>

    Again, if I’m doing the toolbar wrong, let me know, but I have a very particular style guide I need to use.

    Thanks very much!

    Mark

    #187164
    Avatar of danbp
    danbp
    Moderator

    Any theme contains a page.php or buddypress.php if you use a child theme.

    The username is coded like this:
    <h1 class="entry-title"><?php the_title(); ?></h1>

    You simply add your conditionnal around the h1 line

    if (….)
    h1 the title
    endif

    Don’t see exactly from where the name on the top right is coming. Is it the one on the Toolbar (howdy) ?
    Give the code

    #187077

    In reply to: Forwarding Messages

    Avatar of akovia
    akovia
    Participant

    I must be seeing things then. (Certainly a possibility)

    Private Messages

    Private Messaging works like an internal site email. Members can message people on their friends list as well as forward and reply to received messages. Each member will have their own individual Inbox and Sent messages folders as well as a Compose message screen. Members will be notified of new messages by a new message count in own Messages tab, in notification circle in Admin toolbar, as well as receive email notifications of the private message, if enabled.

    #187051
    Avatar of 1a-spielwiese
    1a-spielwiese
    Participant

    Your last answer I have seen right now. – I can’t answer in detail before tomorrow; I have to logout and to leave.

    Only short:

    “What is the /usage/ folder for?”

    Maybe for for statistics.

    “Most hoster have a root folder like htdocs or wwww.
    You install WP at the root. Eg. server root/wp-content, server root/wp-admin, etc”

    The highest level is not named. The wp-config.php and the .htaccess are on the highest level. The different WordPress-Folders constitute – together with the usage-folder – the second level.

    —–

    Before I did:

    – Again I started everything up form the beginning. Now it is impossible to delete the file
    .nfs00000000038a694400007603
    from the wp-admin/includes folder.

    – I delete and re-create the wordpress-database etc.

    – This time I removed NOT the www. from the general setting.

    – I inserted the indicated further lines to the wp-config.php and uploaded the .htaccess.

    – I can log in; and I have two dashboards now. I activate ‘Es können neue Seiten und Benutzer registriert werden.’ (New pages and users can be registered.)

    – I log out; check the registration page. It’s everything okay: The ‘weiter’ (next)-Button is there.

    – I log in. I installed and activated BuddyPress.

    – I de-activated ‘Extended Profiles’. I de-activated ‘Show the Toolbar for logged out users’.

    – I log out and check the register page. The submit-Button is missing again.

    However, on Friday I received the message from my provider: ‘Ich habe dir DNS Wildcard gesetzt und www entfernt.’ (I have set the Wildcard and www removed.’) –

    But of course this referred on the WordPress/Buddy-installation from Friday not from today.

    #186959
    Avatar of akovia
    akovia
    Participant

    1. Which version of WordPress are you running?
    Latest
    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?
    N/A
    5. Was WordPress functioning properly before installing/upgrading BuddyPress (BP)? e.g. permalinks, creating a new post, commenting.
    N/A
    6. Which version of BP are you running?
    Latest
    7. Did you upgraded from a previous version of BP? If so, from which version?
    N/A
    8. Do you have any plugins other than BuddyPress installed and activated? If so, which ones?
    N/A
    9. Are you using the standard BuddyPress themes or customized themes?
    Custom
    10. Have you modified the core files in any way?
    No
    11. Do you have any custom functions in bp-custom.php?
    No
    12. If running bbPress, which version? Or did your BuddyPress install come with a copy of bbPress built-in?
    Not using bbpress anymore
    13. Please provide a list of any errors in your server’s log files.
    N/A
    14. Which company provides your hosting?
    Dedicated server
    15. Is your server running Windows, or if Linux; Apache, nginx or something else?
    Linux with Nginx

    Fanart.tv

    I am unable to figure out how to forward a message. I’ve searched Google and this site for some information unsuccessfully. I did find some people asking to have this added as a feature, or ask how to do it, but there have been no answers.

    From what I read here:

    "Private Messages
    
    Private Messaging works like an internal site email. Members can message people on their friends list as well as forward and reply to received messages. Each member will have their own individual Inbox and Sent messages folders as well as a Compose message screen. Members will be notified of new messages by a new message count in own Messages tab, in notification circle in Admin toolbar, as well as receive email notifications of the private message, if enabled."

    It is clearly stated that this is a feature that is already there, but on our site we have no button for forwarding messages. Only replies.

    Could someone clear this up or help troubleshoot the problem?

    I would also like to know if there is a way to disable the “feature” that only allows you to message people on your friends list? Instead, I’d like everyone to have the ability to start typing a name in the “TO” field and have the the auto-matching feature enabled so you can select from the list.

    Avatar of matsouth
    matsouth
    Participant

    Hi All

    I’ve installed Buddypress and got it pretty much configured.
    I’m also utilising Woocommerce on the site, but after installing it, the toolbar/notification bar disappeared for standard users.

    I can still see it as admin but it’s completely missing for regular users.

    Any thoughts?

    Thanks

    #185618
    Avatar of danbp
    danbp
    Moderator

    @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
    Moderator

    @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
    Moderator

    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!

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