The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Allow user to choose usergroup at registration
I thought I found the thread on how to do this at vbulletin.com, but it seemed to be missing the final step. I just found out that the reason it was missing the final step was that the standard vbulletin doesn't have a feature like this:
I'd like for my forums to have 2 usergroups (like 'buyers' and 'sellers'). At the registration point, I know I can add a new required field that asks if the person is a seller. What I don't know is how to take that information (seller = yes) and have it automatically add that user to the 'seller' usergroup. I'm hoping to have it as automated as possible. Does a hack like this already exist? |
#2
|
||||
|
||||
I did that on my board, but this is pretty custom as it depends on the profile field you are using, etc.
If you can post more information (eg. field number, gorup ids, etc.) I could tell you which changes would be necessary. |
#3
|
|||
|
|||
Thanks for the help:
I have the custom field in 'field5' as a 'Single-Selection Radio Buttons'. The user can select "yes I am a seller" or "no I'm not a seller". If they are a seller, they should go in usergroup id9. Otherwise, they should be put in usergroup id10 (or I guess they could be in the default "Registered Users" group id2 if putting them in id10 is too difficult). If you need any other information, just let me know. |
#4
|
||||
|
||||
So you want to change their primary usergroup or have 9/10 as an additional usergroup?
|
#5
|
|||
|
|||
Hmm...I didn't think of that.
I guess I want them all to be "registered users" (the primary usergroup). On top of that, I want them to have 9/10 as an additional usergroup. I didn't know I could do that. |
#6
|
|||
|
|||
I've too have been looking for a mod like this for a while. I'd like mine to allow users to select a usergroup from a dropdown menu at the time of registration based on an answer to a custom profile field.
|
#7
|
||||
|
||||
@rrr
In register.php FIND PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
PHP Code:
|
#8
|
|||
|
|||
Thanks! I'm going to give this a try now.
One thing: PHP Code:
|
#9
|
||||
|
||||
Yes. I know that it is a bit of pain, but this is how vBulletin stores the data
That's the reason why I used double quotes for the 2nd one - there is a single quote inside. |
#10
|
|||
|
|||
Thanks, that worked perfectly
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|