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
Limit Member List to only show group members
Avatar
Joseph Hewes
Rookie
Free Members
sp_UserOfflineSmall Offline
Oct 4, 2012 - 11:52 am

We are using Simple:Press to allow certain groups of users to communicate, share files, etc. We don't want the members to see all of the 700+ members of the site, but do want them to be able to see a list of the members what belong to the groups they are members of. Is this possible? If they are in multiple groups, they should be able to view the members of all of the groups they are in.

Thanks!

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 4, 2012 - 11:00 pm

yes, the capability to limit users to only viewing usergroup members that they are a member of is built into simple press...

this is the default behaviour...  are you not seeing this???

have you modified any of the template functions for members view?  in your spMembersView.php template file, look for something like this:

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

if that 5th argument is 'true', then the limit users to viewing members only in usergroups there are members of is active...

Avatar
Joseph Hewes
Rookie
Free Members
sp_UserOfflineSmall Offline
Oct 5, 2012 - 3:25 pm

I see what my problem was. When I installed, all users were added to the Members list, and therefore, you can see everyone.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 5, 2012 - 3:28 pm

well there is an option in the user group mapping for which usergroup new members should belong too... also you can limit membership to a single usergroup so if they get moved after joining to a new usergroup, they would lose that initial first one too...

thanks for the update...

Avatar
Joseph Hewes
Rookie
Free Members
sp_UserOfflineSmall Offline
Oct 5, 2012 - 3:36 pm

Thank you for the quick reply, but now I am confused. I have a test user that only belongs to the 'PAG' group, but when I click the Members list, I see all of the users who are not assigned to a group, I see the members of the Admin group, and I see members of the PAG group. I verified that my template file is set the same as your example.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Oct 5, 2012 - 4:08 pm

perhaps a misunderstanding...

all users will see admins (why not?)... and moderators... but they wont see members of other usergroups...

if a member does not have any usergroup memberships, I guess they might show up - never really tested that condition since not sure we have had anyone who had users that didnt belong to some usergroup. if a user does not belong to any usergroup, they are really nothing more than a guest... I guess we could look into hiding the folks with no memberships when this condition is set... like I said, just hasnt come up before...

of course, for now, you can hide any you dont want with css

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: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625