DigitalDesktops
05-14-2003, 12:35 AM
Hi, i'm having troubles making my new hack to work. :ermm:
Everything works fine, except the page is blank. Heres's the code:
<?php
error_reporting(7);
$templatesused='';
require("./global.php");
if ($bbuserinfo[userid]==0)
{
eval("standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
}
########################### VIEW MISSIONS #################################
$missions=$DB_site->query("SELECT race_name, race_color, title, objective, description, award, id, usergroupid, mission_id, mission_usergroupid FROM race,race_missions WHERE usergroupid=$bbuserinfo[usergroupid]");
while ($missions2=$DB_site->fetch_array($missions))
{
eval ('$output_missions .= "'.gettemplate("display_missions_bit").'";');
}
eval("dooutput(\"".gettemplate('display_missions')."\");");
?>
everything looks right. I called $output_missions from the display_missions template, but nothing shows up :(
Any Ideas? Thanks In Advance!
Everything works fine, except the page is blank. Heres's the code:
<?php
error_reporting(7);
$templatesused='';
require("./global.php");
if ($bbuserinfo[userid]==0)
{
eval("standarderror(\"".gettemplate("error_nopermission_loggedout")."\");");
}
########################### VIEW MISSIONS #################################
$missions=$DB_site->query("SELECT race_name, race_color, title, objective, description, award, id, usergroupid, mission_id, mission_usergroupid FROM race,race_missions WHERE usergroupid=$bbuserinfo[usergroupid]");
while ($missions2=$DB_site->fetch_array($missions))
{
eval ('$output_missions .= "'.gettemplate("display_missions_bit").'";');
}
eval("dooutput(\"".gettemplate('display_missions')."\");");
?>
everything looks right. I called $output_missions from the display_missions template, but nothing shows up :(
Any Ideas? Thanks In Advance!