PDA

View Full Version : Where to call file on registration


ptmuldoon
12-07-2007, 09:44 PM
I'm digging through the files aimlessly, and haven't found it yet.

On a new user registrations, when the user hits submit, I would also like to have the user registered (inserted) into a non vbulletin database.

I've generally done this in the past by simply adding a one line include statement to include file with the necessary information, passing the user variables to the file. But I can't seem to locate the code/file on where to place the include statement.

Can someone tell me which file or function is processing/inserting a new user registration into vbulletin?

Paul M
12-07-2007, 10:37 PM
The rather obviously named register.php

Best way would be to put the include into a hook (register_addmember_complete).

ptmuldoon
12-08-2007, 03:03 PM
The rather obviously named register.php

Best way would be to put the include into a hook (register_addmember_complete).

I'm not sure how hooks work. Is there an example someplace to take a loot at?

ragtek
12-08-2007, 09:13 PM
here's a good article https://vborg.vbsupport.ru/showthread.php?t=82625

ptmuldoon
12-09-2007, 02:48 PM
wow, that was simple. I just need to now to change this to include the actual user info, which shouldn't be to hard.

$qresult = mysql_query("INSERT INTO table
SET login = 'user',
pass = 'password',
email = 'email' ");