The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Usergroup for new members
I can see how to create a usergroup, But how do I set up what usergroup new members go into?
|
#2
|
|||
|
|||
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:
|
#3
|
|||
|
|||
So I just change this to the usergroup id and thats it
$newusergroupid = 3; |
#4
|
|||
|
|||
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. |
#5
|
|||
|
|||
// 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 |
#6
|
|||
|
|||
No, change the 2 to whichever you want.
PHP Code:
|
#7
|
||||
|
||||
you would change the
PHP Code:
|
#8
|
|||
|
|||
Works a treat, Thank you
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|