The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Running additional scripts during registration
Hello all. I'm currently building a site for a client and we have decided to use vBulletins user manager for the site at large. I have figured out how to do that, but I need to populate some other tables that the site at large will use during the registration (basically to allow users to access other features as soon as they register).
Where would be the best place to place a set of mysql INSERT commands in the registration script, baring in mind I will need vBul's username variable to associate the tables properly. Thanks in advance, Ferdia |
#2
|
||||
|
||||
you can check the registration php script and watch out for fetch_hook calls, because these are the hook locations you can add a plugin to.
First you follow the script code to the point where you have all the vars/information you need, then you look for the next available hook name. Then navigate to the "add plugin" link in your admincp, enter the hook location and you can add your code using the local vars from the code where the hook gets called. You can use the vbulletin database interface from $vbulletin->db. For information about the API, check the vbulletin api documentation or look for the classes_core.php file in includes dir. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|