0) {
if(!empty($blocks['shoutbox']['shoutdate'])) $shoutdate = $blocks['shoutbox']['shoutdate'];
else $shoutdate = $dateformat." ".$timeformat;
$output .= "
";
while($shout = dbassoc($shouts)) {
if(isNumber($shout['shout_name']) && isset($shout['penname'])) $shoutname = "
".$shout['penname']."";
else if(isset($shout['shout_name'])) $shoutname = $shout['shout_name'];
else $shout = _GUEST; // Just in case.
$output .= "
$shoutname\n
".stripslashes($shout['shout_message'])."\n
".date("$shoutdate", $shout['shout_datestamp'])." ["._DELETE."] ["._EDIT."] \n
";
}
$output .= "
";
if($totalshouts > $itemsperpage) $output .= build_pagelinks("archive.php?", $totalshouts, $offset);
}
else $output .= write_message(_NOSHOUTS);
$tpl->assign("output", ""._SHOUTARCHIVE."
\n\n$output");
$tpl->printToScreen();
?>