PDA

View Full Version : need just a little help please


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

NTLDR
01-14-2003, 12:13 PM
<?php
error_reporting(7);

$templatesused='chat';

require('./global.php');

if ($bbuserinfo[userid]==0) {
show_nopermission();
}

$bbusername = $bbuserinfo[username];

eval("dooutput(\"".gettemplate('chat')."\");");

?>

drives fast
01-15-2003, 11:10 AM
thank you very much....that worked like a charm.

thank you thank you thank you