BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Khalid,

    I have added support for BuddyBoss. Please upgrade your plugin and give it a shot and do let me know if it works or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BuddyPress Friends Suggestions Pro Error #36609

    Hello Tiffany,

    Thank you for sharing the details. But I need some more information regarding field types. It quite possible that multicheck, member-type like fields can conflict.

    Please do let me know the field type of the following field.
    1. Position
    2. Industry
    3. Industry Interests
    4. Brand Preferences

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BuddyPress Friends Suggestions Pro Error #36607

    Hello Tiffany,

    If possible please share the screenshot of your suggestion rule conditions you are using for generation friend’s suggestions. It will help to debug further into the issue.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    This reply has been marked as private.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Issue with BP Deactivate Account Plugin #36603

    Hello Itdev,

    Sorry for the inconvenience. BP Deactivate Account plugin does not create any custom table. It seems you are using BuddyBoss Plateform plugin. Please contact BuddyBoss support they can better guide you for this.

    For any assistance, please let me know.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115

    Hello Khalid,

    Sorry for the delayed reply. It seems BuddyBoss handling the default tab differently. I will look into it and will update you soon.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] BuddyPress Friends Suggestions Pro Error #36600

    Hello Tiffany,

    Sorry for the inconvenience. Please try deactivating “BuddyPress Friends Suggestions Pro” temporarily and check if this warning still appears or not.

    Regards
    Ravi

    • This reply was modified 4 years, 5 months ago by Ravi.
  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Random Friends of Friend Suggesty Pro #36580

    Hello Dave,

    I have updated the plugin. Please upgrade your plugin and give it a shot. Please do let me know if it works or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Problem to Setting Auto Friendship #36578

    Hello Emanuele,

    Please try the following code. It will add all other users with the same member type add as friends.

    
    /**
     * Add as friend other user with same member type on user member change.
     */
    add_action( 'bp_set_member_type', function ( $user_id, $member_type ) {
    
        $users = new BP_User_Query(
            array(
                'member_type'     => $member_type,
                'populate_extras' => false,
            )
        );
    
        if ( ! $users->total_users ) {
            return;
        }
    
        foreach ( $users->user_ids as $id ) {
    
            if ( $id == $user_id ) {
                return;
            }
    
            if ( ! friends_check_friendship( $user_id, $id ) ) {
                friends_add_friend( $id, $user_id, true );
            }
        }
    }, 10, 2 );
    
    

    Please do let me know if it works or not.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Multiple Plugins not functioning properly #36577

    Hello Daniel,

    Please use the following code it will only allow friends to post comments or reply on user activity.

    
    
    /**
     * Allow only friends to post a comment and reply
     *
     * @param bool $can Can comment or not.
     *
     * @return bool
     */
    function buddydev_only_friends_can_comment_on_activity( $can ) {
    	
    	if ( ! bp_is_user() ) {
    		return $can;
    	}
    	
    	$activity = new BP_Activity_Activity( bp_get_activity_id() );
    
    	if ( ! friends_check_friendship( get_current_user_id(), $activity->user_id ) ) {
    		$can = false;
    	}
    
    	return $can;
    }
    add_filter( 'bp_activity_can_comment', 'buddydev_only_friends_can_comment_on_activity' );
    add_filter( 'bp_activity_can_comment_reply', 'buddydev_only_friends_can_comment_on_activity' );
    
    

    Please do let me know if it works or not.

    Regards
    Ravi