The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Auto-select usergroup depending on registration option?
Hello, do you have any idea how to make these changes from a plugin ?.
https://vborg.vbsupport.ru/showthread.php?t=267585 I use version 4.2.4 and these steps do not work for me. Also I see wrong edit directly from php, I would like it to be from a plugin. my field5: my new group 16: Thx! |
#2
|
|||
|
|||
Someone really should mark that as broken. I tried using it as well (15+ minutes) and ended up just writing a trigger (2 minutes) on my user table.
You could probably also write a plugin at register_addmember_complete. |
Благодарность от: | ||
RaYdeN.ADM |
#3
|
||||
|
||||
After a review of the "register.php" script, it appears the best hook location might be at "register_addmember_process"...I will try my hand at putting together a product that allows defining profile fields that will determine a new user's usergroup.
|
Благодарность от: | ||
RaYdeN.ADM |
#4
|
||||
|
||||
Quote:
Waiting here |
#5
|
||||
|
||||
Sorry for the delay...I was a bit under the weather over the weekend. Anyway, I have attached a simple product for you to test.
The product has two settings, one which allows you to enable/disable it (the default value is "disabled" so you will need to enable it first. The second setting allows you to define the custom profile fields and the usergroupids associated with the possible values from that profile field. For example, I used a single-line text profile field, and if a new user enters one of these strings:
Then they are moved to that usergroup once registration is completed. The definition I used is: field5|Administrator,6|Global Moderator,5|Moderator,7 Please let me know if you have any issues, and/or would like any additional features. |
#7
|
||||
|
||||
Okay, good deal. I will publish this officially soon, after perhaps adding additional features if I think of any, and I will cite you as co-author since it was your request.
|
#8
|
||||
|
||||
|
#9
|
||||
|
||||
Good work!
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|