![]() |
|
Mod Options |
![]() |
|||||||||||
PB Usergroup Choice on registration
![]() Developer Last Online: Aug 2011 ![]() ![]() ![]() This modification is in the archives.
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 Show Your Support
No members have liked this post.
|
#32
|
|||
|
|||
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 No members have liked this post.
|
#33
|
||||
|
||||
![]()
any way this can be modified to allow users to join a social group?
![]() No members have liked this post.
|
#34
|
||||
|
||||
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 No members have liked this post.
|
#35
|
|||
|
|||
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? No members have liked this post.
|
#36
|
||||
|
||||
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.
__________________
- No members have liked this post.
|
#37
|
|||
|
|||
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 No members have liked this post.
|
#38
|
||||||||||||
|
||||||||||||
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:
(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:
and in the end change the ifemail script, the SQL query has to become like this:
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 No members have liked this post.
|
#39
|
|||
|
|||
Good job, it works!
No members have liked this post.
|
#41
|
|||
|
|||
vbb 4
Would it work on the new VBB4? This is such a great mod!
No members have liked this post.
|
#42
|
|||
|
|||
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 No members have liked this post.
|
#43
|
||||||||||||
|
||||||||||||
Originally Posted by garyion
does not work for me : S![]()
Please. You can upload the edited file? Thanks! No members have liked this post.
|
#44
|
|||
|
|||
We need this for VB4!
No members have liked this post.
Last edited by bwhite; 31 May 2010 at 00:59. |
#45
|
|||
|
|||
Anyone tried this in 4.1 yet?
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 11:57.