BuddyDev

Search

Replies

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: Issues with registration member types. #45627

    Hello Ethan,

    I have configured the role with Member type ‘Casting Director’. Now when I registered as a casting directory same member type is attached to the user now. Please have a look.

    I have created two users ‘Buddydevtest’ and ‘Fonotecyf’

    Regards
    Ravi

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

    Hello Joseph,

    Thank you for the acknowledgement. Please try the following code it will set the online interval to 5 minutes.

    
    
    add_filter( 'bp_user_query_online_interval', function ( $interval ) {
    	return 5;
    } );
    
    

    Please check.

    Regards
    Ravi

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

    Hello Tosin,

    The current version of the plugin is almost ready. So, we are finalising the plugin for release and this release will not have this feature. But will introduce in the future versions of the plugin.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: BuddyPress User Contact Form Placeholders #45623

    Hello Tosin,

    Thank you for posting. BuddyPress User Contact Form does not provide any simple way to achieve this goal. We might implement placeholder settings for fields in the future version of the plugin.

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Exclude admin from all members lists? #45622

    Hello Carsten,

    Thank you for posting. Please try the following code:

    
    
    /**
     * Exclude logged in and admin users
     *
     * @param array $args Member args.
     *
     * @return mixed
     */
    function buddydev_exclude_logged_and_admin_users( $args ) {
    	// Do not exclude in admin.
    	if ( is_admin() && ! wp_doing_ajax() ) {
    		return $args;
    	}
    
    	$excluded = isset( $args['exclude'] ) ? $args['exclude'] : array();
    
    	if ( ! is_array( $excluded ) ) {
    		$excluded = explode( ',', $excluded );
    	}
    
    	$role     = 'administrator';//change to the role to be excluded
    	$user_ids = get_users( array( 'role' => $role, 'fields' => 'ID' ) );
    
    	$excluded = array_merge( $excluded, $user_ids );
    
    	if ( is_user_logged_in() ) {
    		array_push( $excluded, get_current_user_id() );
    	}
    
    	$args['exclude'] = $excluded;
    
    	return $args;
    }
    
    add_filter( 'bp_after_core_get_users_parse_args', 'buddydev_exclude_logged_and_admin_users' );
    
    

    Regards
    Ravi

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 3115
    Ravi on in reply to: [Resolved] Group Tabs Pro – modifying existing tab #45596

    Hello Nik,

    Thank you for the acknowledgement. I am glad that I could help.

    Regards
    Ravi

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

    Hello Ethan,

    Thank you for posting. The current version of the plugin does not allow checking custom conditions for incomplete profiles. We will introduce new filters to check whether the profile is incomplete in the next version and will update you soon.

    Regards
    Ravi

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

    Hello Papri,

    Please ignore my last reply as this plugin throws notices and errors while activating. I will check for code to override the display name with a username.

    Regards
    Ravi

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

    Hello Papri

    Welcome to the BuddyDev Forums. Please try the following plugin:

    https://wordpress.org/plugins/buddypress-usernames-only/

    It will overrides display names across your BuddyPress site with usernames.

    Please give it a try.

    Regards
    Ravi

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

    Hello Joseph,

    Please replace type ‘active’ with ‘online’ in the ‘$members_args’ variable it will list online friends.

    Also, Note that BuddyPress consider the last 15 minutes active user as online users. You can change this threshold value using the filter.

    Please check and let me know.

    Regards
    Ravi