This is a hack that limits users to be able to join only one group. This is useful for TEAMs, where you can join only one, but not other TEAMs. In my case I also have one OPEN group that is not a TEAM (useful for people to preview what goes on inside a group, get info, etc).
Changes are commented with "BKM" File is groupjive.html.php v1.8.b4 Only about 5 lines are modified.
The hack is hard coded to allow ALL users to become a member of GroupID=1 (my demo group), but as soon as they request membership in any group other than GroupID=1, the JOIN NOW buttons for all other groups become inaccessible. Admins can still over-ride this by "forcing" someone into additional groups.
Perhaps a back end option could be created called "Mutually Exclusive Groups" with a list of IDs that take on this behavior, with all other groups being unlimited. Or perhaps it should be the opposite - all groups are "Mutually exclusive" except a short list of universally open groups.
Opinions?
(I have attached the file)
Attachment groupjive-db2665412d177862c6a3aa75ba001be6.zip not found
(( oops, there is a bug. if the user joins a mutually exclusive group first, he is locked out of GROUP#1 as well. will tweak later. ))
Post edited by: bertm, at: 2009/09/17 14:27