![]() |
How do i include global.php outside vbulletin dir?
Hello guys, i have vB installed in the folder /forums but i want to make a vbulletin page in the parent dir for the folder forums. What would be the way to include global.php file and other vbulletin files so i can use the template system and all vbulletin's functions?
Brandon_R |
In PHP, chdir() to the directory containing global.php, and add <base href="http://site.com/forums/index.php" /> at the top of the <head> section for your new pages.
|
Quote:
|
I usually do this.
PHP Code:
|
That works as well. :) (IIRC, this has been applied in future versions of vBulletin.)
|
All times are GMT. The time now is 09:56 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:
|