The Arcive of vBulletin Modifications Site. |
|
|
#1
|
|||
|
|||
|
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') . '");');
}
?>
Chris |
|
#2
|
||||
|
||||
|
The GENERIC_SHELL has the basics
You just need to eval a second template for what youd like to $html/ |
|
#3
|
|||
|
|||
|
Thanks - just got it to work!
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|