Helpful Information
 
 
Category: vBulletin Article Depository
How to include header/footer templates, etc.

ok, I'm sure this is a totally elementary newbie question, but I am working on my first new feaure hack, and so I figured that I'd ask anyway.

My hack looks like its at an advanced stage, and now I just want to include the header and footer templates.

I am requiring the global.php file in my php code, but am not sure what I need to do from here to integrate this new feature into the rest of my site.

Any help would be appreciated.

ok heres what u do:


<?php
error_reporting(7);


chdir('/full/path/to/site/forums/');
require('global.php');

eval("\$footer = \"".gettemplate('footer')."\";");
eval("\$headinclude = \"".gettemplate('headinclude')."\";");

$title="$bbtitle (hackname/thing)";
eval("\$page = \"".gettemplate('template required 1')."\";");

eval("dooutput(\"".gettemplate('template required 2')."\");");

?>


this is da code u put in a file........e.g:
(hackname).php










privacy (GDPR)