![]() |
Global.php on non-vb pages
Hi,
I'm trying to design my site around Vbulletin. I know I would need to include "global.php" in all of the pages, but from what I've tested, I'm having a problem with sessions. Right now I login to my forums, then when I go to my test page, it's supposed to be like this: "Welcome, username", but instead of showing my username, it shows the username of the 1st ID in the database. Here's the code I'm using. What's wrong? PHP Code:
|
The user's username (assuming they are logged in) will be stored automatically in $bbuserinfo['username'] after you have included global.php.
|
Still messing with this, thanks for the info!
|
All times are GMT. The time now is 08:45 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|