The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Help a noob
Ok I don't know weather my brains melted or I've just turned noob over night but basicly I cant seem to rack my mind round where the mysql query is on a user registration is on VB, I know it uses the query_write database abstraction but where oh where is the line of code which writes it into the database and what file,
Thanks again VBB |
#2
|
||||
|
||||
It's in register.php
But if you want to know so that you can add something to it, you should consider using the hooks in the file (make a custom plugin that activates on the hooks). You'd want either register_activate_process or register_addmember_complete. |
#3
|
||||
|
||||
If you want to add users programatically, use the User Data Manager. This is what vBulletin uses to register users as well. Some documentation can be found in the manual, as well as in hte articles section.
|
#4
|
|||
|
|||
Basicly I have my own user system as I run a TB RPG and I'm adding VBB to it I've come up with a system which links the 2 user-databases so thats sorted I'm just having trouble racking my brain around where VBB adds the information when a user registers XD.
|
#5
|
||||
|
||||
Then you should use a plugin at hook location register_addmember_complete. If you look at register.php and find the hook (line 522), you can scroll up and see all of the pertenant information variables (like $username and $email). That way your plugin at the hook can contain code to query/add information to your other database using those variables.
|
#6
|
|||
|
|||
I cant seem to get the plugging to function as I want it, I'm sorry to sound like such a douche I don't know whats wrong with me for some reason I just cant read PHP its been one of them days,
Is there a guide or manual I could read up on please ? I dont want someone to tell me how to do it, I wont learn anything that way, Please just direct me to where I can learn for my self. |
#7
|
||||
|
||||
If you go to the Articles tab and do a Search in Section for "regist*", you'll find several articles includig this one that may help - Add new Users (automatically)
|
#8
|
||||
|
||||
<a href="http://www.vbulletin.com/docs/html/main/data_managers" target="_blank">Data Managers</a>
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|