![]() |
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 |
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 |
Thank you, any recommendation for a programmer?
|
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.
|
Thank you for the tip RLShare, are you willing to accept a job to do it for me?
|
1 Attachment(s)
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. |
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!! |
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
|
Quote:
|
Thank you very much RLShare! I'm sending a PM so you can see if you can help me.
|
All times are GMT. The time now is 01:08 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:
|