Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 29 Jun 2012, 10:44
anakenabcn anakenabcn is offline
Join Date: Sep 2009
Best way to get $vbulletin->userinfo from an external page

I'm currently working on a PHP website (using Zend Framework) with an installation of vBulletin on the same domain. I've implemented an user system on this website that is syncronized with vBulletin.
I redirect the login and logout to vBulletin through "login.php" and "login.php?do=logout" with the requested parameters. And if the user try to access a page that need identification I check if the user is logged in with "$vbulletin->userinfo['userid']".

Right now I'm getting this data using the following code

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

It's working but I think that loading vBulletin environment for every request bring up an overhead that i'd like to reduce. I have some pages with galleries of user pictures and i use a php script to serve the pictures (so i can restrict the access if needed) and i'm loading "global.php" for everyone of these requests. On top of that, i had some issue with some http headers beeing overrided by my call to 'global.php'.

I've started looking inside vBulletin implementation and for example i found that global.php is initializing a lot of ressources i actually don't need. So maybe a possible fix would be to write a php script inside vBulletin installation loading only the needed ressources (only the userinfo).

So what do you think would be the best solution for this issue?
And is there some advanced documentation about vBulletin API to help me if i need to write this script?

Thank you
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

New To Site? Need Help?

All times are GMT. The time now is 00:57.

Layout Options | Width: Wide Color: