The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
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. |
#2
|
|||
|
|||
global.php is assuming it is being called from the directory below the forums directory
Code:
//load config require('./admin/config.php'); |
#3
|
||||
|
||||
I just put it as
Code:
//load config require('http://www.ffalexandria.com/forums/admin/config.php'); Warning: php_hostconnect: connect failed in /sites/ffalexandria.com/www/forums/global.php on line 129 |
#4
|
||||
|
||||
Welcome guest, to Alexandria.
This is what i see when i visit... |
#5
|
||||
|
||||
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. |
#6
|
|||
|
|||
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
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|