Skip to:

Search Results for 'toolbar'

Viewing 25 results - 1 through 25 (of 719 total)
  • Author
    Search Results
  • #256972
    Profile photo of khappamj

    What are the PHP file templates that have to
    edit in moving the toolbar?

    Profile photo of danbp

    dashboard > BuddyPress > settings > options > Main Settings and check
    Toolbar [] Show the Toolbar for logged out users

    If it still doesn’t work, check your theme settings.
    You could also test with Twenty Sixteen and see if there is a difference.

    Profile photo of rezza72

    There was no problem with toolbar and was previously displayed. But it does not show.
    I mean, from the toolbar, it is a bar for login and registration.

    Profile photo of ah72king

    I found a solution that can help

    // For Custom Notification 
    // Registering Custom Componet 
    function custom_filter_notifications_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, 'custom' );
        // Return component's with 'custom' appended
        return $component_names;
    add_filter( 'bp_notifications_get_registered_components', 'custom_filter_notifications_get_registered_components' );
    // Formatting custom with respect to action
    function bp_custom_format_buddypress_notifications( $action, $item_id, $secondary_item_id, $total_items, $format = 'string' ) {
     		//$item_id this your id which you can use to get your respected data
        	$data  = get_my_values_custom_function($item_id); // this is custom function it depend on your needs and data
        	$custom_title = $data->title;
        	$custom_link  = $data->link;
        	$custom_text  = $data->text;
        // New custom notifications
        if ( 'custom_action' === $action ) {
            // WordPress Toolbar
            if ( 'string' === $format ) {
                $return = apply_filters( 'custom_filter','Your custom notification for <a href="'.$custom_link.'">'.$custom_title.'</a> ', $custom_text, $custom_link );
            // Deprecated BuddyBar
            } else {
                $return = apply_filters( 'custom_filter', array(
                    'text' => $custom_text,
                    'link' => $custom_link
                ), $custom_link, (int) $total_items, $custom_text, $custom_title );
            return $return;
    add_filter( 'bp_notifications_get_notifications_for_user', 'bp_custom_format_buddypress_notifications', 10, 5 );
    // Adding custom Notification in DB 
    function bp_custom_notification( $item_id, $author_id ) {
        if ( bp_is_active( 'notifications' ) ) {   // if notification is active from admin panel
        	// if notification is active from admin panel bp_notifications_add_notification function to add notification into database
            bp_notifications_add_notification( array(                        
                'user_id'           => $author_id, // User to whom notification has to be send
                'item_id'           => $item_id,  // Id of thing you want to show it can be item_id or post or custom post or anything
                'component_name'    => 'custom', //  component that we registered
                'component_action'  => 'custom_action', // Our Custom Action 
                'date_notified'     => bp_core_current_time(), // current time
                'is_new'            => 1, // It say that is new notification
            ) );
    add_action( 'custom_hooks', 'bp_custom_notification', 10, 2);
    * custom_hooks is action name which will be call by do_action() function
    * bp_custom_notification your function name
    * 10 is priority number
    * 2 is number of parameter 
    * Now Where to call custom_hooks and how 
    do_action('custom_hooks', $item_id, $author_id );
    * place it where you want to call this action and pass parameter
    Profile photo of Jeremy Pry
    Jeremy Pry

    Under certain circumstances, there is an infinite loop inside the bp_legacy_theme_new_activity_comment() function. Specifically, when all of the secondary_item_id fields are zero, the $parent_id will continually be set to zero. An infinite loop ensues and eventually the script will time out. This causes new activity items to not display until the page is refreshed, as mentioned here:

    This error happens when attempting to add a comment to a group post. I believe this is a similar problem as the one expressed here:

    For information:

    • WordPress 4.5.3
    • BuddyPress
    • Single site install in web root
    • There are indeed other plugins activated on this site. The full list is below. This site is for a client, and I’m unsure of which plugins can be safely deactivated to test.
    • We’re using a customized theme, but I have tested with the TwentySixteen theme and found the same results.
    • The core BuddyPress files have not been modified to my knowledge.
    • The site is hosted on, but I can reproduce the problems in a local VVV install
    • The live site is

    I believe that this may be a problem inside BuddyPress itself, as the function with the infinite loop is part of BuddyPress. The Javascript that makes the Ajax request is part of the BuddyPress Wall plugin, but from what I can tell the problem is in the aforementioned bp_legacy_theme_new_activity_comment() function.

    My specific concern is this loop:

    	// Load the new activity item into the $activities_template global.
    	bp_has_activities( 'display_comments=stream&hide_spam=false&show_hidden=true&include=' . $comment_id );
    	// Swap the current comment with the activity item we just loaded.
    	if ( isset( $activities_template->activities[0] ) ) {
    		$activities_template->activity = new stdClass();
    		$activities_template->activity->id              = $activities_template->activities[0]->item_id;
    		$activities_template->activity->current_comment = $activities_template->activities[0];
    		// Because the whole tree has not been loaded, we manually
    		// determine depth.
    		$depth = 1;
    		$parent_id = (int) $activities_template->activities[0]->secondary_item_id;
    		while ( $parent_id !== (int) $activities_template->activities[0]->item_id ) {
    			$p_obj = new BP_Activity_Activity( $parent_id );
    			$parent_id = (int) $p_obj->secondary_item_id;
    		$activities_template->activity->current_comment->depth = $depth;

    I’ve run XDebug locally to inspect the items in the loop as it is running. If some of the raw variable data is required, I can provide that.

    I have tried making some changes to the code in this loop to prevent the infinite loop from occurring. While successful in that endeavor with a few tweaks, the result is that the comment sent back through the Ajax response is the wrong comment, and a page refresh is still needed.

    I considered filing a bug in Trac, but I wasn’t certain whether something else could possibly be interfering.

    | name                                 | status | update    | version |
    | akismet                              | active | none      | 3.1.11  |
    | all-in-one-seo-pack                  | active | available | 2.3.7   |
    | appbuddy                             | active | available | 2.0.7   |
    | appcamera                            | active | available | 2.0.0   |
    | appfbconnect                         | active | none      | 2.3.0   |
    | apppresser                           | active | none      | 2.5.0   |
    | apppush                              | active | available | 2.1.0   |
    | appshare                             | active | none      | 2.1.0   |
    | appswiper                            | active | available | 2.2.1   |
    | bp-profile-search                    | active | none      | 4.5.2   |
    | buddypress                           | active | none      | |
    | buddypress-activity-plus             | active | none      | 1.6.4   |
    | bp-moderation                        | active | none      | 0.1.7   |
    | buddypress-nocaptcha-register-box    | active | none      | 1.1.3   |
    | buddypress-toolbar                   | active | none      | 1.6.0   |
    | buddypress-wall                      | active | none      | 0.9.4   |
    | buddypress-xprofile-image-field      | active | none      | 2.0.1   |
    | category-posts                       | active | none      | 4.6.1   |
    | contact-form-7                       | active | none      | 4.4.2   |
    | contact-form-7-to-database-extension | active | none      | 2.10.20 |
    | cubell-themes-functionality          | active | none      | 3.1     |
    | envato-wordpress-toolkit             | active | none      | 1.7.3   |
    | hashbuddy                            | active | none      | 1.5.2   |
    | login-with-ajax                      | active | none      | 3.1.6   |
    | mailchimp-for-wp                     | active | none      | 3.1.11  |
    | nav-menu-roles                       | active | none      | 1.8.2   |
    | nextend-facebook-connect             | active | none      | 1.5.9   |
    | buddypress-media                     | active | none      | 4.0.4   |
    | vine-embed                           | active | none      | 0.2     |
    | wds-lod-automatic-friends            | active | none      | 0.1.0   |
    | wds-lod-base                         | active | none      | 0.1.0   |
    | wds-lod-bp                           | active | none      | 0.1.0   |
    | wds-lod-post-types                   | active | none      | 0.1.0   |
    | wds-lod-widgets                      | active | none      | 0.1.0   |
    | wordpress-importer                   | active | none      | 0.6.1   |
    Profile photo of phucitol

    Thanks so much for your response. I reread that post (which is what I based my code on) and I do realize I made some changes. For example removing:

    // deactivation of the visual tab, so user can't play with template styles
    add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 );

    and using:

    'tinymce'=> array(
                     'toolbar1'=> 'bold,italic,underline,strikethrough,forecolor',
                     'toolbar2' => 'bullist,numlist,link,unlink,undo,redo'

    instead of

    'quicktags' => array(
    		'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close')

    Without those changes I can’t get the rich text editor that I require. Did you mean by “It’s explained here” that making the visual editor work in this context is not possible?

    Profile photo of phucitol


    I created a custom form-post.php so I could use wp_editor to customize the tinymce buttons I wanted to show. This is my code for that:

    function bpfr_whats_new_tiny_editor() {
    	// building the what's new textarea
    	if ( isset( $_GET['r'] ) ) :
    	$content = esc_textarea( $_GET['r'] ); 
    	// adding tinymce tools
    	$editor_id = 'whats-new';
    		$settings = array('textarea_name' => 'description',
                     'quicktags' => false,
                     'editor_class' => 'bp-suggestions',
                     'media_buttons' => false,
                     'teeny' => false,
                     'textarea_rows' => 5,
                     'tinymce'=> array(
                     'toolbar1'=> 'bold,italic,underline,strikethrough,forecolor',
                     'toolbar2' => 'bullist,numlist,link,unlink,undo,redo'
    	// get the editor	
    	wp_editor( $content, $editor_id, $settings );
    add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );
    		<div id="whats-new-textarea">
    			<?php do_action( 'whats_new_textarea' ); ?>

    My issue is that when I click in to the textarea (which is of course in an iframe) the “post update” button does not appear as it normally should. Suggestions?

    Profile photo of danbp

    Do you mean also that members can’t access to their profile settings when they are on their profile page ?

    The BP usermenu on the Toolbar, under Howdy (top right) mimics the usermenu of the BuddyBar which is on each profile.

    Have you enabled Extended Profiles ?

    Or use this snippet to login redirect your users to their profile.

    ps: i removed your site url as it is locked to public – which doesn’t help no one to help you.

    Profile photo of danbp

    hi @javierllinas

    You can use something like this (add to bp-custom.php or child theme’s functions.php)

    BuddyPress usermenu usage: remove_node(‘$id-$nav-$subnav’)

    /* remove items from Toolbar Usermenu (top-right) */
    function bpex_admin_bar_remove_this(){
    global $wp_admin_bar;
            // etc...


    Profile photo of danbp


    color buttons are TinyMCE tools and not html tags. The only way to get them would be to use the editor toolbar.

    Here a scenario you could use:
    – create a child-theme and add post-form.php to it (copy from bp-templates/bp-legacy/buddyPress/activity/post-form.php).
    Result: your-child-theme/buddypress/activity/post-form.php

    In that file, go to line:40 where textarea start.
    Inser this action hook:

    <?php if ( bp_is_groups_component() ) : ?>
    	<?php do_action( 'blablabla' ); ?>
    <?php endif ?>

    Then add this <?php if ( ! bp_is_groups_component() ) : ?>
    <textarea class="bp-suggestions"......bla...bla...</textarea>
    and add <?php endif ?> after the textarea closing tag.

    This contionnals will show a custom area for the desired group and prevent update area to appear on all other groups home pages.

    So if a user is member of different groups, he will get a texteditor for group_id 13 and the normal update area on all others.

    The custom template is ready. Now the fonctions we need.

    Open bp-custom.php (or create it) and paste in those snippets.

    Adding the texteditor:

    function bpfr_whats_new_tiny_editor() {
    	// deactivation of the visual tab, so user can't play with style tools
    //add_filter ( 'user_can_richedit' , create_function ( '$a' , 'return false;' ) , 50 );
    $content = "";
    	// building the what's new textarea
    	if ( isset( $_GET['r'] ) ) :
    	$content = esc_textarea( $_GET['r'] ); 
    	// adding tinymce tools
    	$editor_id = 'whats-new';
    	$settings = array( 
    			'textarea_name' => 'whats-new', 
    			'teeny' => false, 
    			'media_buttons' => true, 
    			'drag_drop_upload' => true, 
    			'quicktags' => array(
    			'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close'
    	// get the editor	
    	wp_editor( $content, $editor_id, $settings );
    add_action( 'whats_new_textarea', 'bpfr_whats_new_tiny_editor' );

    A simple function who add the original textarea for users who are group members, but not allowed to rich edit.

    function my_textarea() { ?>
    			<textarea class="bp-suggestions" name="whats-new" id="whats-new" cols="50" rows="10"
    				<?php if ( bp_is_group() ) : ?>data-suggestions-group-id="<?php echo esc_attr( (int) bp_get_current_group_id() ); ?>" <?php endif; ?>
    			><?php if ( isset( $_GET['r'] ) ) : ?>@<?php echo esc_textarea( $_GET['r'] ); ?> <?php endif; ?></textarea>

    And the last one, where you set up the group allowed to publish updates using edit tools.

    function trotro() {
    if ( bp_is_groups_component() ) :
    $check = groups_is_user_member( bp_loggedin_user_id(), bp_get_group_id() );
    $check_group = bp_get_group_id(); 
    	if ($check != 0 && $check_group == 21 && 'leon' == bp_current_item() ){
    		echo 'Wow! You can rich edit in this group.';
    	} else {
    		echo 'Sorry, you cannot rich edit in this group';
    add_action( 'blablabla', 'trotro' );

    Now, any member which is part of the group leon, group id 23 can publish updates and use the color picker and all other things which are on the edit bar.

    Only thing you have to do is to adjust leon and id to your rules.

    Successfully tested on 2.6 and 2016.

    May this help you to go further with your BuddyPress project. 🙂

    Profile photo of RobertL4807

    Can I have BuddyPress running at but also seamlessly have a blog at where logged in members can comment on podcast posts and see their profile avatar in the main toolbar?
    In other words, would recognize a user/member who is logged in at

    Much appreciated.


    Profile photo of nvsdi


    when a member logs in the home icon redirects to the member page. if i enter the url for the home page it redirects to the member page.
    Where can i fix it so that it redirects to the home page. i have a link for the members page in the toolbar.
    please help….

    Profile photo of danbp

    Give this a try: (add to bp-custom.php) 1) & 2):

    function bpfr_hide_tabs() {
    global $bp;
    	if ( bp_is_user() && !is_super_admin() ) {
    		bp_core_remove_nav_item( 'notifications' );
    		bp_core_remove_subnav_item( 'messages', 'compose' );
    add_action( 'bp_setup_nav', 'bpfr_hide_tabs', 15 );

    3) With BP and xprofile component activated, a user doesn’t need access to WP dashboard. He can change his profile credentials from front-end.
    Easiest way would be to use this plugin.

    Retrieving them the possibility to change their email is anyway not a good idea. What happen when a user changed from yahoo to gmail, but can’t login because he lost his password ? Where will the new pwd be sent ?

    Perhaps you have also to remove this from the BP usermenu on toolbar ?
    Here’s how you can do it:

    function admin_bar_remove_this(){
    global $wp_admin_bar;
    Profile photo of abooster

    There is a feature in WordPress that’s very useful for a blog owner who administers his/her own blog, but that same feature presented to the user who is NOT a site admin is downright malicious and exposes the site owner to a serious security risk or at least a serious and even more costly privacy risk.
    BuddyPress and bbPress are both guilty of doing just that.

    But the interesting thing is:
    The administrators of apparently do have a brain because they’ve made sure that this giant security/privacy hole is closed on this bbPress forum here.

    So, WHY THEN ARE THEY EXPOSING every other normal BuddyPress and bbPress user to that malicious behavior of BuddyPress and bbPress???

    That’s what I wanna know.

    Oh, you wanna know what’s that malicious behavior/security risk that BuddyPress and bbPress is exposing you to?
    Go to your own installation of bbPress, create a new topic/post and while creating it highlight a word and click that “insert link” button you see in the top row!
    Does it ring a bell?

    In case you are very slow, lemme ring the bell for you here:

    First, you need to open your eyes. That’s quite important.
    Listening to the bell alone isn’t gonna help you.

    Secondly, take a look at that “Or link to existing content” thingy and explore the list that appears below!
    See how it lists ALL OF YOUR PAGES including the secret thank-you pages with content that is supposed to be visible ONLY TO PEOPLE WHO HAVE PAID FOR THE PRODUCT!
    As well as all of your test pages and other secret/private pages that you don’t want anyone to have access to.

    And in case you don’t think that’s a good idea, you are not alone.
    The admins of don’t think that’s a good idea either.
    That’s why on this website, on this bbPress forum here they have removed that security/privacy threat!

    That’s right! If you try the “insert link” feature in this forum here, you’ll immediately notice that this malicious “Or link to existing content” feature has been disabled.
    It’s not suggesting any of the internal pages on here.

    And it’s good to know that at least the admins of do have a brain.

    Now, in a bbPress forum you could sort of “fix” this issue by making your forum extremely inconvenient for your users.
    Just go to your forum settings and uncheck “Add toolbar & buttons to textareas to help with HTML formatting”.

    But is that something you really want to do???

    Do you really want your forum appear as if was coded in 1997?
    Do you really want to deprive all normal forum users of being able to format their posts?
    And even users who know HTML, would they want to type HTML markup when posting in a forum?

    But hey, while bbPress offers at least a 1997-style kill switch to switch off that malicious behavior of bbPress, BuddyPress does NOT offer such switch at all.

    So, if, for example, you have something like BuddyPress Docs installed (a very helpful plugin by the way), then you’ll find yourself facing the same damn problem!

    Now for my final question to the admins of
    Do you know what negligence is?

    You are guilty of negligence because while having protected your own site with some custom coding, you are exposing all other people using your software to a serious security/privacy risk!

    FIX IT!
    I want people to be able to easily format my forum posts and BuddyPress posts (using TinyMCE) WITHOUT exposing my private pages!
    Otherwise I might just as well publish my admin password on my home page.

    WHY THE HELL is the custom code that you have implemented on this site here (and on to protect your sites from malicious attacks) is not part of the core BuddyPress code???????

    I couldn’t keep this post any shorter because when I see such a tremendous amount of stupidity (or negligence in this case) it just drives me mad.

    Profile photo of pcasciaro

    Thanks for the reply.
    That’s a pity.
    The community or bp menu i think should be available on the entire network and not only on mainsite. Otherwise a blog user will need to go back on the mainsite to use the community tool.
    When you say the toolbar do you mean the dashboard (backend)?
    If so that’s also a pity because users don’t like to go to the backend. Instead it would be better to have the full bp menu on Frontend.

    Profile photo of danbp

    So the mainsite BP menu is not complete on subsite!

    That’s right, because on a subsite, you’re on a blog.
    BP is only active on the mainsite, as it’s where it is activated. On mainsite you see whole members fonctionnalities (friends, groups, messages and son on). On a blog, aka subsite, you’re like a user of a WP site whithout BP.

    That’s also the reason why enabling multiblog is deactivated by default and not usefull in most of case. This warning is given on the codex page i indicated you previously.

    Deactivate multiblog and revert to initial default configuration.

    On the toolbar, in top left corner, you have the usermenu with all BP items. This menu is accessible to logedin user, wherever he is. Mainsite or subsite. And that’s default behave !

    For a bit more understanding, in case you want insist to remove that menu to get it on the main nav (beside About, Home etc), please take a look to this topic.

    Cheers ! 😉

    Profile photo of AngelaQ

    WordPress version 4.5.2
    Buddypress version 2.5.3

    ColorMag Theme

    When I installed bp and turned extended profiles, if I go to the toolbar in the upper right and choose Profile-Edit it goes to something like this:


    And it’s a 404 page.

    Also, if I click on any of the users in the backend including me the Admin, it says they’re marked as spam but yet the active/spam toggle is set to active not spam.

    In addition, the register page doesn’t work and just loops back to home page.

    Am I supposed to do some kind of setup other than checking the button the button that I want extended profiles in order to make this work? The documentation on this site for this just says it’s pending.

    I’ve turned it off so I can at least use regular profile management but would love to access the extended profiles capabilities.


    In reply to: Blog for users

    Profile photo of FridaFric

    Hi danbp,
    Thank you very much for your prompt response. I’ve done all that you wrote me but new tab called Sites do not appear in Toolbar user menu. Maybe I need something to do in BuddyPress settings too?


    In reply to: Blog for users

    Profile photo of danbp


    you don’t need a plugin to do that. You have perhaps omited to activate blog creation. Go to your network admin (wp-admin/network/settings.php)

    and select one of these option:
    – Logged in users may register new sites.
    – Both sites and user accounts can be registered.

    Save and you’re done.
    On the Toolbar user menu (top right) you will see a new button called Sites whith a sub-menu Create a site.

    Profile photo of Paul Gibbs
    Paul Gibbs

    By “notification”, do you mean an email? Or a notification in the toolbar? Or both?

    Profile photo of RONO2

    Hide Admin Bar Toolbar is what I used. I’m still trying to link my buddypress with my bbpress not going over well. LoL Hope this helps.

    Profile photo of OakCreative

    @oliver_rub, our current solution involves deregistering the BuddyPress mentions script and enqueuing our own slightly modified version with a more generic jQuery selector. I think @slaffik has found the best solution though, I’m going to try it.

    @benworxnl, no we had a slightly different scenario. We transformed the “What’s New” textarea into a WYSIWYG editor and the visual tab worked on that straight away. The issue we had was getting the mentions to work on that visual editor.

    Anyway, we duplicated and edited the activity/post-form.php template and replaced the textarea with wp_editor;

    	isset( $_GET['r'] ) ? '@' . esc_attr( $_GET['r'] ) : '',
    		'textarea_name' => 'whats-new',
    		'editor_class'  => 'whats-new-mce',
    		'editor_height' => 200,
    		'tinymce' => array(
    			'toolbar1' => 'bold,italic,underline,|,blockquote,|,bullist,numlist,|,link,unlink,|,spellchecker,|,undo,redo',
    			'toolbar2' => ''

    For activity replies, you could do something similar to this in activity/entry.php;

    	isset( $_GET['r'] ) ? '@' . esc_attr( $_GET['r'] ) : '',
    	'ac-input-' . bp_activity_id(),
    		'textarea_name' => 'ac_input_' . bp_activity_id(),
    		'editor_class'  => 'ac-input',
    		'editor_height' => 200,
    		'tinymce' => array(
    			'toolbar1' => 'bold,italic,underline,|,blockquote,|,bullist,numlist,|,link,unlink,|,spellchecker,|,undo,redo',
    			'toolbar2' => ''

    Please note, I’ve not tested the above.


    In reply to: Few Issues

    Profile photo of David Cavins
    David Cavins
    Profile photo of johnywhy


    We need a plain text multiline field (without formatting toolbar). Like HTML “textarea” element.

    Is there a way to hide the formatting toolbar in the built-in multiline textbox? What kind of textbox is that TinyMCE?

    Or, can we add a new fieldtype? i could not find instructions for this– if possible, plz link me to instructions.

    thx for all help!


    Topic: Few Issues

    in forum Your BuddyPress
    Profile photo of angelawilkes

    I am needing help on a few issues. I have latest WP & BP available as of today, and am using theme Twenty Thirteen. The website is
    1) When registered users log in, I need them to only have access to the front-end rather than their limited back-end page. (Note: I am using BP Registration Options to require admin approval upon registration).
    2) Disable the toolbar at top for all non-admin users
    3) Recommendation on plugin that allows photos to be posted to group post comments. I have tried a few that allows media into the original post, but not the comments. A secondary alternative is possibly allow media attachment into private message (not ideal, but acceptable)
    4) Ability for users to Edit their comment. Delete works great, but need ability to edit also. Plugin?
    Thanks in advance for any and all assistance!

Viewing 25 results - 1 through 25 (of 719 total)
Skip to toolbar