BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: how to add reach text field in a user profile #46491

    Hi,
    Thank you for the replies.

    1. For BuddyBoss core related questions, BuddyBoss is the authority and I will suggest checking with their support.

    2/3. We did not add it in core as it is not the experience we are looking for. If we ever added an option like that, we will need to implement some kind of the fedeback mechanism to the user on the chars length. Without that, this only applies on save and is not very helpful for the end user.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: How to remove following tab #46490

    You may use the following code(Please test as I haven’t tested)

    
    
    add_action( 'bp_follow_activity_loaded', function () {
    
    	$bp = buddypress();
    
    	if ( empty( $bp->follow ) || empty( $bp->follow->activity ) || empty( $bp->follow->activity->module ) ) {
    		return;
    	}
    
    	if ( ! method_exists( $bp->follow->activity->module, 'add_activity_directory_tab' ) ) {
    		return;
    	}
    
    	remove_action( 'bp_before_activity_type_tab_favorites', array(
    		$bp->follow->activity->module,
    		'add_activity_directory_tab'
    	) );
    } );
    
    

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: [Resolved] Branded login 403 forbidden error #46489

    Hi Tosin,
    It seems your theme has some kind of login handling mechanism too(redirect etc) and that is conflicting with Branded Login. I will suggest looking into your theme and checking if you can disable that.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211

    Hi Daniel,
    I had a look.

    The plugin does filter on the delete link on user profile.

    Here is the code for that

    
    		// let us apply our mod.
    		if ( ( is_user_logged_in() && $activity->user_id == bp_loggedin_user_id() ) || is_super_admin() ) {
    			return $del_link;
    		}
    
    

    it simple enabled the delete link for user’s own activity or if the site admin is logged. It does not affect the link in any other way.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: How to remove following tab #46484

    Hi Tosin,
    You may use the following css

    
    #activity-follow{  display:none;}
    

    If that does not work(may happen for some theme) you will need to ad the !important flag to enforce it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211

    Hi Quint,
    Thank you for bringing it.

    The problem is there is no standard consistent way specified.

    Some of the field types in core have it as you have specified and some have it differently.

    1. After Input fields
    https://github.com/buddypress/buddypress/blob/master/src/bp-xprofile/classes/class-bp-xprofile-field-type-selectbox.php

    2. before input fields
    https://github.com/buddypress/buddypress/blob/master/src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php

    There are many field types with this inconsistency, so we don’t have a standard here.

    I am willing to change as you have suggested but I am worried about its ipact on the existing installs.
    Do you have suggestions to deal with that.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: [Resolved] Branded login 403 forbidden error #46482

    Please share the shortcode being used for login.
    Also, are you using another plugin/code to allow login from any page as Branded login only works for the assigned login page.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211

    Hi Cristi,
    Thank you for the patience.

    Please put this in your theme’s functions.php or (wp-content/plugins/bp-custom.php)

    
    
    add_filter( 'bblpro_disable_author_media_listing', '__return_true' );
    
    

    When we release BuddyBlog Pro 1.3.0, the plugin will not list any media to the author other than what they upload on the current post if this filter is enabled.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211

    Hi Carsten,
    Thank you. If you are using Nouveau, then there are 2 way to do it.

    1. Using hooks( to use output buffer an discard but it is not reliable for future changes)
    2. Editing template file, we are going to use it.

    Please copy wp-content/plugins/buddypress/bp-templates/bp-nouveau/buddypress/members/single/home.php to your-child-theme/buddypress/members/single/home.php

    Now, Please look for these lines at the top

    
        <div id="item-header" role="complementary" data-bp-item-id="<?php echo esc_attr( bp_displayed_user_id() ); ?>" data-bp-item-component="members" class="users-header single-headers">
    
    		<?php bp_nouveau_member_header_template_part(); ?>
    
        </div><!-- #item-header -->
    
    

    and change it to

    
    <?php if ( ! in_array( bp_current_component(), array( 'activity', 'notifications', 'messages', 'settings' ) ) ) : ?>
        <div id="item-header" role="complementary" data-bp-item-id="<?php echo esc_attr( bp_displayed_user_id() ); ?>" data-bp-item-component="members" class="users-header single-headers">
    
    		<?php bp_nouveau_member_header_template_part(); ?>
    
        </div><!-- #item-header -->
    <?php endif; ?>
    
    

    Please feel free to update the slug list with any component you want to hide.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25211
    Brajesh Singh on in reply to: The BP Menus PERSONAL MENTIONS FAVOURITES FRIENDS GROUPS #46468

    Hi Daniel,

    Thank you for the reply.

    That would be very strange if the plugin did that. I will check the code and get back to you in couple of hours.

    Regards
    Brajesh