PDA

View Full Version : VB database integration


will_lean
04-26-2004, 09:06 AM
Hi im using VB as my forums and have managed to get coppermine working with the same login as VB.
I also run another script wich is the main portion of the site,
How can i create a script that will let the users use the 'main script' user:pass to login to VB,similar to the way VB coppermin is done?

The columns in the user table are similar to some of VB's
id userid password email sex hobbies music chat updated emailvisible year country state quote



Im new to VB but know a little php and mysql.
can anyone give me a hand with this?
thanks in advance

Sketch
04-26-2004, 09:55 AM
If you include('./global.php') where ./global.php is global.php in your forum home, Then you can access any of the variables as the $bbuserinfo[] array. It's just a matter of writing a login form and validating with $bbuserinfo.

will_lean
04-26-2004, 07:10 PM
:tired: well i already have a login form on the main portion of my site,
Would it be possible for me to add the code into the existing login/registration form so when a user signs up it will dump the user:pass into the VB database as well?

Ive had no luck so far but im inexperienced .
if anyone can help me with this id be willing to trade some decals/xbox decals or cash depending on how much.

thanks for the insight sketch

Sketch
04-26-2004, 07:28 PM
My recommendation is to use vB's registration form. What you can do is POST the username to the registration form and allow the user to continue the registration there. Why reinvent the wheel when vB provides everything you need for user registration. Right? ;) If the user is unregistered, you might even just provide a link to the registration page...

Brewer
04-26-2004, 08:01 PM
My recommendation is to use vB's registration form. What you can do is POST the username to the registration form and allow the user to continue the registration there. Why reinvent the wheel when vB provides everything you need for user registration. Right? ;) If the user is unregistered, you might even just provide a link to the registration page...

I agree, use the vB redistration. Not only will it add one less step for your user, it will allow you to use the vBulletin security such as image verification.