Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 26 Aug 2009, 03:42
Brandon_R Brandon_R is offline
 
Join Date: Aug 2009
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
Reply With Quote
  #2  
Old 26 Aug 2009, 03:53
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
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.
__________________
Sr Software Developer / Tech Lead
Reply With Quote
  #3  
Old 26 Aug 2009, 11:13
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
Originally Posted by SirAdrian View Post
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).
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
  #4  
Old 26 Aug 2009, 23:10
Adrian Schneider's Avatar
Adrian Schneider Adrian Schneider is offline
 
Join Date: Jul 2004
I usually do this.


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

__________________
Sr Software Developer / Tech Lead
Reply With Quote
  #5  
Old 27 Aug 2009, 11:00
Dismounted's Avatar
Dismounted Dismounted is offline
 
Join Date: Jun 2005
Real name: Hanson
That works as well. (IIRC, this has been applied in future versions of vBulletin.)
__________________
Former vBulletin.org Staff Member

View My Modifications
29 Releases and Counting... Latest Modification: dmActivityStream - vBookie Integration (4.x)

Please do not PM me to ask for support - please use the relevant thread or forum.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

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

Layout Options | Width: Wide Color: