BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 24778

    Hi Benny,
    Thank you.

    I am very sorry for the inconvenience. Our documents need update. They are based on initial plugin update and does not contain the recent updates.

    We are going to update it soon.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24778

    Hi Eric,
    You are welcome. I am happy it worked partially.

    The problem lies with

    
    bb_get_followers_count() 
    

    function. The function does not return follower count and seems to be named badly. Can you please ask them to provide us with a function that returns the actual count.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24778

    Hi Stefan,
    I am sorry for the delayed reply.

    The solution of the default notification is already there. I had forgotten about it.

    Please visit Dashboard->Settings-> Recent Profile Visitors and click on “Default”. There you can set the default preference for users.

    For the icon, Please share me an example of notification with icon(screenshot) to help me understand it correctly.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24778

    Hi Eric,
    Thank you.

    Please put this code in your bp-custom.php

    
    
    function bp_custom_add_member_follower_scope_filter( $qs, $object ) {
    	// not on the members object? stop now!
    	if ( 'members' !== $object ) {
    		return $qs;
    	}
    
    	// members directory
    	if ( ! bp_is_user() && bp_is_members_directory() ) {
    		$qs_args = bp_parse_args( $qs );
    		// check if members scope is follower before manipulating.
    		if ( isset( $qs_args['scope'] ) && 'follower' === $qs_args['scope'] ) {
    			$qs .= '&include=' . bp_get_follower_ids(
    					array(
    						'user_id' => bp_loggedin_user_id(),
    					)
    				);
    		}
    	}
    
    	return $qs;
    }
    
    add_filter( 'bp_ajax_querystring', 'bp_custom_add_member_follower_scope_filter', 30, 2 );
    
    /**
     * Add a "Following (X)" tab to the members directory.
     *
     * This is so the logged-in user can filter the members directory to only
     * users that the current user is following.
     *
     * @uses bp_follow_total_follow_counts() Get the following/followers counts for a user.
     */
    function bp_custom_follower_add_following_tab() {
    
    	if ( ! is_user_logged_in() ) {
    		return;
    	}
    
        // BuggyBoss has some messed up code, so this won't work.
    	$count = bb_get_followers_count( get_current_user_id() );
    
    	if ( empty( $count ) ) {
    		// return;
    	}
    
        $count = 0 ;// Ask BuddyBoss, not me.
    
    	?>
    
        <li id="members-follower">
            <a href="#"><?php printf( __( 'Followers<span>%d</span>', 'buddypress-followers' ), esc_html( $count ) ) ?></a>
        </li>
    
    	<?php
    }
    
    add_action( 'bp_members_directory_member_types', 'bp_custom_follower_add_following_tab' );
    
    

    It won’t show you the count initially as there is a bug in BuddyBoss, but clicking the tab will update the count and show the followers.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24778

    Thank you for your feedback Tosin.

    I am not able to commit time on this currently. I will update you once we start working on this.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24778

    Hi Benny,
    Thank you for reporting.

    we don’t have any special integration with Elementor. The shortcodes should work as normal.

    In your case, It is probably the css of the area(width?) which is not allowing the media items as grid. Please link us to a page on your site using this shortcode with Elementor and we can look into the issue.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24778

    Hi Benny,
    Thank you.

    Please add another parameter to your shortcode to avoid pagination

    show_pagination=0
    

    If you add this to the shortcode, the pagination will not be shown.

    Please let me know if that works for you or not?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24778

    The problem is , the text is not being escaped if it is not group activity, so that is working.

    The text is being escaped(by something) when it is group activity. That’s what I was trying to convey earlier.

    We will have a solution for this within 2 working days.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24778

    No. That’s just an internal css class name(is not for the users to see). It was mis-spelled initially, that’s why it is so. It has no effect.

  • Keymaster
    (BuddyDev Team)
    Posts: 24778

    Thank you for the reply.

    — BuddyPress Anonymous Activity —
    The thing is we save some markup<span class="anonymus-activity-user-name">Anonymous</span> .... for the activity which is not the case for normal activity.
    The reason is to allow styling “Anonymous” name.

    When I said a theme/plugin conflict, I meant that this markup is escaped and stored and that’s causing the issue.

    Regards
    Brajesh