The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
I have a database with email addresses and added a field to my user profile. I would like to on registration or profile save to check if the email address in my custom field is in that database and if so add the user to a usergroup.
I have seen a few tutorials but am not sure where to start with this. I am wanting to do a plugin so if a vBulletin update comes out I don't have to redo my work. Any help would be appreciated. |
#2
|
|||
|
|||
![]()
I think you can probably use the hooks in the file class_dm_user.php (and maybe class_dm.php, the base class) to add a verification function for your new field, and in that function you should be able to do your check and set another field.
I can give you more details if you want. I have some code somewhere that does something similar. Edit: Here's a mod that shows how to add a verify function to a user field: www.vbulletin.org/forum/showthread.php?t=283540 |
#3
|
|||
|
|||
![]()
Thank you for the tip. Is there a specific tutorial on this forum or article I should read for adding this to the register page or have it triggered on registration?
|
#4
|
|||
|
|||
![]()
I think you can add a User Profile Field that will show up on the registration page and in the profile once they're registered. Does that work for you, or are you trying to add it when a mod is installed?
Sorry, I don't know of any tutorial. There might be something related in the Articles forum. |
#5
|
|||
|
|||
![]()
Yes that idea will work. I just need it to process and look in the database when they register and if an entry is found, add them to a usergroup. I have searched google high and low on how to do this but cannot find anything.
--------------- Added [DATE]1380515163[/DATE] at [TIME]1380515163[/TIME] --------------- I found a plugin on here that looks like it can do what I want. https://vborg.vbsupport.ru/showthread.php?t=82993 |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|