PDA

View Full Version : Vbulletin 'Hacker' PHP Guru required


sbryan
12-29-2002, 09:13 AM
Hi Guys, I want to add the following features to my website that has a Vbulletin forum on it.

http://www.xboxworld.com.au/

i want to add some features to let users post comments on the news but they obviously need to enter a username and password to avoid anonymous spamming etc and abuse.

is it possible to access the Vbulletin members usernames and password data in the Vb database in the forum and use that to let them 'login' to other areas of my site that i create?..

i could easily set this up and have two signup areas and user databases on the site, one to add comments and other stuff i want to add and the other for the forum, but if the forum details can be accessed then i can just use the forum as the membership platform for all site members..

thanks in advance for any feedback!

Shane

Xenon
12-30-2002, 10:40 AM
in your non vb-files you can also require the vb global.php then you can check if $bbuserinfo[userid]>0.
if it is > 0 then the user is logged in :)

sbryan
12-30-2002, 12:43 PM
wow so simple.

so with that it should be pretty simple to build login areas on the other parts of the site that access the Vb database login details then..

but if $bbuserinfo[userid]>0 then i need them to log in, any tips on validating the user via a login form thats on another part of the site as surely its encrypted?

nice stuff, thanks heaps for the help so far!! :banana:

Xenon
12-30-2002, 02:01 PM
hmm, you just need to save the special cookies on the users pc, with all the logindetails of the vb-login :)

shouldn't be to hard if you are a bit experienced with cookies :)

sbryan
12-30-2002, 09:13 PM
but if the cookie expires or they delete them all for some reason, theyll need to go to the forum, login, then back to the site..

sure there isnt some way to create login areas in other areas of the site that access the forum database for validation?

thanks for the advice so far as well!!!

-shane

Xenon
12-31-2002, 01:02 PM
well, you can try to use $logincode in your nonvb site when you have included global.php.

i never used it, but i think it might work

Chris M
12-31-2002, 01:09 PM
Either that or you can just use HTML Code to make a form that points to member.php;)

Satan

sbryan
01-01-2003, 11:23 AM
ahhh well that certainly sounds easy!!

got a example of a form anywhere that does that?

Ember
01-01-2003, 03:59 PM
Just search for "member login from a non vb page" or something along those lines.

sbryan
01-01-2003, 10:09 PM
cool. thanks a heap guys. way cool! do you know of any sites that do this already?