Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
Members page: how to hide members who are not in your group?
Avatar
Tim Nitz
Rookie
Free Members
sp_UserOfflineSmall Offline
Dec 12, 2012 - 1:00 pm

Hello.  We have a SimplePress site where we have distinct groups and their affiliated forums.  We do not want these members to see the membership of the other groups (unless a member is in both groups, which is rare but possible).  I don't see a setting in SimplePress where this is possible.  

We also need to be able to disallow users from one group messaging users from another group.

Thanks!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 12, 2012 - 2:23 pm

If you are referring to the members list view then is this not already the case? If not - then which SP theme are you using please...?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 12, 2012 - 7:50 pm

would be interested in Andy's question too..  but in the template file spMembersView.php of your theme, look for line like this:

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

that last parameter 'true' says to only show users members in usergroups that they can see...  if yours is not true, try changing it...

if true, have you actually tested it?  remember that as Admin you will see ALL usergroups and members...

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