Alternating Row Colours
I added "outside" of the WHILE loop:
$color1 = "#DEDFDF";
$color2 = "#F7F7F7";
$rowcolorcount = 0;
"Inside" of the WHILE loop:
$rowcolor = ($rowcolorcount % 2) ? $color1 : $color2;
-- "Before" the final '}' at the end of the WHILE loop:
$rowcolorcount++;
add <tr bgcolor=\"$rowcolor\"> where you want your rows to change colours
Add Thread Replies and Views
Replace the entire line that starts with
$thread_sql with:
Code:
$thread_sql = mysql_query("SELECT threadid,title,lastpost,lastposter,replycount,views FROM thread WHERE visible=1 AND open=1 $forumid ORDER BY lastpost DESC $limited");
Find:
$tid = $thread_get['threadid'];
Add underneath:
$view = $thread_get['views'];
$reply = $thread_get['replycount'];
Use something like
<br />Replies: $reply | Views: $view where you want the counts to display
For an example check out
http://www.cchl.ca/web/scripts/last.php