The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
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.
|
#3
|
||||
|
||||
You can place this code at the top of headinclude (if it was not clear).
|
#4
|
||||
|
||||
I usually do this.
PHP Code:
|
#5
|
||||
|
||||
That works as well. (IIRC, this has been applied in future versions of vBulletin.)
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|