vBulletin Mods

The Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=221782

How do i include global.php outside vbulletin dir?
by Brandon_R
26 Aug 2009 03:42

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

Adrian Schneider 26 Aug 2009 03:53

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.

Dismounted 26 Aug 2009 11:13

Quote:

Originally Posted by SirAdrian (Post 1874529)
add <base href="http://site.com/forums/index.php" /> at the top of the <head> section for your new pages.

You can place this code at the top of headinclude (if it was not clear).

Adrian Schneider 26 Aug 2009 23:10

I usually do this.


Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.


Dismounted 27 Aug 2009 11:00

That works as well. :) (IIRC, this has been applied in future versions of vBulletin.)


All times are GMT. The time now is 04:16.

Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.