![]() |
Assistance With non-vb pages
On my index page, http://www.ffalexandria.com, I want it to say "Welcome back, $user" or "Welcome guest, to Alexandria" if they are a guest. I thought by including ("forums/global.php"); this would work:
PHP Code:
Warning: Unable to access ./admin/config.php in /sites/ffalexandria.com/www/forums/global.php on line 129 All I want it to do is say their username if their logged in, what do I need to do? EDIT: It doesn't work, but it will say "Welcome guest". But it says that for everyone, even though you are logged in. |
global.php is assuming it is being called from the directory below the forums directory
Code:
//load config |
I just put it as
Code:
//load config Warning: php_hostconnect: connect failed in /sites/ffalexandria.com/www/forums/global.php on line 129 |
Welcome guest, to Alexandria.
This is what i see when i visit... |
I know, but I am logged in and it still says that. So its not getting the $bbuserinfo[username] right.
EDIT: I changed the include on my index page to a full path to the forums, and it doesn't give me an error anymore. Although it still doesn't say "Welcome back, $username" if you are logged in. |
Um yeah. Just tried something similar and I get the same. Doesn't seem to work if you include global.php when the file is out side of the main forums directory :(
|
All times are GMT. The time now is 11:17 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:
|