View Full Version : Registration process: Allow user to select user group?
razec
01-19-2010, 04:20 AM
I'm looking to modify the registration process slightly but I'm not sure where to begin with it. When users sign up for the board I'm designing, they need to be able to select the type of user they are. Based on this selection, they're assigned to one of several corresponding user groups or redirected to the subscriptions page (one of the options is a recurring paid monthly subscription). I'm thinking this would need to be a second step to the registration process (presented to them after they verify their account).
How could I add this so it happens automatically, like after they click the confirmation URL for their account?
James Birkett
01-19-2010, 03:13 PM
The only step I can give you on this is in register.php lines 346 -> 357.
That piece of code:
if ($vbulletin->options['verifyemail'])
{
$newusergroupid = 3;
}
else if ($vbulletin->options['moderatenewmembers'] OR $vbulletin->GPC['coppauser'])
{
$newusergroupid = 4;
}
else
{
$newusergroupid = 2;
}
assigns the user to the default usergroup.
My guess would be that you would want to manipulate that code (or use one of the plugin hooks) to change $newusergroupid to the usergroup ID selected by the user.
ajhalls
04-06-2010, 01:44 PM
This would be a nice feature to have working
TigerC10
04-06-2010, 05:37 PM
There was a mod for this in 3.7
https://vborg.vbsupport.ru/showthread.php?t=186076
You could ask the developer to upgrade the mod for 4.0 compatibility.
Vaupell
04-06-2010, 08:39 PM
You could use my mod.. and preset usergroups in admincp
then change the title with instructions in html format..
like
Enter wanted usergroup :
1 = wanker A group
2 = wanker B group
3 = wanker C group
and then the invitation codes just match accordingly,,
like 1 = wankerg group A, 2 group b etc etc.. ..
And it runs on vb 4... :p
https://vborg.vbsupport.ru/showthread.php?t=238681
AFemaleProdigy
03-28-2011, 01:22 AM
Hey razec,
What did you end up doing? I want to do the same thing, but am not sure what would be the best method.
Thanks!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.