Support Forum
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!
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...
Visit Cruise Talk Central and Mr Papa's World
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...
Visit Cruise Talk Central and Mr Papa's World
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.
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
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)