BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: Notify Admins #1370

    Did you try posting by your admin account? If yes, please try creating a topic/replying with normal user account(Super admins and current user are excluded).

    Also, since the other users are sent as bcc, please do check spam folders too.

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: Notify Admins #1368

    Hi Mary,
    Welcome to BuddyDev forums.

    Thank you for asking the question. I have updated the plugin and version 1.0.1 is now available on WordPress.org plugin repo. It includes a filter that allows us to add any number of extra emails.

    Please upgrade to version 1.0.1 and then you can put following in your theme’s functions.php

    
    
    function bpp_notify_admin_extra_email_address( $emails, $context = null ) {
    	//$context will be 'topic'/'reply' if you need to do extra filtering
    	
    	$new_emails = array(
    		'a@example.com',
    		'b@example.com',
    		//keep adding
    	);
    	
    	return array_merge( $emails, $new_emails );
    }
    add_filter( 'bbp_notify_admin_email_addresses', 'bpp_notify_admin_extra_email_address', 10, 2 );
    
    

    Change the email address/add more as you need.
    Please note, there is no need to append admin email and it will be already included.

    Hope that helps. Please do let me know if it works for you or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: Happy Birthday Brajesh #1366

    Thank you George and Thank you Hans 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: Unable to reply in the topic I created? #1362

    Hi Laurie,
    sorry about that topic issue. If that happens next time, please try refreshing browser. That hsould fix it.

    Now, about your question. Yes, you are right. The problem is it only looks for followers when friends is not active.

    Again, enabling followers is still not an issue, I ma posting modified code from my previous post to include following users with friends.

    
    
    add_filter( 'fblike_activity_get_friend_ids', 'fb_like_custom_include_folling_user_ids_with_friends', 10, 2 );
    function fb_like_custom_include_folling_user_ids_with_friends( $user_ids, $current_user_id ) {
    	
    		$following_ids = bp_follow_get_following ( array('user_id'=> $current_user_id ) );
    	
    		$all_ids =  array_merge( $user_ids, (array) $following_ids );
    		
    		return array_unique( $all_ids );
    }
    
    

    Can you please put it in your bp-custom.php or theme’s functions.php and check if it is working or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25057

    Hi George,
    sorry for missing it. Will look at it today and get back to you.

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: Happy Birthday Brajesh #1358

    Thank you Israel 🙂
    I appreciate the feelings 🙂

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: Followers are not showing in activity feed #1357

    Hi Laurie,
    My apologies for the inconvenience.

    Since most the users are only interested in seeing the activity of the users they follow, This plugin includes that by default.

    Still, It is very easy to make it include the activity of followers. You can add following line to your bp-custom.php or theme’s functions.php and It will include followers activity too

    
    add_filter( 'fblike_activity_get_friend_ids', 'fb_like_custom_include_follower_user_ids', 10, 2 );
    
    function fb_like_custom_include_follower_user_ids( $user_ids, $current_user_id ) {
    	
    	$follower_ids = bp_follow_get_followers( array( 'user_id' => $current_user_id ) );
    	
    	return array_merge( $user_ids, $follower_ids );
    }
    
    

    Hope that helps.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25057

    Hi Kristina,
    You are most welcome 🙂

    Should we mark it as resolved then?

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: [Resolved] Friends Only Activity Stream #1352

    Thank you Israel.
    I am glad that it is working. Appreciate your generosity 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25057
    Brajesh Singh on in reply to: [Resolved] Friends Only Activity Stream #1350

    Hi,
    I have update the code in my 2nd post. I left a print_r there that was showing the output. Sorry about that.