![]() |
Select Usergroup on registration
1 Attachment(s)
Well, here I will explain them to VBuletin 4.x, how to make the register can select a user group
I demonstrate using for Men and Women. 1_ Let User Profile Fields ---> Create new profile field ---> Single Selection Code:
Title: Select your Sex 2_ Open the file register.php (It is located in the folder that your forum dode) 3_ Search: PHP Code:
PHP Code:
NOTE: Here where is the X put the number of field of field of user profile created Aca says the number of the field: https://vborg.vbsupport.ru/ This line is the X PHP Code:
Here tells you the ID number, which in this case the user group is called Women. http://img5.imageshack.us/img5/2558/mujerpk.jpg This line is the W PHP Code:
NOTE: With all this echo up here, provided they are registered and NO is selected confirmation email, provided that register and selects men are assigned the default user group that is the id number 2, and when women are chosen will select the user group that you placed the corresponding id. But should they be assigned the confirmation email option, you must also replace this in the register.php. (both steps are recommended in order to always be able or may not have the option to confirmation by email) 4_ Search: PHP Code:
PHP Code:
NOTE: Again, where is the X put the number of field of field of user profile created Aca says the number of the field: https://vborg.vbsupport.ru/ This line is the X PHP Code:
Credits: 3xtr4 3xtr4 Example Sorry my english! |
There is an easier way to do this without any file edits at all.
|
Boofo, can you shed any light on how to do it without editing the php files.
|
tagged + installed + 5 stars + MOTM :D
thanks men :D |
This is definitely something I'm looking forward to. But I don't want to have to do this every time I decide to update to the newest version.
|
Quote:
|
The "Boofo did a mod for a client" way. ;)
|
Quote:
|
Sure, no doubt. I would use it if I needed it and I hadn't done one. ;)
|
Jesus, I know this is pretty easy to edit but crap!!!,it didn't work form me.
I've edited my register.php file with the correct fieldid and usergroupid stuff but nothing happends :( , New users always go to usergroup 2 |
All times are GMT. The time now is 04:09 PM. |
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:
|