Barry
1st August 2003, 01:42 AM
I going to write an application in PHP for my website that will allow users to store information about there cars (my website is car related). I want them to be able to login in and out of the application using their vBulletin username and password just as they would do logging in and out of the forum. I would also like for the vBulletin cookies to work with this application.
I can write the PHP application without any problems, I just need to know how to integrate with vBulletin.
Any help in pointing me to a reference or post would be greatly appreciated.
Thanks!
On Edit: This is for vBulletin v3.0 Beta.
Floris
1st August 2003, 09:51 AM
This is going a little bit over my head, I hope you find someone that can help you.
fury
6th August 2003, 04:45 AM
The short answer would be, chdir('./forums/'); and require_once('./global.php');
That's about how it worked with vBulletin 2.
Of course, then you either need to put all your templates into vB3 or hard code everything in your script.
Take a look at the "navbar" template in vB3 to find out how the logins are handled
When you require_once the global.php, $bbuserinfo will be accessible in your script just like in vB, which should contain all the data you'd need about a logged in user
Hope this helps.
Barry
6th August 2003, 05:01 AM
fury, that is exactly what I needed... THANKS A BUNCH!... :D
fury
6th August 2003, 05:06 AM
Don't capitalize the f! http://smilies.xibase.com/beerbang.gif
No problem, glad I could be of service ;)
Barry
6th August 2003, 05:34 AM
Don't capitalize the f! http://smilies.xibase.com/beerbang.gif
No problem, glad I could be of service ;)
haha... Fixed
Floris
31st August 2003, 04:20 AM
Can we get a working version to browse through and see the result barry ? tnx :D
Wow, fury is on a role here with his help.
Barry
31st August 2003, 04:24 AM
Can we get a working version to browse through and see the result barry ? tnx :D
Wow, fury is on a role here with his help.
I dont have it working yet, but once Im finished Ill post it up for you guys.
Floris
31st August 2003, 04:25 AM
That would be great !