Support Forum

Hiding membership list

DB dbass
dbass
Member

Can I hide the list of members from the “Member” role?  I want members to be able to post, but don’t want disclose who else is a member. but I use wishlist member for my user registration and the forum is protected behind.  Thanks,

Dustin

3 Answers

New Answer

MP Mr Papa
Mr Papa
Member

you can remove button for the members list in you spHead.php template file of the sp theme you are using…

if you just want to change up what is displayed, you can specify specific usergroups only to list…  in the spMembersView.php template file, find this:

            if (sp_has_member_groups(‘usergroup’, ‘id’, ‘asc’, 15, true)) {

and change it to

            if (sp_has_member_groups(‘usergroup’, ‘id’, ‘asc’, 15, true, ‘1,2,3’)) {

where ‘1,2,3’ would contain the ids of the usergroups you want listed…

Be sure to create your own sp theme rather than use ours to keep from losing changes on upgrade… see: http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/

DB dbass
dbass
Member

Worked perfectly!!  Thanks for your help…I’ll add my own theme asap…thanks!

MP Mr Papa
Mr Papa
Member

good news. thanks for the update and glad to help!