Here's a minor adjustment that a friend did up for me.
Its to cut off the last 5 replies if Theyre too long for your setup.
(I have a thin welcome panel and long thread titles wrap around and look like crap)
Code:
// Top 5 Thread Replys
$pop = $DB_site->query('SELECT title,threadid,lastpost,lastposter,views FROM thread ORDER BY lastpost DESC LIMIT 5');
while ($poptop = mysql_fetch_array($pop)):
++$poptopnbsp;
$thelength=25;
$thetitle=$poptop[title];
if(strlen($poptop[title]) > $thelength) {
$thetitle=substr($poptop[title], 0, $thelength)."...";
}
$popthread .= "? <a href=showthread.php?s=$session[sessionhash]&threadid=$poptop[threadid] title=\"$poptop[title]\">$thetitle</a><br>";
$poplastposter .= "$poptop[lastposter]<br>";
$popviews .= "$poptop[views] ?<br>";
endwhile;
// Top 5 Thread Replys
$thelength= being the number of characters you want to show. This also shows the full title when a user hovers over the thread title.
Im not sure what's different since I didnt do it, so just copy that over your current code starting with the //Top5 replys and ending with it too.
Oh, this is in the index.php in case you didnt know lol.