BuddyBoss Home – Web Support Forums Themes BuddyBoss theme Pagination of Members listing problem

Viewing 14 posts - 1 through 14 (of 14 total)
  • Question

    #39874
    @palmdoc

    Been having this for some time now and thought it was some plugin conflict, probably with the BP Profile search but the author suggested to change theme
    https://wordpress.org/support/topic/cannot-list-more-than-20?replies=3#post-6915460

    I switched to the twenty fifteen theme and the pagination for the Members page is back.
    I can only list 20 Members if I go back to Buddyboss.

    Any clues?

    Answers

    #39900

    Alyssa
    Participant
    @alyssa-buddyboss

    @palmdoc I’ll pass this along to the developers

    #40329
    @palmdoc

    Any updates @tjchester?

    #40337

    Alyssa
    Participant
    @alyssa-buddyboss

    @palmdoc no update yet, sorry. I think it is set to medium priority since not many people use this so I think this might have been pushed to the next release.

    #41754
    @palmdoc

    Still no news? 🙁
    It looks like I have to change themes now 🙁

    #41845

    Alyssa
    Participant
    @alyssa-buddyboss

    @palmdoc the devs are currently working on this issue

    #41847

    Alyssa
    Participant
    @alyssa-buddyboss

    @palmdoc I am unable to replicate this issue. The correct way to add pagination is to edit buddypress/members/members-loop.php find this text:
    bp_ajax_querystring( 'members' )
    replace with this:
    bp_ajax_querystring( 'members' ).'&per_page=25'
    Is that what you have done?
    And copy the file to your child theme.

    #43698
    @palmdoc

    No the file was not there in the child theme.
    Well I have done that but now I list only 25 members

    #43701
    @palmdoc

    When I revert to another theme, the member listing is OK

    #43703
    @palmdoc

    Oh I think the problem must be somewhere in the functions.php code
    When I copy that to another theme, the pagination problem re-appears

    Thanks and sorry for the trouble

    #43710
    @palmdoc

    This was the buggy code in functions.php which was used to filter out some individuals

    //exclude user view in online widget who online and recently online
    
    function custom_bp_core_get_users($users, $params) {
        $users_ids_to_hide = array(1912,1922,1937);
    	
    	if (isset($users['users'])) {
    		foreach($users['users'] as $user_idx => $user) {
    			if (in_array($user->ID, $users_ids_to_hide) !== false) {
    				unset($users['users'][$user_idx]);
    			}
    		}
    		$users['users'] = array_values($users['users']);
    		$users['total'] = count($users['users']);
    	}
    
    	return $users;
    }
    add_filter( 'bp_core_get_users', 'custom_bp_core_get_users', 10, 2 );
    
    
    #43717

    Alyssa
    Participant
    @alyssa-buddyboss

    @palmdoc I see, is this issue resolved now?

    #43731
    @palmdoc

    Yes thanks

    #43747

    Alyssa
    Participant
    @alyssa-buddyboss

    Great! I’ll close this out.

Viewing 14 posts - 1 through 14 (of 14 total)
  • The question ‘Pagination of Members listing problem’ is closed to new replies.