I've tried using this code to call a vBulletin template in a non-vB page located one level above my forum directory:
PHP Code:
<?php
chdir('./forum/');
require('global.php');
eval("dooutput(\"".gettemplate('header')."\");");
?>
but get the following error message:
Code:
Fatal error: Call to undefined function: gettemplate() in path\to\site\test.php on line 6
What is wrong with the above code? Do I need to include any other files in order for the function to work properly?