I want to call this hack from the control panel but right now I'm just getting a blank screen. The template is called MAILLIST and is unchanged from page 1 of this thread.
here's my file called maillist.php which is stored at /forum/
(comments removed for brevity)
PHP Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
define('NO_REGISTER_GLOBALS', 1);
define('THIS_SCRIPT', 'maillist'); // change this depending on your filename
// get special phrase groups
$phrasegroups = array( );
$specialtemplates = array( );
$globaltemplates = array( 'MAILLIST', 'usercp_nav_folderbit');
$actiontemplates = array( 'MAILLIST');
require_once('./global.php');
$navbits = array();
$navbits[$parent] = 'Test Page';
$navbits = construct_navbits($navbits);
eval('$navbar = "' . fetch_template('navbar') . '";');
eval('print_output("' . fetch_template('MAIL LIST MAINTENANCE') . '");');
?>
Can't see where I've gone wrong? sure it's something simple, any ideas?
Plus, how do I ensure that I get the control panel nav rather than the normal nav?
Sarah