Log in

View Full Version : Calling templates on non-vB pages


inthezone
09-05-2003, 12:40 AM
I've tried using this code to call a vBulletin template in a non-vB page located one level above my forum directory:


<?php

chdir('./forum/');
require('global.php');

eval("dooutput(\"".gettemplate('header')."\");");

?>


but get the following error message:


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?

Logician
09-05-2003, 06:53 AM
chdir command seems wrong.. give full unix path..