I'm having trouble getting this working.
Am getting the following errors (below).
=======
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: navbar in [path]/includes/functions.php on line 3957
Parse error: syntax error, unexpected T_STRING in /home/bostonwh/public_html/adhub1.php(42) : eval()'d code on line 1
Warning: fetch_template() calls should be replaced by the vB_Template class. Template name: adhub1 in [path]/includes/functions.php on line 3957
=======
The last part of my custom php file (named adhub1.php) is as follows (see just below):
(and I do have a template named 'adhub1'.)
Line 42 - which is where the error msg points to - is the line there that contains '... fetch_template('navbar' ...'
Any ideas ?
I must be missing something simple.
Thanks.
// ############ START MAIN SCRIPT ################
$navbits = array();
$navbits[$parent] = 'adhub1';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('adhub1') . '");');
?>
|