Quote:
Originally Posted by Xenon
it works the same way.
you have to include forum's global.php and check if bbuserinfo[userid] > 0
|
I can't get it to work...
PHP Code:
<?
require( "./global.php" );
if( $bbuserid ) {
$user = $DB_site->query_first( "SELECT username
FROM user
WHERE userid = $bbuserid" );
$bbusername = $user[ username ];
eval("dooutput(\"".gettemplate('chat_hack')."\");");
} else {
eval("dooutput(\"".show_nopermission()."\");");
} // end if
?>