Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
Add User to Primary Usergroup Based on Value of Custom Profile Field Details »»
Add User to Primary Usergroup Based on Value of Custom Profile Field
Mod Version: 1.00, by amykhar (Coder) amykhar is offline
Developer Last Online: Nov 2013 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.5.0 Beta 1 Rating: (10 votes - 5.00 average) Installs: 59
Released: 13 Jun 2005 Last Update: Never Downloads: 249
Not Supported Uses Plugins  

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.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

to:


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

And, finally, change the usergroup as appropriate. Instead of 10 in this line:

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

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

  • To receive notifications regarding updates -> Click to Mark as Installed.
  • If you like this modification support the author by donating.
  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Similar Mod
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 14:06

  #121  
Old 20 Jun 2009, 22:55
steven s's Avatar
steven s steven s is offline
 
Join Date: Aug 2004
Originally Posted by forexforum View Post
Hi there,

Does it work on the latest vB 3.8? I need this. Thank you all.
Originally Posted by amjadz4 View Post
i need this for the latest vb too!! can you please update it!!
thanks!
It works fine in 3.8.3.
__________________
...steven
www.318ti.org
forum.nccbmwcca.org
Reply With Quote
  #122  
Old 18 Nov 2009, 22:59
CAAC CAAC is offline
 
Join Date: Mar 2008
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!
Reply With Quote
  #123  
Old 21 Dec 2011, 19:23
SVTCobraLTD SVTCobraLTD is offline
 
Join Date: Jul 2007
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.
Reply With Quote
  #124  
Old 30 Jan 2012, 23:30
Manoel Júnior's Avatar
Manoel Júnior Manoel Júnior is offline
 
Join Date: Feb 2009
Real name: Manoel Júnior
Please, update for 4.x
Reply With Quote
  #125  
Old 02 Apr 2012, 23:43
Tyran1 Tyran1 is offline
 
Join Date: Jan 2007
Location: Deutsches Reich
I Need a fix for 3.8.7 please!!!
Reply With Quote
  #126  
Old 03 Apr 2012, 21:08
temsamane temsamane is offline
 
Join Date: Sep 2010
i need this mod for vb 4 please!
__________________
Temsamane
Reply With Quote
  #127  
Old 08 Apr 2012, 03:07
Tyran1 Tyran1 is offline
 
Join Date: Jan 2007
Location: Deutsches Reich
I need a fix for 3.8.7 please!!!!!
Reply With Quote
  #128  
Old 11 Apr 2012, 14:44
olalaaa olalaaa is offline
 
Join Date: Mar 2012
4.1.11 please
Reply With Quote
  #129  
Old 07 May 2013, 15:06
meadwench's Avatar
meadwench meadwench is offline
 
Join Date: Sep 2007
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
Reply With Quote
  #130  
Old 22 Dec 2013, 16:06
dany_danay dany_danay is offline
 
Join Date: Jul 2009
PLEASE for 4!!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Mod Options

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
Forum Jump


New To Site? Need Help?

All times are GMT. The time now is 09:18.

Layout Options | Width: Wide Color: