View Full Version : New user registration..... modification question!
newvbuser
03-31-2002, 03:14 PM
Hi If I have new user registration on, with verification of email, then after verification all users are automatically moved by the program to a "registered users" group.
Is there any way I can have the program instead move them to a group(ID) I setup with minimal access?
Admin
03-31-2002, 04:10 PM
In register.php replace in this:
$usergroupid = 2;
2 to whatever the ID of your that usergroup is. I can't check the files right now but I'm pretty sure that's the line. :)
newvbuser
04-03-2002, 06:13 AM
Hey that's so cool, I hope that's the only mod required. Can you please confirm ? :D
newvbuser
04-06-2002, 01:25 AM
Firefly could you please confirm this? :confused:
Admin
04-06-2002, 07:12 AM
Yes.
newvbuser
04-07-2002, 05:31 PM
Originally posted by FireFly
In register.php replace in this:
$usergroupid = 2;
2 to whatever the ID of your that usergroup is. I can't check the files right now but I'm pretty sure that's the line. :)
Hi Firefly, actually the register.php code in 2.2.5 says:
if ($verifyemail) {
$newusergroupid=3;
} else {
if ($moderatenewmembers or $coppauser) {
$newusergroupid=4;
} else {
$newusergroupid=2;
}
}
In this case, I want to verify email, and then after that the program should move users to another custom grp automatically after email verification is done.
Right now after email verification is done, all new users are moved to the "registered users group"
I have not glanced at the code later on, but would changing 2 to another ID do this?
Thanks again!
Admin
04-07-2002, 05:40 PM
Oops, sorry, I meant to say member.php. You should find that line there. :)
newvbuser
04-08-2002, 09:56 AM
Actually in register.php there is another code of line that deals with what happens after activation:
// activate account
$DB_site->query("UPDATE user SET usergroupid=2 WHERE userid='$u'");
I think this is where I'd need to change the usergroupid to my group's id?
Could you help please? :confused:
Admin
04-08-2002, 12:45 PM
Yes that's where you change the number... sorry about that. :)
newvbuser
04-08-2002, 07:14 PM
Are you sure? :D
Admin
04-09-2002, 11:15 AM
lol, yes I'm sure. :bunny:
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.