Quote:
Originally Posted by Brad
Here is something helpful when you are dealing with problems like this. In whatever file you are using to call global.php (in this case a gallery file in another directory), use something like this:
PHP Code:
// Full path to vBulletin define('CWD', '/path/to/html/vBulletin');
// Call global.php require_once(CWD . '/global.php');
// Get some custom functions from vBulletin directory require_once(CWD . '/includes/functions_loo.php');
The CWD constant will insure that all calls to vBulletin files point to the right directory, even the ones vBulletin makes on its own when you include global.php. Just make sure you always use the constant in the require_once(); function and everything should work correctly (unless you set the wrong path!).
Hope that helps.
|
im not 100% why
is called, but i assume it is to get VBB to integrate correctly. but what is
PHP Code:
functions_loo.php
usefull for?