2005-03-17, 04:53 PM
Eh? It works for one page but not another at the same level?The problem is that you are calling global.php from different levels which are all relative from your current location.
So a file from images/ will need ../forum but a file from images/folder2/ will need a ../../forum/ link
Your best bet then is to define your own ROOT_DIR variable and use that to prefix any values in global.php.
Example
In images/ folder. define ROOT_DIR as ../forum/
In images/folder2 folder. Define ROOT_DIR as ../../forum/
In global.php change any file locations to ROOT_DIR . "inc/timers.php" for example.
So a file from images/ will need ../forum but a file from images/folder2/ will need a ../../forum/ link
Your best bet then is to define your own ROOT_DIR variable and use that to prefix any values in global.php.
Example
In images/ folder. define ROOT_DIR as ../forum/
In images/folder2 folder. Define ROOT_DIR as ../../forum/
In global.php change any file locations to ROOT_DIR . "inc/timers.php" for example.