Buddypress members list

  • Participant
    Level: Enlightened
    Posts: 22
    Chetan Sonar on #21435

    Dear Team,

    I have added 1000+ members, but the member’s list shows only the last active members, I can see all members only when I click on Alphabetical.

    – How can I set the status of all members to ACTIVE? so that they will list.
    – Can I show Alphabetical order FIRST and then LAST ACTIVE and Newest Registered members.

    I have already tried adding below code in members-loop.php, but it didn’t work:

    <?php if ( bp_has_members( bp_ajax_querystring( ‘members’ ) . ‘type=alphabetical’ ) ) : ?>

    Kindly assist.

  • Keymaster
    (BuddyDev Team)
    Posts: 22489
    Brajesh Singh on #21440

    Hi Matt,
    Our team will assist you on Monday/onwards. Over the weekend, our support is limited to pro members and requests with our own plugins.

    I will give you a hint though:- You need to record last activity time of a user to make them visible in the members directory.

    Thank you

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2541
    Ravi on #21517

    Hello Matt,

    Please try the following code in your “bp-custom.php” file.

    If you are using nouveau template pack

    function buddydev_reorder_member_directory_filters( $filters, $context ) {
    	if ( 'group' !== $context ) {
    		$filters = array();
    		if ( bp_is_active( 'xprofile' ) ) {
    			$filters['alphabetical'] = __( 'Alphabetical', 'buddypress' );
    		$filters['active'] = __( 'Last Active', 'buddypress' );
    		$filters['newest'] = __( 'Newest Registered', 'buddypress' );
    	return $filters;
    add_filter( 'bp_nouveau_get_members_filters', 'buddydev_reorder_member_directory_filters', 10, 2 );

    and for legacy template pack. You need to override the template file. Please copy ‘buddypress/members/index.php’ and paste it to your theme folder and modify the options order on line no. 93

    Please let me know if it works or not.

    Thank You

You must be logged in to reply to this topic.

This topic is: not resolved