![]() |
VB header on an external page....
i need help including the header and footer from my vb forums to a script that is outside the forums dir.
P.S. i've been trying to find the solution to it for hecka long time......search the board and everything.....so please help me out =( Ex: http://www.site.com/forums <<------Forums dir http://www.site.com/page.php <<------Page to include the header and footer |
<a href="http://www.vbulletintemplates.com/mods/showthread.php?t=4564" target="_blank">http://www.vbulletintemplates.com/mo...ead.php?t=4564</a>
Then include $header and $footer in your template code and use the template to code the whole page. |
hmm.......i seems to keep on getting this error
Warning: main(./admin/config.php): failed to open stream: No such file or directory in /home/anim3df/public_html/global.php on line 129 My Code: <?php include("./global.php"); eval("dooutput(\"".gettemplate('header')."\");"); ?> Forums Dir: http://www.site.com/forums Test.php Dir http://www.site.com/test.php |
That is wrong. You call a new template. Lets say it's called 'site' and put it into the file code. Then make a new template through your ACP called 'site'. So now the file name will call that template. Input the variable $header for the header to show, but use this with the stuff you'd like to display on the page.
|
should i include the full path/or URL to the global.php?
include("./global.php"); <<--- in here b/c if i put the site.php in the forums dir, it works......but i dont want it to be in the forums dir tho =/ |
ok then try this
oh wait vb2 hmmm lol hadda think for a moment, that should work PHP Code:
|
Quote:
got another problem...u can see it here: http://anim3.com/site.php |
|
Eep, didn't realise this was in the wrong forum. Moving to vB2 support..
|
i already thought this was in vb2 lol :D
|
All times are GMT. The time now is 08:59 PM. |
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:
|