The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Best way to get $vbulletin->userinfo from an external page
Hi,
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 Code:
$currentDir = getcwd(); chdir('./forum'); require_once('./global.php'); chdir($currentDir); global $vbulletin; 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 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|