$fonttag$boardname - Threads by ".$users[$id][name]."$smallfont $tblstart $tccellh  $tccellha colspan=2$tccellhb Thread $tccellh Started by $tccellha width=60$tccellhb Replies $tccellha width=60$tccellhb Views $tccellha width=150$tccellhb Last post "; $threads=mysql_query("SELECT id,user,title,views,closed,icon,replies,lastpostdate,lastposter FROM threads WHERE user=$id ORDER BY lastpostdate DESC"); $threadcount=mysql_num_rows($threads); if($threadcount>$tpp){ $pagelinks2=$smallfont."Pages:"; for($k=0;$k<(($threadcount+1)/$tpp);$k++){ if($k!=$page) $pagelinks2.=" ".($k+1).""; else $pagelinks2.=" ".($k+1); } } $i=0; while($thread=mysql_fetch_array($threads)){ $i++; if($i>($page*$tpp) and $i<(($page+1)*$tpp+1)){ $new=" "; if($thread[lastpostdate]>ctime()-900) $new=""; if($thread[closed]==1) $new=""; $posticon=""; $pagelinks=""; if($thread[replies]>=$ppp){ $pagelinks="$smallfont(Pages:"; for($k=0;$k<(($thread[replies]+1)/$ppp);$k++) $pagelinks.=" ".($k+1).""; $pagelinks.=")"; } $thread[title]=str_replace("<","<",$thread[title]); if(!$thread[icon]) $posticon=" "; if($i>($page*$tpp)+1) print ""; $user1=$users[$thread[user]]; $user2=$users[$thread[lastposter]]; $namecolor1=getnamecolor($user1[sex],$user1[powerlevel]); $namecolor2=getnamecolor($user2[sex],$user2[powerlevel]); print " $tccell1$new $tccell2$posticon $tccell2l$thread[title] $pagelinks $tccell2$user1[name] $tccell1$thread[replies] $tccell1$thread[views] $tccell2".date("m-d-y h:i A",$thread[lastpostdate]+$tzoff)."$smallfont
by
".$user2[name]." "; } } print "$tblend$pagelinks2$footer"; printtimedif($startingtime); ?>