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
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
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.