Log in

View Full Version : Blank Template


ChrisBaktis
03-28-2004, 01:13 AM
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:

<?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

Zachery
03-28-2004, 08:18 AM
The GENERIC_SHELL has the basics

You just need to eval a second template for what youd like to $html/

ChrisBaktis
03-28-2004, 02:55 PM
Thanks - just got it to work!