Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'toolbar'

Viewing 25 results - 1 through 25 (of 743 total)
  • Author
    Search Results
  • Profile photo of siqve006
    dev grl
    Participant

    How can I let my users edit their profile pictures and cover image and any other info without seeing the backend of my site to do so? I also don’t want the buddypress users to see a toolbar when logged in.

    #260986
    Profile photo of sounds
    sounds
    Participant

    Hardly paranoid considering we’re talking about a piece of software.

    What I meant was, the toolbar is belong to wordpress, as you mentioned.
    It’s strange that they add a feature and don’t include any options to remove different
    elements of the toolbar, like it didn’t matter or they left it up to someone else to deal with.

    I thought I added the two links myself actually with some customizer plugin, not the case.

    #260984
    Profile photo of danbp
    danbp
    Moderator

    I don’t understandd this paranoรฏd question: So this is another case where they decided to leave out any option.

    – Who are “They” ?
    – What are the other case ?
    – Which options are leaved out ?

    Really mysterious, unless the truth is elswhere ? May be in the Twilight Zone ?

    You have the option to disable the Toolbar under Settings > BuddyPress > Options.
    You have the possibility to use BP’s login widget under Apparence > Widgets

    #260980
    Profile photo of danbp
    danbp
    Moderator

    Hi,

    the toolbar belongs to WordPress. How to remove items is explained here:
    https://codex.wordpress.org/Function_Reference/remove_node
    Searching the forum will certainly bring you some more hints too.

    #260979
    Profile photo of sounds
    sounds
    Participant

    Hi,

    There are two links on the left side of the admin toolbar: Login & Register
    How do you remove them? does Buddypress add them? and where is the option to disable them if so?

    img

    Profile photo of giuseppecuttone
    giuseppecuttone
    Participant

    Hi,
    the buddle notification icon, located in administration bar in the left zone of the AVATAR, is not showed by defauls in mobiles devices.
    In order to show it @shayne-thiessen explaned in the following post what is the CSS codec we can must add in order to show it:
    https://buddypress.org/support/topic/admin-bar-mobile-css/
    Resuming, the CSS code is the following

    /* Show only default top level items */
    	#wp-toolbar > ul > li {
        		display: block;

    But now there is a little problem… when I clic in the notification icon, in the mobiles devices it will show only a little part of the dropdown windows with notification, because the dropdown windows is showed from the icon to the right zone, so it goes out of the display, while in computers the dropdown windows is showed from the icon to the left zone.
    So my question is:
    how can I show the dropdownmenu in the mobiles from the icon to the left zone (just like in the web)
    Thank very much for your support.

    #260405
    Profile photo of danbp
    danbp
    Moderator

    Hi,

    it seems that you have a lot of pages on the site and that you use weird settings.

    I would do the following:
    – remove any redirect settings and other done via plugins.
    – deactivate all plugins except buddypress.
    – activate 2016, and not a child theme.
    – ensure that each active BP component has a page assigned and that this page is unique, without any template or model assigned. Just a title and nothing else.
    Actually, you have links like “…/americannexus.net/activity/members/” (found in the Who’s on widget). Or the link to Archangel’s profile indicates “../americannexus.net/activity/members/archangel/”

    That’s unusual and cannot work properly, except if your WP is in a directory called “activity”. And it is not the case ! Note also that BP should be at the same level as WP.

    – set up pretty permalinks (what ever but default option) and save.

    – and read attentively the install guide.

    Other dysfunctionning points:
    The toolbar has a Register button who link to ../americannexus.net/join/ (this works correctly)
    but the homepage shows ../americannexus.net/register/. If you want visitors to register, send them to /join/ page and not to an empty page.

    …and of course, this link doesn’t work too (at least for a not logged visitor) : ../americannexus.net/activity/groups/create/

    Here the list of correct slugs of a default BP install:
    – your-site.net
    – your-site.net/register/
    – your-site.net/activity -> BP site activity page (active by default)
    – your-site.net/members/ -> BP members directory (mandatory)
    – your-site.net/groups/ -> BP groups directory (if group component is active)

    These BP pages are dynamic and depending the context, you can have ie:
    your-site.net/members/USERNAME -> goes to a profile
    your-site.net/members/USERNAME/friends -> goes to the friends screen of the specified user

    It works the same for groups.

    Once BP and WP are working correctly together, you can reactivate the child theme and your plugins.

    Profile photo of chtn2109
    chtn2109
    Participant

    I am going to create a new custom notification for a user that if someone mention the user in any review with @, the related user will get a email and a new notification has been generated, this notification I created dynamically, but I get empty message showing on user profile notification area, I checked the db_table for notification as well it has proper entries as well,

    $description = apply_filters_ref_array( 'bp_notifications_get_notifications_for_user', array( $notification->component_action, $notification->item_id, $notification->secondary_item_id, 1, 'string', $notification->component_action, $notification->component_name, $notification->id ) );

    In the above line I found that ‘bp_notifications_get_notifications_for_user’ filter return me the empty description of my notification from line no 523 in function “bp_get_the_notification_description” of file buddypress/bp-notifications/bp-notifications-template.php

    Below is my custom code for generate notification:

    
    //add new notification mention_in_comment
    function mention_in_comment_filter_notifications_publish_post_get_registered_components( $component_names = array() ) {
     
        // Force $component_names to be an array
        if ( ! is_array( $component_names ) ) {
            $component_names = array();
        }
     
        // Add 'custom' component to registered components array
        array_push( $component_names, 'mention_in_comment' );
     
        // Return component's with 'custom' appended
        return $component_names;
    }
    add_filter( 'bp_notifications_get_registered_components', 'mention_in_comment_filter_notifications_publish_post_get_registered_components' );
    
    //show new notification text
    function bp_mention_in_comment_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
        // New custom notifications
        if ( 'mention_in_comment_action' === $action ) {
          
            $comment_info = get_comment( $item_id );
            $author_name = ($comment_info->user_id) ? get_the_author_meta( 'display_name', $comment_info->user_id ) : $comment_info->comment_author; 
            $custom_title = $author_name. ' mentioned you in a new comment on '.get_the_title($comment_info->comment_post_ID);
            $custom_link  = get_comment_link( $comment_info->comment_ID );
            $custom_text = $author_name. ' mentioned you in a new comment: <br/>' . $comment_info->comment_content;
     
            // WordPress Toolbar
            if ( 'string' === $format ) {
                $return = apply_filters( 'mention_in_comment_filter', '' . esc_html( $custom_text ) . '', $custom_text, $custom_link );
     
            // Deprecated BuddyBar
            } else {
                $return = apply_filters( 'mention_in_comment_filter', array(
                    'text' => $custom_text,
                    'link' => $custom_link
                ), $custom_link, (int) $total_items, $custom_text, $custom_title );
            } 
            //var_dump($return);
            return "Just say hello.";        
        }    
    }
    add_filter( 'bp_notifications_get_notifications_for_user', 'bp_mention_in_comment_format_buddypress_notifications', 1, 5 );
    
     //add notification to the mentioned user
        $notification = bp_notifications_add_notification( array(
                          'user_id'           => $user_id,
                          'item_id'           => $comment->comment_ID,
                          'secondary_item_id' => $user_id,
                          'component_name'    => 'mention_in_comment',
                          'component_action'  => 'mention_in_comment_action',
                          'date_notified'     => bp_core_current_time(),
                          'is_new'            => 1) );

    Could you please let me knwo what is wrong with my code or something else, how can more debug and solve this.

    #259656
    Profile photo of giuseppecuttone
    giuseppecuttone
    Participant

    I will be your savior,
    for same rasons, wordpress decided not show admin bar like default in mobile.
    It is so,maybe, because when user log in in mobile device, a lot of menu will be showed… really I dont know why…
    But if you dont have this problem, and want show admin bar for log in an log out users, you must add in CSS the following codec:

    @media screen and (max-width:782px) {
        #wpadminbar {
            display:block;
        }
        html {
            position:absolute;
            top:-46px;
        }
    }

    The codec where say html position absolute is for delete noise black bar located in the up side zone.
    If you want, you can also show the notification icon (I think it is named budlle notification) into the admin mar, adding the following codec in CSS zone:

    /* Show only default top level items */
    	#wp-toolbar > ul > li {
        		display: block;
    	}

    I have gone mad to find the solution, but now we have it.
    If you dont want show menu in admin bar to the suscriptors, colaborator and authors, you can use the AG CUSTOM ADMIN plugin. It hide them and help you in a clean design. (you can also hide wordpress logo, and so much things…)

    Now, I have only a litlle / big problem:
    the drop down menu, when I click in the “notification icon” in the admin bar, is not showed correctly… It is showed from the “notification icon” to the right zone, so in mobiles user can red the title of the notification.
    The solution is show the dropdown menu from the “notification icon” to the left zone. So, also in mobiles users can red the title of the notification.
    Can you help me for to make that?
    I have helped you, now I hope someone can help me ๐Ÿ˜‰
    Thank for your support and have funny

    #259623
    Profile photo of Editor Mike
    Editor Mike
    Participant

    Hi, is it possible to turn off the toolbar bubble for tags, but retain the e-mail notification?

    #259530
    Profile photo of danbp
    danbp
    Moderator

    Hi @sherissa_r,

    General is the default landing tab for profile settings.
    To remove it, you use these functions:
    to remove the item -> bp_core_remove_subnav_item()
    to define a new one -> bp_core_new_nav_default()

    You may also want to remove General from usermenu if you use WP’s toolbar, in which case you need -> $wp_admin_bar->remove_node()

    Note that General is also the default sub-nav template for all other Settings (Emails & Profile visibility). When you remove the item, you remove also the template. That’s why you need to define a new landing tab.
    Note also that once General is removed, you will only see the other settings buttons, but no the content of the new defined tab. It will only appear once you clicked on the button.

    Here the snippets you could test (add them to bp-custom)

    function bpex_change_profile_settings_default_tab() {
    
    	if( bp_is_active( 'xprofile' ) ) :
    
    	$access        = bp_core_can_edit_settings();
    	$slug          = bp_get_settings_slug();
    
    	$args = array(
    		'parent_slug'     => $slug,
    		'subnav_slug'	  => $slug . '/notifications/',
    		'screen_function' => 'bp_settings_screen_notification',
    		'user_has_access' => $access
    		);
     
    	bp_core_new_nav_default( $args );
    
    	endif;
    
    }
    add_action( 'bp_actions', 'bpex_change_profile_settings_default_tab' );
    
    function bpex_remove_general_item_on_usermenu() {
    global $wp_admin_bar;
    
    	if ( bp_use_wp_admin_bar() ) {
    		$wp_admin_bar->remove_node( 'my-account-settings-general' );
    	}
    
    }
    add_action( 'wp_before_admin_bar_render', 'bpex_remove_general_item_on_usermenu' );
    
    function bpex_remove_profile_settings_general_tab() {
    
    	if( bp_is_active( 'xprofile' ) ) :	
    
    		bp_core_remove_subnav_item( 'settings', 'general' );
    
    	endif;
    
    }
    add_action( 'bp_actions', 'bpex_remove_profile_settings_general_tab' );
    #259393
    Profile photo of limburgerer
    limburgerer
    Participant

    hello i added buddypress offline registration in my menu but it doesnt show up?
    i select that everybody can registration

    login works perfect and when i activeted the toolbar(on top of the website) i can registration with succes.

    http://dutch-rebellion.nl/

    Hope you guys can help me out

    Greetz

    #259158
    Profile photo of danbp
    danbp
    Moderator

    Hallo @mmirlach,

    Iโ€™ve activated the toolbar bubble in the settings… What are you talking about ? Such a setting doesn’t exist in BuddyPress.

    You can get any css information you need for this by:
    – right click on the page where you see this bubble and check the source code
    or
    – use Firebug or a similar tool.

    #259144
    Profile photo of mmirlach
    mmirlach
    Participant

    Hi, I’m using Buddypress on my website gaming-universe.de
    I’ve activated the toolbar bubble in the settings but it’s a very small red number in a blue circle, so it’s difficult to see what it says.

    Where can I change the style of the toolbar bubble? I did not find any CSS variables to do so.

    Profile photo of Anth0ny167
    Antonio
    Participant

    I created many custom notifications on my theme, such as notification on post comments, but after a post is commented and the notification is sent, the listing of posts and of other custom post types display a 404 page.

    This happens only on the listing page of posts, not on the single post pages.

    I really hope in an help.

    This is my code:

    add_action( 'bp_setup_globals', 'my_app_register_blog_notification' );
    
    /**
    * Register component
    */
    function my_app_register_blog_notification() {
    	// Register component manually into buddypress() singleton
    	buddypress()->my_app_blog = new stdClass;
    	// Add notification callback function
    	buddypress()->my_app_blog->notification_callback = 'my_app_blog_format_notifications';
    
    	// Now register components into active components array
    	buddypress()->active_components['my_app_blog'] = 1;
    }
    
    	
    
    /**
    * Format the notification content
    */
    function my_app_blog_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
    
    	if ( ! ('my_app_blog_like' === $action || 'my_app_blog_comment' === $action)) {
    		return $action;
    	}
    
    	$post_title = get_the_title( $item_id );
    
    	if ('my_app_blog_comment' === $action) {
    		$custom_title = sprintf( esc_html__( 'New comment received', 'my_app' ), $post_title );
    		$custom_link  = get_permalink( $item_id );
    		if ( (int) $total_items > 1 ) {
    			$custom_text  = sprintf( esc_html__( 'You received "%1$s" new comments', 'my_app' ), $total_items );
    			$custom_link = bp_get_notifications_permalink();
    		} else {
    			$custom_text  = sprintf( esc_html__( 'Your post "%1$s" received a new comment', 'my_app' ), $post_title );
    		}
    
    	}
    
    	// WordPress Toolbar
    	if ( 'string' === $format ) {
    		$message = (!empty($custom_link)) ? '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>' : $custom_text;
    		$return = apply_filters( 'my_app_wiki_like_format', $message, $custom_text, $custom_link );
    
    		// Deprecated BuddyBar
    	} else {
    		$return = apply_filters( 'my_app_wiki_like_format', array(
    			'text' => $custom_text,
    			'link' => $custom_link
    		), $custom_link, (int) $total_items, $custom_text, $custom_title );
    	}
    
    	return $return;
    
    }	
    
    add_action('comment_post','my_app_comment_notification',10,2);
    
    /*
    * Send the notification after comment inserting
    */
    function my_app_comment_notification($comment_id, $comment_approved) {
    
    	if( 1 === $comment_approved ){
    		$comment_object = get_comment($comment_id);
    		$post_type = get_post_type($comment_object->comment_post_ID);
    		$current_user_id = get_current_user_id();
    
    		if($post_type == 'post') {
    			$post_object = get_post($comment_object->comment_post_ID);
    
    			if(my_app_is_notification_enabled_blog_comment()) {
    
    				bp_notifications_add_notification( array(
    					'user_id'           => $post_object->post_author,
    					'item_id'           => $comment_object->comment_post_ID,
    					'secondary_item_id' => $current_user_id,
    					'component_name'    => 'my_app_blog',
    					'component_action'  => 'my_app_blog_comment',
    					'date_notified'     => bp_core_current_time(),
    					'is_new'            => 1,
    				) );
    			}
    
    		}
    
    	}
    }
    #258649
    Profile photo of danbp
    danbp
    Moderator

    Hi,

    appart it is a wordpress related question, you can use CSS.

    Try this rule; goes to child-theme style.css

    div.wp-editor-container div.quicktags-toolbar {
    	background-color: red!important;
    }

    You can find good tuts on the web for more details.

    #258645
    Profile photo of karmatiger
    karmatiger
    Participant

    In the profile edit, if a field has been selected as multiline text input in the backend Buddypress places a wp editor on the frontend. But it has the light grey toolbar / white content area styling of the backend post creation form.

    But my profile has a dark colour scheme and I’d like to style the wp editor to match. How can this be done?

    #258554
    Profile photo of bigkahunaburger
    bigkahunaburger
    Participant

    @jbboro3 Oh wait that is the code just for the tinymce. I’m trying to remember if I ever had the rich text editor working for comments.

    Here is the code I was using for what’s new (its modified slightly for the plugin I posted above):

    
    function bpfr_whats_new_tiny_editor() {
    		$dwqa_tinymce_css = apply_filters( 'dwqa_editor_style', DWQA_URI . 'templates/assets/css/editor-style.css' );
    		$toolbar1 = apply_filters( 'dwqa_tinymce_toolbar1', 'bold,italic,underline,|,' . 'bullist,numlist,blockquote,|,' . 'link,unlink,|,' . 'image,code,|,'. 'spellchecker,fullscreen,dwqaCodeEmbed,|,' );
    wp_editor(
    	isset( $_GET['r'] ) ? '@' . esc_attr( $_GET['r'] ) : '',
    	'whats-new',
    	
    	array(
    		'textarea_name' => 'whats-new',
    		'editor_class'  => 'whats-new-mce',
    		'editor_height' => 200,
    		'media_buttons' => false, 
    		'quicktags' => false,
    		'tinymce' => array(
    						'toolbar1' => $toolbar1,
    						'toolbar2'   => '',
    						'content_css' => $dwqa_tinymce_css
    				)
    
    	)
    );
    }
    add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );

    I need to do some digging too see if I have something for the rich editor in comments. I tired so many different things trying to get it working I forgot where I left off.

    #258521
    Profile photo of danbp
    danbp
    Moderator

    Hi !

    unable to recreate this issue on a standart install and 2016 activated.

    This button comes only up on Group Directory: All Groups | My Groups | Create Group and not when you’re inside an existing group (where you see Send invites).

    There is another button for this on the WP Toolbar > Usermenu > Groups > Create Group
    And both are displayed correctly on Twenty Sixteen.

    Within buddypress.css default file, there is no specific rule for it.
    In case of, button’s ID on BuddyMenu is #group-create-nav

    For now,
    – is group creation allowed for all users (see in BP options) ?
    – do you see the button in the usermenu (top right corner) and does it work ?

    No idea what’s your issue, but i don’t believe it is BuddyPress. Maybe a plugin or a JS issue. Difficult to say more without a live URL. ๐Ÿ˜‰

    #258323
    Profile photo of danbp
    danbp
    Moderator

    Hi,

    On your Toolbar you have the correct link to the correct register page !
    http://www.nyfertility.org/register/ (which is not blank at all !) ๐Ÿ˜‰

    Note that WP/BP use mostly php files. Searching for file-name.html brings generally nothing else as blank pages.

    When you create a page or use one of BP pages, edit the page and get the permalink (underneath the page title), so you be sure to have the correct path to it.

    Other advice ? ๐Ÿ™‚ Hum… read the documentation!

    #258209
    Profile photo of danbp
    danbp
    Moderator

    Hi,

    bp’s Usermenu is added to wp_admin_menu on the Toolbar, under Howdy. This BP menu ID is “my-account”.

    When you’re on a profile page, you see also these items in the Buddymenu, below the profile header cover.

    Some working examples here:
    Remove an item from Usermenu

    Remove an item from Buddymenu

    Since 2.6, BuddyPress use a navigation API. See here for many use case.

    Read also WP codex about admin bar menus.

    Where to put BuddyPress custom code ?
    Usually into bp-custom.php. This file is to BP code what a child theme is to a theme: a safe place with high priority where nothing get to loose when an update occurs !

    Child’s functions.php should be reserved to whatever you need for the theme itself.
    That said, it can happen(rarely) that some custom code won’t work from within bp-custom. In this case, feel free to remove it from bp-custom and give it a try inside child’s functions.php.

    As novice, you’re invited to read BP and WP codex if you want to customize.

    #257869
    Profile photo of Anth0ny167
    Antonio
    Participant

    Hi guys, I created a custom notification that is added when an user receive a like on a custom post type.

    All good unitl now, but I noticed that if the post receive 2 likes, from 2 different users, the user receive only the first notification and not the second one.

    Any help would be really appreciated.

    
    //Component declaration
    if(!function_exists('my_custom_register_wiki_notification')) {
    	function my_custom_register_wiki_notification() {
    		// Register component manually into buddypress() singleton
    		buddypress()->my_custom_wiki = new stdClass;
    		// Add notification callback function
    		buddypress()->my_custom_wiki->notification_callback = 'my_custom_wiki_like_format_notifications';
    
    		// Now register components into active components array
    		buddypress()->active_components['my_custom_wiki'] = 1;
    	}
    };
    
    //Notification format declaration
    if(!function_exists('my_custom_wiki_like_format_notifications')) {
    	function my_custom_wiki_like_format_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
    
    		// New custom notifications
    		if ( 'my_custom_wiki_like' === $action ) {
    
    			$wiki_post = get_post( $item_id );
    			$post_title = get_the_title( $item_id );
    
    			$custom_title = sprintf( esc_html__( 'Your post "%1$s" received a like', 'my_custom' ), $post_title );
    			$custom_text  = sprintf( esc_html__( 'Your post "%1$s" received a like', 'my_custom' ), $post_title );
    			$custom_link  = get_permalink( $item_id );
    
    			// WordPress Toolbar
    			if ( 'string' === $format ) {
    				$return = apply_filters( 'my_custom_wiki_like_format', '<a href="' . esc_url( $custom_link ) . '" title="' . esc_attr( $custom_title ) . '">' . esc_html( $custom_text ) . '</a>', $custom_text, $custom_link );
    
    				// Deprecated BuddyBar
    			} else {
    				$return = apply_filters( 'my_custom_wiki_like_format', array(
    					'text' => $custom_text,
    					'link' => $custom_link
    				), $custom_link, (int) $total_items, $custom_text, $custom_title );
    			}
    
    			return $return;
    
    		}
    
    		return $action;
    
    	}
    }
    
    //Function that add the notification when like is triggered
    function my_custom_add_like() {
      //...
      //...
    
      if(my_custom_is_wiki_like_notification_enabled()) {
    		        bp_notifications_add_notification( array(
    			        'user_id'           => $post_object->post_author,
    			        'item_id'           => $post_id,
    			        'secondary_item_id' => get_current_user_id(),
    			        'component_name'    => 'my_custom_wiki',
    			        'component_action'  => 'my_custom_wiki_like',
    			        'date_notified'     => bp_core_current_time(),
    			        'is_new'            => 1,
    		        ) );
    	        }
      
    }
    
    Profile photo of danbp
    danbp
    Moderator

    Profiles are handled on the mandatory BP members page.
    And yes you’re supposed to go to your-site/members/USERNAME/profile/ via the usermenu which is in the top-right corner of the toolbar (like on this forum) or from any profile, via the buddynav.

    Glad you got it !

    FYI, see eventl. here:
    https://buddypress.org/support/topic/add-dynamic-menu-link/#post-242555

    #257467
    Profile photo of Georgio
    Georgio
    Participant

    Finally I could resolve the problem after reading this article

    This developer suggests creating a plugin. The result is a link with a dashicon but it is not responsive. To make it responsive (show on mobile), I added in the css file of the plugin a snippet I fould elsewhere:

    @media screen and (max-width: 782px) {
    		  #wpadminbar li#wp-admin-bar-XXX {
    					display: block;
    		  }
    }

    Replace XXX with your id

    #257341

    In reply to: Activity Visual Editor

    Profile photo of bigkahunaburger
    bigkahunaburger
    Participant

    Here is my code:

    function bpfr_whats_new_tiny_editor() {
    wp_editor(
    	isset( $_GET['r'] ) ? '@' . esc_attr( $_GET['r'] ) : '',
    	'whats-new',
    	array(
    		'textarea_name' => 'whats-new',
    		'editor_class'  => 'whats-new-mce',
    		'editor_height' => 200,
    		'media_buttons' => false, 
    		'quicktags' => false,
    		'tinymce' => array(
    			'toolbar1' => 'bold,italic,underline,|,blockquote,|,bullist,numlist,|,link,unlink,|,spellchecker,|,undo,redo',
    			'toolbar2' => ''
    		)
    	)
    );
    }
    add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );
    <div id="whats-new-textarea">		
       <?php do_action( 'whats_new_textarea' ); ?>				
    </div>
Viewing 25 results - 1 through 25 (of 743 total)
Skip to toolbar