| echo $lThreadTopic; ?> |
echo $lThreadAuthor; ?> |
echo $lThreadDate; ?> |
|
$a=1;
$row=0;
$LastThread=0;
$objPost = mysql_fetch_object($nTopics);
While($a<=$nRows){
$nID = intval($objPost->id);
$nThread = intval($objPost->thread);
$sTopic = substr($objPost->topic,0, 50);
$sName = substr($objPost->name,0,25);
$sDate = date_format($objPost->datestamp);
$objPost = mysql_fetch_object($nTopics); //this is done here so comparisons can be made between current and next record. see below.
if($nID==$id){
$sTopic = "$sTopic";
$sName = "$sName";
$sDate = "$sDate";
}
else{
$sTopic = "$sTopic";
if(isset($$cLastIDVar) && $$cLastIDVar<$nID and $UseCookies==1){
$sTopic = $sTopic." ";
}
}
$mod = $row % 2;
if($mod==0){
echo "";
}
else{
echo " ";
}
if($nThread!=$LastThread){
?>| valign="MIDDLE" nowrap> echo $sTopic ?> |
echo "\n";
}
else{
if($a+1<=$nRows){
$nNext = $objPost->thread; //this is where the comparison mentioned above is done. it determines the gif used: t or l.
if($nNext==$nThread){
$gif = $forum_path."t.gif";
}
else{
$gif = $forum_path."l.gif";
}
}
else{
$gif = $forum_path."l.gif";
}
?> |
echo "\n";
?> valign="MIDDLE" nowrap> echo $sTopic ?> |
echo "\n";
}
?> echo $sName ?> |
echo "\n";
?> echo $sDate ?> |
echo "\n";
?>
echo "\n";
$LastThread = $nThread;
$a++;
$row++;
}
?>
|