Allow registered users to join a group

Permalink
After a user registers I would like them to be able to select multiple groups to be a member of. This is a roster system and people can join a roster or not from this page. I would like to use the groups to allow these people who join that group to see content only for that group.

Is this possible or am I stretching the group functionality too much?

Regards

Ian

ianj
 
Mnkras replied on at Permalink Reply
Mnkras
You can easily do that with the api, shouldn't be too hard.
thebogdan replied on at Permalink Reply
thebogdan
I need this functionality too. Can you point me to an example of how to use API to accomplish this? Anything helps!
Mnkras replied on at Permalink Reply
Mnkras
//$g = Group::getByID(4);
$g = Group::getByName('Custom Group');
$u = new User(); //current logged in user
$u->enterGroup($g);
thebogdan replied on at Permalink Reply
thebogdan
Thanks! Is there a function to delete the user from the group?