PDA

View Full Version : SQL data created upon registration


h_kakashi
06-13-2006, 01:48 PM
Hi, I was wondering if anyone could give me the tables and columns that are affected upon a user registration.

I know that data is added into the fields in the `user` table, but where else is stuff put when a new user registers?

Also, how does VB's cookie/session creation and authentication work? I'm trying to integrate my forum and CMS so that if a user logs in the forum, he'd be logged in on the CMS and vice versa... I tried including global.php and checking for $bbuserinfo but all I got was 'NULL' for the contents, also how exactly is this variable created (if I wanted to make the session/cookie in my CMS login script).

h_kakashi
06-14-2006, 07:08 PM
I managed to figure out how to do the registration page using the datamanager class, my only question now concerns vbulletin's cookie/session authentication.

How would I be able to create a universal session/cookie so that if a user logs into my cms/vbulletin, they would be logged into both the cms and the forums. I've already created the actual code for the login check (username and password sql query), its only a matter of setting the right cookie, using php's setcookie function... im not sure how tricky this would be to make sure it works with the 'remember me' option on/off.

Can anyone guide me?