I was wondering if someone can show me the code for a blank template that uses my header and footer but allows both guests and members to see it. I have one that I used from something else but it doesnt allow guests to see it.
this is the blank template:
Code:
<?php
error_reporting(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT', 'chat');
require_once('./global.php');
eval('$navbar = "' . fetch_template('navbar') . '";');
$globaltemplates = array('linktous');
if ($bbuserinfo[userid]=='') {
print_no_permission();
} else {
$username1=ereg_replace("[^A-Za-z0-9]", "_", $bbuserinfo['username']);
$myLength = strlen( $username1 );
if ($myLength > 15) {
$username = substr( $username1, 0, 15 );
} else {
$username = $username1;
}
eval('print_output("' . fetch_template('linktous') . '");');
}
?>
This will give me the blank page with header and footer but only for logged in users. Please help.
Chris