cheers, this is my code for any one else who wants it:
PHP Code:
<?php
// ## Changes Directory so it can accesss vBulletin IF we are outside the forums folder, if not this is not nessary ##
chdir("./../vb303");
// ## Error Reporting ( we use error reporting in php so we can control the display of error messages
// ## we will use this because all vBulletin files follow the same error reporting rules) ##
error_reporting(E_ALL & ~E_NOTICE);
// ## this action here cache's the templates so that everytime their needed a querry wont be needed to run
// ## the names in there are just the template names :), there must be a comma after everyone but the last ##
$globaltemplates = array(
'headinclude',
'navbar',
'header'
);
// ## Grabs global.php this grabs vbulletins global.php so we can use the most basic of vBulletins functions ##
require_once("./global.php");
// ## this calls to print out one main template ##
//eval('print_output("' . fetch_template('navbar') . '");');
//eval('print_output("' . fetch_template('headinclude') . '");');
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('$h_include = "' . fetch_template('headinclude') . '";');
eval('$front_header = "' . fetch_template('header') . '";');
echo $navbar;
echo $h_include;
echo $front_header;
?>
It needs tweaking but I hope it helps someone.
Now to figure out why Im getting JScript errors!