![]() |
|
Mod Options |
![]() |
|||||||||||||||||||||||||||
Add User to Primary Usergroup Based on Value of Custom Profile Field
![]() Developer Last Online: Nov 2013 ![]() ![]() ![]() This modification is in the archives.
This version is for the PRIMARY group. Here is the one for secondary groups:
http://www.vbulletin.org/forum/showthread.php?t=82993 As far as plugins goes, this one is an advanced plugin because you WILL need to make some tweaks to suit your needs. What this plugin does: If you have a custom profile field, for example one for gender, it checks to see if the user has selected a specific value and then assigns them to a primary user group based on that selection. This happens at the time the user activates their email account after registering. Instructions for installation: A. Create your custom profile field and make a note of the field number. (Or simply make a note of the field number of an existing field.) B. Make a note of the value you are checking for. For example, you may be looking to see if your member selected "male" in your custom gender field. C. Make a note of the usergroup number that you want to set the user to. D. Here you have two options: Option 1: Edit the attached XML file before you import it to change the field number, the value that you check for and the usergroupid. In my XML file, I am checking field5 to see if the value is yes and changing the usergroup to 10.
If, for example, you want to check the value of field6, change field5 in the XML file to field6. If you are looking for "male" instead of "yes", change
to:
And, finally, change the usergroup as appropriate. Instead of 10 in this line:
substiture your usergroupid of choice. Option 2: Import the XML file as is, open the plugin manager, and make your edits there. NOTE: This mod works for forums that require users to verify their email address upon registration. If your forum does not require users to verify their email address, you will need to use a different hook. If I have time, I'll test that variation. Amy Download Now Only licensed members can download files, Click Here for more information. Show Your Support
No members have liked this post.
|
![]() |
||||
Mod | Developer | Type | Replies | Last Post |
Add User to Secondary Usergroup Based on the Value of a Custom Profile Field at Reg. | amykhar | vBulletin 3.5 Add-ons | 133 | 01 Jan 2013 15:06 |
#121
|
||||
|
||||
It works fine in 3.8.3.
No members have liked this post.
|
#122
|
|||
|
|||
Amy, this plugin works great and was exactly what I needed.
Would you know if there is any quick way to also update the User Title at the same time. I am moving people to a usergroup with a custom title but they all show up in the correct usergroup but with the title from the default registered users group. Thanks! No members have liked this post.
|
#123
|
|||
|
|||
I have been getting hit with a lot of spam. They always put a certain work in the bio so this will help me send them right to banned.
Just tried this on 3.8.x and it did not work. Still went right to the regular group. No members have liked this post.
|
#124
|
||||
|
||||
Please, update for 4.x
__________________
My Modifications: Thread Starter Manoel - Random Avatar vB3.x Manoel - Random Avatar vB4.x No members have liked this post.
|
#125
|
|||
|
|||
I Need a fix for 3.8.7 please!!!
No members have liked this post.
|
#126
|
|||
|
|||
i need this mod for vb 4 please!
__________________
Temsamane No members have liked this post.
|
#127
|
|||
|
|||
I need a fix for 3.8.7 please!!!!!
No members have liked this post.
|
#129
|
||||
|
||||
Plus 1 to have it for 4.x. This would be just the ticket for my site....
__________________
Vicky Rowe Owner, Gotmead.com - Your source for Mead (Honey wine) information Satori Digital Marketing - Affordable Small Business Internet Solutions No members have liked this post.
|
![]() |
«
Previous Mod
|
Next Mod
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Mod Options | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 00:55.