![]() |
PB Usergroup Choice on registration
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. |
Anymore detail ?
|
It adds the drop down menu shown in the attachements. Each option in the dropdown is a usergroup allowing the people registering to be assigned to a usergroup based on a dropdown list.
Inspired by this thread... https://vborg.vbsupport.ru/showthread.php?t=184651 |
I like th idea ..
Install .. |
well done
|
Would be good if they picked a Usergroup with a subscription that it took them to the subscription page before completing registration activation.
|
Nice idea. What would be even better would be if it used checkboxes and members could pick multiple groups that they want to be affiliated with. That would solve a major problem for me.
I'd like to make a Paypal donation if you could get this to work. |
Good idea!
I'd love to see a similar option for joinable public user groups. |
Yeah really good idea. thanks for sharing.
|
Thanks for this. Very useful!
|
Does it put the user into the primary or secondary usergroup?
|
It sets their primary usergroup.
|
Could this be coded so that instead of manually entering the usergroupids in the ACP the script could look in the database for publically joinable groups and then output them in the list ?
I've been messing around with SELECT usergroupid FROM usergroup WHERE ispublicgroup = 1 but I can't get the SQL to output the correct array :( |
This would be useful for me, if it would also be a profile field. In other words if the name off the chosen group shows (along with the field title) up in the user profile and everywhere where user profile fields can be used (memberlist, mods which add profile fields to postbit etc). I also would have to be editable through Edit Your Details, and on edit it should also change the usergroup.
Basically it would have to act like a custom single selection list profile field, which just happens to be connected to usergroups. (I want to use it for a country field, which should also put members into a usergroup for that country.) Btw, it also would be more usefull if it would set the usergroup as a secondary group, and leave the primary group as it is (Registered Users or otherwise). As it is now, I unfortunately cannot use it. |
i really like this...
i.e...you can do male or female... change the text color of each and you will have a diff color for male and female... so when they register... they can choose male or female... |
What if two of my usergroups require certain moderation procedures before they are put in that user group? Can the register and fill in information I need to get approval and while they are waiting be regular registered user group. I do not want the regular registered usergroup to have to go through this moderation! Thanks for the help.
|
Any suggestion for those of us who have email verification and moderation on new accounts?
|
I love this idea but one of usergroups is a subscription only. Is there anyway to have members who chose the subscription group to be redirected to the subscription information after they fill out the registration? i'd also pay to have this done.
|
excelent
I will use it for woman and mesn ;) |
I would like it if the usergroups each had there registration and information options so that I can custom it for customers and companys so that I get different information from them and the other group don't have to see the questions.
|
The members of my groups do not recieve the welcome message on the board?
|
Unfortunately I have had to uninstall this mod - it really is a great idea but I need it to put the user into a secondary usergroup NOT their primary one
|
If anyone can complete some simple mods to this hack including the following:
addition of user to secondary group ability to specify multiple groups via checkboxes Please PM me. I'd be willing to pay. Thanks. |
Great mod exactly what I was looking for. Installed and works great! Thanks
|
Agreed. This is exactly what I am looking for...just one problem.
I need to put people in Secondary Usergroups. Not Primary Usergroups. How can this be implimented? |
Thanks.i made male and female.
|
This is great... have been looking for this too, but like others have said, I need this to add people to a secondary usergroup, not a primary.
|
Sorry, I also had to uninstall this Mod since it only works for Public usergroups.
I have Usergroup Leaders assigned which moderate any requests and this Mod bypasses any Leader moderation and adds them automatically. Wonderful concept though. Hopefully future release will have more options. |
Will this work for vBulletin 3.6.7? I need this exact mod for vb3.6 :(
|
Quote:
1- Find and delete this code block: PHP Code:
PHP Code:
PHP Code:
Edit: Make sure you force group selection, so that new members are directed automatically. |
Thanks.Nice Mod.
|
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. |
any way this can be modified to allow users to join a social group?:erm:
|
Quote:
- I have a custom made script from a year ago. This is great for me when upgrading to 3.8.x series. |
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? |
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. |
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 |
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: Code:
$userdata->set('usergroupid', 2); and then add a plugin into the same product with hook location: "register_addmember_process" and paste inside this: Code:
if($vbulletin->options['verifyemail']){ and in the end change the ifemail script, the SQL query has to become like this: Code:
$vbulletin->db->query_write("UPDATE " . TABLE_PREFIX . "useractivation SET usergroupid = 2 WHERE activationid = '".$activateid."' LIMIT 1 "); 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 |
Good job, it works!
|
thanks !
|
All times are GMT. The time now is 09:17 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:
|