PDA

View Full Version : Automatically add to secondary usergroup(s) upon registration?


Cyricx
04-23-2004, 02:32 AM
I'm trying to figure out how I can automatcially add people to secondary usergroups when they register.

The reason for this is that I want them to be able to disable viewing for specific forums. The best way I've come up with to do that is to have the individual forums I want them to be able to disable to only be viewable by a specific usergroup.

When someone has been a member of a usergroup, they can leave and join it at their whim.

So, I'm just needing to figure out a way to add them to the secondary usergroups upon registration :)

Anyone know how to write this mod? or what code lines I might be needing to locate to hack it in myself?

Cyricx
04-25-2004, 12:20 AM
Bump :)

Noone else think this would be useful?

Anub1s
04-27-2004, 04:05 AM
y also think this will be very usefull, but looks like no soby likes the idea ;_;

cocjh1
04-13-2005, 05:18 PM
I would like this hack please.

Basically want to automatically add new members into a secondary usergroup.

I've looked in register.php are found the following at Line 286 (v3.0.7): -
// assign user to group 3 if email needs verification
if ($vboptions['verifyemail'])
{
$newusergroupid = 3;
}
else
{
if ($vboptions['moderatenewmembers'] OR $_POST['coppauser'])
{
$newusergroupid = 4;
}
else
{
$newusergroupid = 2;
}
}

This seems to be the place to set the secondary usergroup access but I don't know how.

Any ideas?

C:

macwiz
09-16-2007, 06:17 PM
I am also interested in this - but with the new members join request being put into the queue for the usergroup leader to approve / deny.