![]() |
Usergroup for new members
I can see how to create a usergroup, But how do I set up what usergroup new members go into?
|
I could be mistaken but I believe it's the register.php file (was looking at it yesterday):
PHP Code:
The nearest hook to this location is PHP Code:
|
So I just change this to the usergroup id and thats it
$newusergroupid = 3; |
I've not tested it but I would guess so.
Feel free to change it and register a test account then see what usergroup they are inserted into; you can always change it back by changing the integer. |
// assign user to usergroup 3 if email needs verification
if ($vbulletin->options['verifyemail']) { $newusergroupid = 3; } else if ($vbulletin->options['moderatenewmembers'] OR $vbulletin->GPC['coppauser']) { $newusergroupid = 4; } else { $newusergroupid = 2; } So which one am I changing as I changed the 3 one but it didnt work |
No, change the 2 to whichever you want.
PHP Code:
|
you would change the
PHP Code:
|
Works a treat, Thank you
|
All times are GMT. The time now is 12:18 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|