Integrate vBulletin Login

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Integrate vBulletin Login

Post by shiznatix »

I have a site that is using vbulletin as the forum. Now I have the little login forum that logs you in through the vbulletin login scripts and everything but the thing now is that I want to be able to tell if the user is logged in on any other page in my site, not just when they are browsing the forum.

I have dumped out _COOKIES, _SESSION, _GLOBALS, with nothing successfull. I searched google but found nothing good either. I was wondering if someone has ever done this and how to find the info. On the old version of this site we where using Drupal and you would just do global $vbulletin and then you would have all the info you needed but since the new site is running with all custom code (except of course vbulletin) I need a new approach.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Wherever there's a login form, add something to $_COOKIE whenever a user successfully logs in. How many different logins do you have on the site?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

What code does vBulletin use to see if a user is logged in? Integrate that.
Post Reply