Quote:
Originally Posted by KirbyDE
PHP Code:
<?php
define('THIS_SCRIPT', 'external_articles');
define('NO_REGISTER_GLOBALS', 1);
$specialtemplates = array();
$globaltemplates = array();
$actiontemplates = array();
$phrasegroups = array();
chdir('/path/to/forum');
require_once('./global.php');
$navbits = array();
$navbits = construct_navbits($array);
eval('print_output("' . fetch_template('navbar') . '");');
?>
|
Under 'require_once' here's what I did, and it works like a champ. Note the addition of the module name, so it shows up in the Navbar...
Quote:
$navbits = array();
$navbits[$parent] = 'Info_Request';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
......
eval('print_output("' . fetch_template('info_request') . '");');
exit();
|
And inside the 'info_request' template, $navbar is used.
HTH,
....jc