The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
$vbulletin->userinfo['userid'] working outside the forum, empty inside?
Hi,
I already posted this at vbulletin.com but still can?t get any solution. So please bear with me, it?s driving me nuts! Lost 2 days already... just recently converted our 170.000 posts phpBB to vBulletin and absolutely love it so far (conversion with impex went really smooth and the template and plugin system are priceless!). I just have one small problem: I cannot seem to use "$vbulletin->userinfo['userid']" in an include inside the forum. It is always empty. Explanation (simple version ): I include a file (blah.php) throughout the site, in this file i have PHP Code:
PHP Code:
Hook: global_start Code:
ob_start(); include('path/to/blah.php); $blah= ob_get_contents(); ob_clean(); include other stuff; ob_end_clean(); Code:
$blah How can i get it to echo my userid? (Longer explanation: I use a small login-thingie in the menu, which i can?t get to work in the forum. i am logged in in the normal login box, but not in the menu ) thanks in advance, kopfnick PS.:Site can be found at www.hiphop.at/start, you can see the login box in the menu. |
#2
|
|||
|
|||
Where are you hooking into? Sometimes $vbulletin isnt available as $vbulletin (inside classes), youll need to use $this->registry if this is the case.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|