The Arcive of vBulletin Modifications Site. |
|
Select Usergroup on registration Details »»
|
|||||||||||||||||||||||||
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
Description: Here you select your sex
Options: Man
Women
Set Default: Yes, including a first option blank
Field editable by the user: Just to register
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: This line is the X PHP Code:
Here tells you the ID number, which in this case the user group is called Women. ![]() 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: This line is the X PHP Code:
Credits: 3xtr4 3xtr4 Example Sorry my english! Show Your Support
|
|||||||||||||||||||||||||
| 2 благодарности(ей) от: | ||
| Comments |
|
#2
|
||||
|
||||
|
There is an easier way to do this without any file edits at all.
|
|
#3
|
|||
|
|||
|
Boofo, can you shed any light on how to do it without editing the php files.
|
|
#4
|
|||
|
|||
|
tagged + installed + 5 stars + MOTM
![]() thanks men
|
|
#5
|
|||
|
|||
|
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.
|
|
#6
|
|||
|
|||
|
and which is that way?
|
|
#7
|
||||
|
||||
|
The "Boofo did a mod for a client" way.
|
|
#8
|
|||
|
|||
|
That means that this is the next best thing.
|
|
#9
|
||||
|
||||
|
Sure, no doubt. I would use it if I needed it and I hadn't done one.
|
|
#10
|
||||
|
||||
|
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
|
![]() |
|
|