Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
Member List pagination
Avatar
Leo
Member
Free Members
sp_UserOfflineSmall Offline
Dec 15, 2014 - 2:42 am

It must be somewhere in the settings, but unfortunatley I can't find it. How can I change the number of members displayed per page in the Member List, or even turn pagination off completely?

Thanks,
Leo

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 15, 2014 - 4:09 am

Now that is a good question and one I had to look up in the code to discover. For reasons I am unable to explain (at the moment) there is no setting for members list pagination but it can be altered in the theme template. I will look into the reasons it is done this way - almost certainly historic - and also open a ticket to see about the possibility of getting an option setting in place as is available for the other main forum views.

Meanwhile - if you want to change the pagination number in the template you will need to make a small edit to the 'spMembersView.php' template in the /templates folder of the SP theme you are using. You can use the Theme Editor from the forum admin menu for this.

Around line 37 (using the default theme as a guide) you will find this lone of code:

if (sp_has_member_groups('usergroup', 'id', 'asc', 15, true)) {

You will see the number 15 in the parameters which controls the pagination. You can change this value to whatever you prefer. But pagination can not be turned off I am afraid and that, really, is for the best as too many being shown will have a detrimental affect on performance of the page.

As always we recommend that you create your own SP child theme or custom theme so that any customisation is not lost during a future update. But as I said above, I will open a ticket on it for discussion.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 643
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 616
Members: 17343
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10117
Posts: 79590