Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Thank you Charles.

    Have received your email. Please expect an update of BuddyBlog Pro by Day end Tuesday. I will be posting some solution for this topic by Monday.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Hi Cromacio,
    Thank you.

    it’s good to know that you got it resolved.

    Thank you for letting me know.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Hi John,
    Thank you for the question.

    Here is a sample code to do that.

    
    
    add_filter( 'bp_activity_can_comment', function ( $can, $activity_type ) {
    
    	// already protected, return.
    	if ( ! $can ) {
    		return $can;
    	}
    
    	$logged_user_id   = get_current_user_id();
    	$activity_user_id = bp_get_activity_user_id();
    
    	// if not user's own activity, or not super admin
    	// and the current user is not friends with the activity user, disable comment.
    	if ( $logged_user_id != $activity_user_id &&
    	     ! is_super_admin() && function_exists( 'friends_check_friendship' ) &&
    	     ! friends_check_friendship( $logged_user_id, $activity_user_id )
    	) {
    		$can = false;
    	}
    
    	return $can;
    }, 20, 2 );
    
    

    Please note that it will do it for all activities(including user’s activity on the group).
    Also, It will not hide the comment reply button.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384
    Brajesh Singh on in reply to: [Resolved] Users Choosing Member Types #41151

    Hi Lisa,
    Thank you.

    I will be pushing the update by day end tomorrow.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Hi Fabricio,
    Thank you for using the plugin.

    I had a look in plugin’s code and I am not seeing any code preventing registration email.

    Is there any chance that you are using some other plugin that affects registration such as auto activation, moderation or something on that line?

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384
    Brajesh Singh on in reply to: [Resolved] Issues with BP Deactivate Account #41125

    Hi Khalid,
    I am sorry, I have tested it again on your site and I am not seeing any issue at all.

    How do you produce it? I tried with the test user account you had shared above.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Hi Charles,
    Thank you for posting the question here.

    Can you please link me to 2 screenshots(1 showing the custom post type and one showing the standard) and point the differences that you need to be available.

    I am sorry, I had asked you this over mail but I am not able to recall it currently. so, please bear with me and provide the screenshot again.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Hi Pablo,
    Thank you for the log.

    I am sorry, they don’t show any message related to our insertion. Please allow me to try this on a local setup this weekend and get back to you if I am able to reproduce it.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Hi Andrew,
    I am sorry, I am still reading their code. They don’t have a clearly written workflow, so I am going through the whole code. I will be needing couple more days before can assist you with the reason on this.

    I will be utilising the weekend to atleast go through the whole code of theirs as the time I am able to spend on working days for it is limited.

    I will update you by Tuesday.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25384

    Hi Nifty,
    Just keeping you update on this. I was aware it is related to User block. It is a bit delayed as I have only added restrictions for Messages. Need to add for Friend request too and we will be done. I am expecting it to be available soon.

    Regards
    Brajesh