The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Register and go to a specific usergroup on select a option
Hiz,
I would like to set a function on registration so if users select the proper option from a drop down menu they will be included into a user group. For example: >> Company (go to company_usergroup) >> Freelancer (go to freelance_usergoup) >> Normal user (go to register_members) Is this possible? is there a mod to simplify this? thanks |
#2
|
||||
|
||||
anything is possible - you just need to code the script (or hire someone to do it for you)
not sure if there is a modification available |
#3
|
|||
|
|||
Thank you, any recommendation for a programmer?
|
#4
|
|||
|
|||
This is just an educated guess, but you could edit the 'register' template to add the drop down menu. Then in the register.php file find either '$_REQUEST['do'] == 'addmember'' or '$_POST['do'] == 'addmember''. In that section there should be some line that looks similar to $Userdata->set('usergroupid', 3). Based on the the data you get from the drop down menu change the usergroup ID thats passed to that member function call.
|
#5
|
|||
|
|||
Thank you for the tip RLShare, are you willing to accept a job to do it for me?
|
#6
|
|||
|
|||
OK here is a quick go at it.....
first a template edit... go to, Styles and Templates->Style Manager->Your Style->Edit Templates->Registration Templates->register Find: PHP Code:
PHP Code:
Next take the plug-in I attached and open it up in a text editor. Find: PHP Code:
Then save and import the plug-in. |
#7
|
|||
|
|||
Thanks for this! Is there a way to still use email confirmation along with this? Can I make additional 'waiting for confirmation' type groups that will then become these specified usergroups after confirmed?
Thank you!! |
#8
|
|||
|
|||
Ok, Ive figured out how to get it working if with or without email validation... Let me package it up into a product and I will upload it for you in a little bit
|
#9
|
|||
|
|||
You're the best!!
|
#10
|
|||
|
|||
Thank you very much RLShare! I'm sending a PM so you can see if you can help me.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|