View Full Version : Use Header & Footer template in my other page forum
cyber2k
01-31-2003, 02:46 PM
Hi,
I have added some pages to the forum and I would like to insert the top and the foot of the template of the forum in these pages. How can I do?
Thank's
Dean C
01-31-2003, 04:05 PM
Take a look at this:
https://vborg.vbsupport.ru/showthread.php?s=&threadid=36600
- miSt
Tony G
02-01-2003, 09:44 AM
Would be nice to see those screen shots. :(
Dean C
02-01-2003, 10:16 AM
Tony - basically all it does is create a file which calls a template where you can use the $header or $footer variable :)
- miSt
Tony G
02-01-2003, 10:38 AM
Just wanted to see what it did to the WOL etc. ;)
Dean C
02-01-2003, 10:51 AM
It doesn't do anyting to WOL...
Let me explain:
<?php
error_reporting(7);
require('./global.php');
eval("dooutput(\"".gettemplate('forumprivacy')."\");");
?>
This code includes global.php so it means that any templates that are called below it can access the $header and $footer variables. The forumprivacy template is called which means you can create a template and use the $header and $footer variable and it ouputs the content of the 'header' and 'footer' templates
- miSt
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.