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
How to change the order of member groups
Avatar
Kimi
Member
Free Members
sp_UserOfflineSmall Offline
Jul 26, 2014 - 7:01 pm

Hi there,

I'd just like to change the order of the member groups on the "members" page (like so: https://simple-press.com/suppo.....m/members/), so I can have moderators after the admins, and order the rest of my members in consecutive order. I just need to know what template file I need to edit and the code to look for.

 

Thanks!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 26, 2014 - 9:29 pm

I am no sure what you mean... you cannot really specify an ordering except by ID or alphabetical name...

we dont do any specific ordering here...  but we do control which user groups we do show and do not limit the usergroups displayed to ones users belong to...

the default template tag in spMembersView.php template file is:

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

but we use:

            if (sp_has_member_groups('usergroup', 'id', 'asc', 15, false, '3,8,9,10')) {

where 3,  8, 9 and 10 are the only usergroups that we want to show...  they will not be in the specified order, but sorted by ID (which happens to be the same in this case)..

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: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626