BuddyDev

Search

Replies

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

    Hi,

    I am sorry but we can not have two different set of rules for users registered via two different methods. The best way will be to go with the minimum common requirement.

    I will suggest keeping the requirement to photo only to keep it working.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Search Activity Meta #23019

    Hello Barry,

    Thank you for the acknowledgement. Please give it a try the following code and let me know if it works or not.

    
    function buddydev_filter_activities_query_args( $r ) {
    
    	$searched_category = empty( $r[ 'search_terms' ] ) ? false : $r[ 'search_terms' ];
    
    	if ( ! $searched_category ) {
    		return $r;
    	}
    
    	$r['search_terms'] = false;
    
    	if ( empty( $r['meta_query'] ) ) {
    		$r['meta_query'] = array(
    			array(
    				'key'     => 'bpcat',
    				'value'   => $searched_category,
    			)
    		);
    	} else {
    		array_push( $r['meta_query'], array(
    			'key'     => 'bpcat',
    			'value'   => $searched_category,
    		) );
    	}
    
    	return $r;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'buddydev_filter_activities_query_args' );
    
    

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Force buddypress profile #23016

    Hello Bec Las,

    Thank you for posting. By force profile images are you talking about “BuddyPress Force Profile Photo”?. If yes, you can use the following code in your active theme “functions.php” file to skip redirection in case of welcome page

    
    /**
     * Do not redirect user on welcome page.
     *
     * @param bool $skip should we skip or redirect.
     *
     * @return bool
     */
    function buddydev_skip_redirect_on_welcome_page( $skip ) {
    	// Page ID, title, slug can be used.
    	if ( is_page( 'welcome' ) ) {
    		$skip = true;
    	}
    
    	return $skip;
    }
    
    add_filter( 'bp_force_profile_photo_skip', 'buddydev_skip_redirect_on_welcome_page' );
    

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Search Activity Meta #23000

    Hello Barry,

    Try the following code and let me know if it works or not.

    
    function buddydev_filter_activities_query_args( $r ) {
    
    	$searched_category = empty( $_REQUEST[ 'activity_search' ] ) ? false : $_REQUEST[ 'activity_search' ];
    
    	if ( ! $searched_category ) {
    		return $r;
    	}
    
    	$r['search_terms'] = false;
    
    	$category_args = array(
    		'key'     => 'bpcat',
    		'value'   => $searched_category,
    	);
    
    	$r[ 'meta_query' ] = empty( $r['meta_query'] ) ? array( $category_args ) : array_push( $r['meta_query'], $category_args );
    
    	return $r;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'buddydev_filter_activities_query_args' );
    

    Regards
    Ravi

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

    Hello Imborx,

    Thank you for sharing the details. I have checked and noticed that Facebook register plugin has their on redirect which is conflicting with the “BuddyPress Profile Completion” as with Facebook register there is not all required fields are filled by user. If I deactivate “BuddyPress Profile Completion” option not to redirect if required are not fulfilled then all goes well. User gets redirected to their profile.

    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: How to show description of notifications in dropdown? #22964

    Hello Siyah,

    We have added shortcode feature to the plugin. Please download the latest version of pluign. For more detail about shortcode option you can check the following link.

    https://buddydev.com/buddypress-notification-widget-shortcode-integration/

    Regards
    Ravi

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

    Hello Imborx,

    Thank you for sharing the details. Please download the latest version of the plugin and paste the following code in your active theme “functions.php” file. Please let me know if it works or not.

    
    /**
     * If user has not uploaded any avatar and has facebook id set. Do not display has avatar message
     *
     * @param bool $has_avatar Has uploaded avatar or not.
     * @param int  $user_id User id.
     *
     * @return bool
     */
    function buddypress_profile_completion_has_uploaded_avatar( $has_avatar, $user_id ) {
    	if ( ! $has_avatar && get_user_meta( $user_id, '_fbid', true ) ) {
    		$has_avatar = true;
    	}
    
    	return $has_avatar;
    }
    
    add_filter( 'buddypress_profile_completion_has_uploaded_avatar', 'buddypress_profile_completion_has_uploaded_avatar', 10, 2 );
    
    

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: BP FB like activity stream plugin #22961

    Hi Vivek,

    We have updated the plugin. Please download the latest version of plugin. Please do let me know if works or not. You can download the plugin form the following url:

    https://buddydev.com/plugins/facebook-like-user-activity-stream-for-buddypress/

    Regards
    Ravi

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

    Hi,

    We have updated the plugin. Please download the latest version of plugin. Please do let me know if works or not. You can download the plugin form the following url:

    https://buddydev.com/plugins/facebook-like-user-activity-stream-for-buddypress/

    Regards
    Ravi