Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'toolbar'

Viewing 25 results - 276 through 300 (of 805 total)
  • Author
    Search Results
  • #203641
    ewafford
    Participant

    I have some code for my theme that adds some extra classes to avatars on blog post comments.

    function bt_get_avatar($avatar, $type) {
      if (!is_object($type)) { return $avatar; }
    
      $avatar = str_replace("class='avatar", "class='avatar pull-left media-object", $avatar);
      return $avatar;
    }
    add_filter('get_avatar', 'bt_get_avatar', 10, 2);

    But for some reason anyone that is a “member” of the buddypress plugin doesn’t get these applied to their comments. Ive had some success with hooking bp_core_avatar_class but it seems to now add those classes to all instances of the get_avatar everywhere, and thats not what I want exactly. For example, it adds these to the toolbar/admin bar avatar also. Disabling BP restores the classes back to all comments on the blog. Using the comment form while not logged in posts a comment with the classes added. The result is a mixture of comments, some with the avatar classes, some without.

    Is there a way to make the above code function as expected with BP enable?

    1a-spielwiese
    Participant

    1st:

    As yesterday mentioned, my startpage:

    http://1a-spielwiese.de

    and the subdomains:

    http://balletttaenzerinnenkrzbg36.1a-spielwiese.de/

    http://kampfsportlerinnenneuwied.1a-spielwiese.de/

    work, and I can login into the different dashboards (entire network, 1a-spielwiese.de, subdomains).

    2nd:

    But it seems, all this gives me no access to the social network function of BuddyPress:

    a) E.g., wenn I (using my superadmin-profile) try to do something with the BuddyPress-toolbar, e.g. sending a message, I become redirected to the login form:

    Between the WordPress-Logo and the two form fields (user name and password) is written:

    “Bitte melde dich nochmal an.
    Du musst Dich anmelden, um Zugriff zur angeforderten Seite zu bekommen.”

    (Please login again.
    You have to be logged in, for accessing the page at issue.)

    Within my browser adress line appears:

    http://1a-spielwiese.de/wp-login.php?redirect_to=http%3A%2F%2F1a-spielwiese.de%2Fmembers%2Fs-admin-1a%2Fmessages%2Finbox%2F&action=bpnoaccess

    b) The admins of the indiviual blogs can login to their own blogs, but not not the start page of entire network.

    c) As well there are buttons for making friendship nearby the avatars respec. user names.

    As well there is no opportunity to post something into the activity stream.

    What could be the cause of the misfunctions and how can I resolve the problem(s)?

    —

    The same problem description in German:

    http://forum.wpde.org/buddypress/133446-login-zur-netzwerk-funktion-von-buddypress.html

    #194035

    In reply to: Create a group

    jessicana
    Participant

    What I have done is that I used a plugin that hides the admin bar for all the users (logged in and logged out) and users can’t see or use the toolbar. When the user is logged in, s/he can see the profile link in the menu which takes him/her to the default buddyPrss profile and s/he can start from there. That’s why if create group exist under the profile tab (without admin) it would make my life easier.

    The theme I am using is not helping me to go around this and that’s why I was thinking of using a different theme that is BuddyPress ready.

    #193477

    In reply to: Create a group

    danbp
    Participant

    @jessicana,

    if you allow group creation to your members, they can do so by going to group directory.
    The “create group” button is in the group header.

    Once created, the member see on his profile, a tab named My Groups (or Groups) with a counter. On the tab, the group list created by him.

    -> When users are logged out, they have no access to the Toolbar or to the Create Group button on the group directory.

    This is so by default. Any other behaviour can be considered as theme related (for ex. if you use a theme specifically designed for BuddyPress). IMHO rare, but can eventually exist.

    You can hide the Toolbar to logged out user in the buddypress settings.

    About BP/WP jargon:
    the Toolbar is the wordpress black toolbar at the top of the site.
    the User menu is the menu at the top right corner, under wp’s Howdy
    the buddymenu is the bar under the page header and before the page content. Depending the context (page, status), this menu bar has an associated sub menu.

    #192886
    #191022
    danbp
    Participant

    Deactivate all plugins but buddypress and activate 2014 and retest your install.
    See if the notices disappear and if the site loads correctly.
    If not, deactivate buddypress and retest.

    If ok, activate custom community and retest only with wp.
    If the errors are back, you have the culprit.
    If it is ok, activate BP. Retest.

    If ok, you reactivate one by one your plugins. Except BP Toolbar, outdated and still in beta since april 2013. This plugin was intended for BP 1.5 to 1.7. And BuddyPress is use now the wp Toolbar.

    If nothing of this is working correctly, you have to ask on the theme support.

    gibbousmoon
    Participant

    I’m working with a brand new install of WP 3.9.2, and I don’t recall whether I installed BP or the Custom Community theme first, but when I have both enabled, I get this error:

    Notice: Indirect modification of overloaded property BuddyPress::$add_root has no effect in /home/nanoedmo/public_html/wp-content/plugins/buddypress/bp-core/bp-core-functions.php on line 564

    If I switch to another theme, the error disappears. Initially the error would just load at the top of the page while the site continued to function, but now the error is the ONLY thing that displays on any page, which renders my site completely unusable. It’s quite possible that the change in behavior corresponded to when the host site upgraded me to WP 4.0.

    Now, the facts.

    * Hosted by SiteGround
    * WordPress 4.0
    * Directory install
    * In a subdirectory
    * Upgraded from WP 3.9.2
    * BP 2.0.2
    * Other plugins activated: Akismet, bbPress, BP Custom Profile Menu, BP Group Email Subscription, BP Toolbar, Captcha Pro, Counterize (and its plugins), Limit Login Attempts, NaNo Stats, ProgPress, Shortcode Reference, The Events Calendar, WordPress SEO.
    * Using Custom Community theme
    * Core files untouched
    * No custom functions in bp-custom.php
    * bbPress version 2.5.4
    * This error is almost the only one in php_errorlog. Occasionally I see this one:
    PHP Warning: Cannot modify header information – headers already sent by (output started at /home/nanoedmo/public_html/wp-content/plugins/buddypress/bp-core/bp-core-functions.php:564) in /home/nanoedmo/public_html/wp-includes/pluggable.php on line 1173

    #189646
    danbp
    Participant

    @seniortech,

    On a single install, users have never access to the dashboard. This only happens if they have a blog on a multi site. And the admin they see is the admin of their blog, not the main blog where BP is installed.

    But first, read here please, provide the information and your theme name. be warned that if you use a premium, that you can’t expect much help on this forum, as we have no access to such themes.

    FYI: the admin toolbar or any of the BP menus are working like any other menus and toolbar labels on wordpress. Is explained on the WP codex.
    For more advanced details, see here.

    For specific BP customization, read the BP Codex.

    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.

    danbp
    Participant

    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.

    https://codex.wordpress.org/Toolbar

    #187225
    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
    danbp
    Participant

    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

    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
    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
    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.

    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
    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
    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');
    The Doctor
    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!

    kingisen83
    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?
    Thanks!

    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

    #184137
    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
    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:
    https://codex.wordpress.org/Class_Reference/WP_Admin_Bar

    Developer Resources

    Playing with the toolbar (in french but code is in english)
    http://www.geekpress.fr/wordpress/tutoriel/modifier-howdy-admin-bar-1102/

    #183559
    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.

Viewing 25 results - 276 through 300 (of 805 total)
Skip to toolbar