The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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 |
#2
|
||||
|
||||
<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. |
#3
|
|||
|
|||
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 |
#4
|
||||
|
||||
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.
|
#5
|
|||
|
|||
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 =/ |
#6
|
||||
|
||||
ok then try this
oh wait vb2 hmmm lol hadda think for a moment, that should work PHP Code:
|
#7
|
|||
|
|||
Quote:
got another problem...u can see it here: http://anim3.com/site.php |
#8
|
||||
|
||||
|
#9
|
||||
|
||||
Eep, didn't realise this was in the wrong forum. Moving to vB2 support..
|
#10
|
||||
|
||||
i already thought this was in vb2 lol
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|