drives fast
01-14-2003, 11:56 AM
I use this:
<?php
error_reporting(7);
require('./global.php');
if( $bbuserid ) {
$user = $DB_site->query_first( "SELECT username FROM user WHERE userid = $bbuserid" );
$bbusername = $user[username];
eval("dooutput(\"".gettemplate('chat')."\");");
} else {
eval("dooutput(\"".show_nopermission()."\");");
} // end if
?>
script so I can add custom pages to my forum and only use one template instead of a whole new set of templates and editing the forumdisplay yada, yada, yada but for some reason.....some of my members will always get the "no permission" error no matter what trying to access that page.....I have even tried logging in as them and I get the error too (only when logged in as them)
does anyone know of a better way or better code to stop that from happening?
thanks in advance
<?php
error_reporting(7);
require('./global.php');
if( $bbuserid ) {
$user = $DB_site->query_first( "SELECT username FROM user WHERE userid = $bbuserid" );
$bbusername = $user[username];
eval("dooutput(\"".gettemplate('chat')."\");");
} else {
eval("dooutput(\"".show_nopermission()."\");");
} // end if
?>
script so I can add custom pages to my forum and only use one template instead of a whole new set of templates and editing the forumdisplay yada, yada, yada but for some reason.....some of my members will always get the "no permission" error no matter what trying to access that page.....I have even tried logging in as them and I get the error too (only when logged in as them)
does anyone know of a better way or better code to stop that from happening?
thanks in advance