![]() |
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 |
Uninstalled... err.... unedited... lol
whatever |
Does this work with 4.1.X ?
|
thanks .. great job !
|
Quote:
|
Something like this to let new users see a list of social groups to join would be interesting :)
|
Quote:
|
Quote:
|
You're so cool Boofo. That's awesome you can do all this stuff that you like to tell people about.
Seriously, though, what's the point of saying "nyah nyah I did it but I'm not telling" ? It's not constructive. |
Quote:
|
just tried it, didnt work...
maybe it's because i have confirmation emails disabled? |
just tried it, didnt work... :(
|
Quote:
|
Quote:
|
Quote:
|
any chance you would share boofo
|
For those it's not working, he missed one modification detail in the coding on the last step if using email verification:
PHP Code:
2) Where "Mujer" is, change that to your criteria of your form (in his example 'Women') 3) Where the query coding says "? 4: 16), 0);", change the 16 to your usergroupid number which you wish them to go to. He failed to mention to identify the usergroupid stated in step 3 there. |
I have successfully installed this on my VB 4.2 patch level 2. If some one needs this to be done, let me know, I can help. Just post your fieldid, usergroup ids, title of the custom field. I would give you the exact code and you can easily install it.
If you need to see a live, then ask me... I have included 3 usergroup on register page. |
field117
usergroup 50 Character |
Quote:
|
yeppers, it's an option in field117
|
Please, send we code used for this!!!
|
Nice it works on vb3.8 too :)
|
Changes need for vb 4.2, may any coder help please?
|
Please!! update for vb 4.2
|
Hi all. I have been following the various instructions, but I can not make it work in version 4.2
I need help, I think we want to compare the variable is not correct any ideas? Also it seems that the value stored in the variable is numeric, not alphanumeric. Thanks in advance |
I followed the instructions and does not work. :(
Please!! update for vb 4.2 Level 3 Thanks. |
no working on vBulletin 4.2.1 ...
|
if anyone needs this please contact me
|
All times are GMT. The time now is 07:14 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:
|