Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Limit number of groups a user can be in simultaneously

9 years 2 months ago
Licenses:
JomSocial Active iSEO Expired Socialize Expired

ISSUE SUMMARY:
Is there any way to limit the number of groups a user can be in? If not, can you point me to roughly the right area where I would insert custom PHP code? I think maybe I could figure out how to do it if I knew the right place to put it.

STEPS:
1 User clicks "Accept" on a group invite OR user clicks "Join Group" from the group page (these are the only two scenarios we care about)
2 If user is already in 3 groups, user gets an error that they can't join any more groups
3 If user is in 3 or fewer groups, user is added to the group normally

9 years 2 months ago
  • Dimas's Avatar
  • Dimas
  • Visitor
  • Thank you received: 0
Licenses:

Hi Megan,

I am sorry we dont have this feature, if you wanna add the new code for this, actually you can create new plugin and use this event onGroupJoin or you modify this file components/com_community/controllers/groups.php function joinGroup()

thank you

Moderators: Piotr Garasiński
Powered by Kunena Forum

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW