I got it working with 2.3.4. Here it is:
Quote:
<?php
error_reporting(E_ALL & ~E_NOTICE);
define('THIS_SCRIPT', 'chat');
require_once('./global.php');
$globaltemplates = array('chatroom');
if ($bbuserinfo[userid]=='') {
show_nopermission();
} 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('dooutput("' . gettemplate('chatroom') . '");');
}
?>
|