... $g = Group::getByName('member'); foreach($users as $user) { if $user->inGroup($g) { ...
Loader::model('groups'); $u = $ui->getUserObject(); // add new user to groups $g1 = Group::getByName('unvalidated'); if (is_object($g1)) { $u->enterGroup($g1);
Loader::model('groups'); $u = new User(); // add new user to groups $g1 = Group::getByID('6'); if (is_object($g1)) { $u->enterGroup($g1); }
when they register they are assigned to the "registered users" group if you want to have it so that if they check a box and they join a group that you need to code
Mike