Remove pagination from Member List

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
LoRoller
Registered User
Posts: 13
Joined: Wed Jun 13, 2018 10:34 pm

Re: Remove pagination from Member List

Post by LoRoller » Thu Jun 21, 2018 1:16 pm

I'm not searching for email addresses - I'm searching for information in the custom profile column.

LoRoller
Registered User
Posts: 13
Joined: Wed Jun 13, 2018 10:34 pm

Re: Remove pagination from Member List

Post by LoRoller » Thu Jun 21, 2018 1:24 pm

Allow me to explain....

We are using the board as an intranet for our non-profit. The organization is a group of members with various skills and experiences. In the custom profile fields, we created several new fields (dropdown boxes) for business and industry experience. When members register they fill in those fields. Those fields are all exposed in the member list.

Then, when other members need those skills, they can just bring up the member list and use the browser search to find all occurrences of that skill.

It IS kind of hacky, but it worked really well - until it started paginating. Now the searcher has to rerun the search on every page.

User avatar
david63
Jr. Extension Validator
Posts: 14646
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Remove pagination from Member List

Post by david63 » Thu Jun 21, 2018 1:40 pm

This is a bit hacky but will do what you want.

Open:
memberlist.php

Find: (should be line 1419)
$start = $pagination->validate_start($start, $config['topics_per_page'], $total_users);

Before add:

Code: Select all

$config['topics_per_page'] = $config['num_users'];
$total_users = $config['num_users'];
David
Remember: You only know what you know and - you don't know what you don't know!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

LoRoller
Registered User
Posts: 13
Joined: Wed Jun 13, 2018 10:34 pm

Re: Remove pagination from Member List

Post by LoRoller » Thu Jun 21, 2018 8:04 pm

Not quite... Got to a certain point (likely the bottom of what was originally page 1) and stopped. Said page 1 of 1 but there are additional members that are not showing. I have it in alphabetical order sequence.

In this case, the last member to show had the name "Robert". When I clicked on the letter "T", a member named "Thomas" showed up.

User avatar
3Di
Registered User
Posts: 12893
Joined: Mon Apr 04, 2005 11:09 pm
Location: Milan (IT) Frankfurt (DE)
Name: Marco
Contact:

Re: Remove pagination from Member List

Post by 3Di » Thu Jun 21, 2018 11:04 pm

david63 wrote:
Thu Jun 21, 2018 1:40 pm
This is a bit hacky but will do what you want.

Open:
memberlist.php

Find: (should be line 1419)
$start = $pagination->validate_start($start, $config['topics_per_page'], $total_users);

Before add:

Code: Select all

$config['topics_per_page'] = $config['num_users'];
$total_users = $config['num_users'];
$config['topics_per_page'] = (int) $total_users; to be short.
LoRoller wrote:
Thu Jun 21, 2018 8:04 pm
there are additional members that are not showing.
User shown are in the

Code: Select all

$user_types = array(USER_NORMAL, USER_FOUNDER);

if ($auth->acl_get('a_user'))
{
	$user_types[] = USER_INACTIVE;
}
Sure those user aren't in a different type? If you are an admin you can see also inctive users, that means.
Want to compensate me for my interest? Donate
Please PM me only to request paid works. Thx.
Extensions, Scripts, MOD porting, Update/Upgrades
My development's activity º PhpStorm's proud user

LoRoller
Registered User
Posts: 13
Joined: Wed Jun 13, 2018 10:34 pm

Re: Remove pagination from Member List

Post by LoRoller » Fri Jun 22, 2018 2:16 am

At this point (during rollout) all members other than admins are the same type. And the alphabetical cutoff is pretty obvious.

FWIW, I've decided to bite the bullet and just change the Topics Per Page / Posts Per Page parameters in the ACP. Most forums and threads won't go that deep that it would create performance issues, and I frankly prefer to get all of a topic's posts on a single page anyway. Setting them both to 100 (we have around 90 members) resolves the pagination issue in the member list.

I very much appreciate the help that folks on this board gave me.

Thanks.

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: invenio, jack terrier, Rosain and 41 guests