PDA

View Full Version : Simple External Template Call


mark99
10-20-2003, 08:09 AM
I want to call a template I made for vB2 under vB3, yet vB3 doesn't seem to recognise this anymore:

<?php
error_reporting(7);

require('./global.php');


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

?>

The output I get states:

Fatal error: Call to undefined function: gettemplate() in /homepages/30/********/*******/beta/talk2/chat.php on line 7

What has replaced 'gettemplate' and how do I re-write that line to do it?

assassingod
10-20-2003, 01:41 PM
vB3 has completey re-written its functions.
The code now is


eval('print_output("' . fetch_template('templatename') . '");');


(And instead of error_reporting(7); use error_reporting(E_ALL & ~E_NOTICE); )