Register Members List Search Today's Posts Mark Forums Read

Reply
 
Mod Options
PB Usergroup Choice on registration Details »
PB Usergroup Choice on registration
Mod Version: 1.00, by RLShare (Member) RLShare is offline
Developer Last Online: Aug 2011 I like it Show Printable Version Email this Page

This modification is in the archives.
vB Version: 3.7.2 Rating: (8 votes - 5.00 average) Installs: 76
Released: 23 Jul 2008 Last Update: 23 Jul 2008 Downloads: 427
Not Supported Uses Plugins  

What does it do?
Allows a user to be assigned to a certain usergroup based on a drop down menu at registration time.

How is it different from the one posted a couple of days ago by Viet:
Well,
1. This one will work with email verification. So you can still require email verification for all new users and they will be assigned to the appropriate usergroup after their email has been verified.
2. It will automatically draw in the usergroup names for the ids instead of having you type out both the usergroup ID's and usergroup names.



Installation:
1. Import the product
2. Go to AdminCP->vbulletin Options->Vbulletin Options->PB Usergroup Choice on Register
and set up the options the way you want...

Notes:
Will add 1 query when showing the registration form.
Will add 1 more query to the processing of a registration if VB is set up for every user having to verify email addresses.


Fixed:
Forgot table prefix in one call to the database causing database error.

Download Now

Only licensed members can download files, Click Here for more information.

Screenshots

Click image for larger version

Name:	admin.jpg
Views:	771
Size:	66.4 KB
ID:	84443   Click image for larger version

Name:	dropdown.jpg
Views:	1463
Size:	65.0 KB
ID:	84444  

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.
  #31  
Old 11 Mar 2009, 20:44
HaS€R HaS€R is offline
 
Join Date: Nov 2008
Thanks.Nice Mod.
Reply With Quote
  #32  
Old 26 Apr 2009, 05:19
Mum Mum is offline
 
Join Date: Jun 2006
Real name: Kirsty
Anyone worked out how to do it for multiple groups?

I would also like to do it for changes on the profile edit page as well, not just upon registration.
__________________
Mummybrain.com We're virtually family
Reply With Quote
  #33  
Old 08 Jun 2009, 15:31
ryancooper's Avatar
ryancooper ryancooper is offline
 
Join Date: Jul 2002
Question

any way this can be modified to allow users to join a social group?
Reply With Quote
  #34  
Old 12 Jun 2009, 07:45
COBRAws's Avatar
COBRAws COBRAws is offline
 
Join Date: Oct 2002
Real name: Jack
Originally Posted by ryancooper View Post
any way this can be modified to allow users to join a social group?
that would be a killer!

-
I have a custom made script from a year ago. This is great for me when upgrading to 3.8.x series.
__________________
cobraws
Reply With Quote
  #35  
Old 15 Jul 2009, 17:20
ukchat ukchat is offline
 
Join Date: Jul 2008
This mod seemed at first glance to do exactly what we wanted, then we realised that it was bypassing the registered users group, and making it the primary group they joined.
We then read further and saw coffees mod of the mod which bypassed adding them to the primary user group but for us it didnt add them into the secondary user group either, although this option was given to join. any ideas?

ideally we would like for users requests to join to be submitted to the group leaders rather than being directly injected into the chosen group, has anyone made this work yet?
Reply With Quote
  #36  
Old 24 Jul 2009, 13:19
coffee's Avatar
coffee coffee is offline
 
Join Date: Oct 2002
All I did was that I wrote here from before ..

But also forced new registrations to select one group; in my case: Male OR Female.
__________________
-
Reply With Quote
  #37  
Old 25 Aug 2009, 13:11
garyion garyion is offline
 
Join Date: Jan 2009
membergroupids

I needed (as everybody of course) the user choice to be put in a secondary group, which is the field "membergroupids".
the usergroupid is a one value field and it's meant to have usergroup id's from 1 to 9 (standard users, admin, moderators, registered etc..) which is "2" as default registration.


I modified the "if not email" script to write "2" in usergroupid and the user choice in the membergroupids.
that might work fine..

the problem is when you are using email verification.. (of course, everybody does).
the user is temporarily registered in a "useractivation" table and the userchoice goes into the usergroupid of the useractivation table.
when the activation is completed from the email link the membergroupids "hack" is lost again. so if you want to modify it as you did for the if-not-email script you can't!


I am a fan of this plugin, I currently have it installed, but I would recommend some vBulletin official user to clarify what should be done and what should not by plugins like this.
I'm afraid I'll have to uninstall it before launching my board, I don't want to have to manually modify the usergroup memberships of every user once it's up and running.

cheers mates
Reply With Quote
  #38  
Old 01 Sep 2009, 12:52
garyion garyion is offline
 
Join Date: Jan 2009
ok I think I sorted out the scripts and now I have this plugin adding the usergroup choice on the memberships (secondary usergroup) instead of the primary usergroup (that is defaulted to "2")

change the part of the ifnotemail script to:


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

(obviously only the userdata set line)

and then add a plugin into the same product with hook location:
"register_addmember_process"

and paste inside this:


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


and in the end change the ifemail script, the SQL query has to become like this:


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


I'm actually using it for another pourpose but the principle is the same..
I'll keep an eye on this thread for any questions.

Cheers
Reply With Quote
  #39  
Old 20 Sep 2009, 09:07
Trana Trana is offline
 
Join Date: Apr 2005
Good job, it works!
Reply With Quote
  #40  
Old 23 Sep 2009, 17:45
songoibiza's Avatar
songoibiza songoibiza is offline
 
Join Date: Dec 2008
thanks !
Reply With Quote
  #41  
Old 28 Mar 2010, 16:08
beleebala beleebala is offline
 
Join Date: Sep 2005
vbb 4

Would it work on the new VBB4? This is such a great mod!
Reply With Quote
  #42  
Old 06 Apr 2010, 15:16
Bobbo Bobbo is offline
 
Join Date: Feb 2003
This is interesting. I'm doing something like this in vb4. Did anyone ever figure out how to support selecting multiple groups? I'm trying to figure out what the code would be to assign more than a single usergroupid or membergroupids at a time.


Bobbo
Reply With Quote
  #43  
Old 06 Apr 2010, 19:38
Artes_Marciales Artes_Marciales is offline
 
Join Date: Jun 2007
Originally Posted by garyion View Post
ok I think I sorted out the scripts and now I have this plugin adding the usergroup choice on the memberships (secondary usergroup) instead of the primary usergroup (that is defaulted to "2")

change the part of the ifnotemail script to:


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

(obviously only the userdata set line)

and then add a plugin into the same product with hook location:
"register_addmember_process"

and paste inside this:


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


and in the end change the ifemail script, the SQL query has to become like this:


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


I'm actually using it for another pourpose but the principle is the same..
I'll keep an eye on this thread for any questions.

Cheers
does not work for me : S
Please. You can upload the edited file?
Thanks!
Reply With Quote
  #44  
Old 27 May 2010, 04:13
bwhite bwhite is offline
 
Join Date: May 2010
We need this for VB4!

Last edited by bwhite; 31 May 2010 at 00:59.
Reply With Quote
  #45  
Old 22 Dec 2010, 23:12
ShackMaster ShackMaster is offline
 
Join Date: Apr 2006
Anyone tried this in 4.1 yet?
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 23:43.

Layout Options | Width: Wide Color: