case newtopic:
$table = 'threads t';
$cols = "t.tid, t.subject, t.author, t.dateline, t.views, t.replies, t.lastpost, t.lastposter, t.highlight, f.name";
$fids="1,4,6,104,8,7,10,11,102,103,13,12,14,15,16,17,18,19,21,22,23,24,25,87,26,27,28,29,108,31,33,34,35,32,37,39,40,41,42,43,44,45,38,46,50,49,89,48,88,55,54,53,56,57,107,59,60,62,64,63,67,68,66,73,72,71,70,74,76,77,78,85,100,105,101,83,84";
$conditions = "LEFT JOIN {$tablepre}forums f ON (f.fid=t.fid) WHERE t.fid<>'$fid' AND f.fid IN ($fids) ORDER BY t.dateline DESC LIMIT 0, 11";
break;
case newreply:
$table = 'threads t';
$cols = "t.tid, t.subject, t.author, t.dateline, t.views, t.replies, t.lastpost, t.lastposter, t.highlight, f.name";
$fids="1,4,6,104,8,7,10,11,102,103,13,12,14,15,16,17,18,19,21,22,23,24,25,87,26,27,28,29,108,31,33,34,35,32,37,39,40,41,42,43,44,45,38,46,50,49,89,48,88,55,54,53,56,57,107,59,60,62,64,63,67,68,66,73,72,71,70,74,76,77,78,85,100,105,101,83,84";
$conditions = "LEFT JOIN {$tablepre}forums f ON (f.fid=t.fid) WHERE t.fid<>'$fid' AND f.fid IN ($fids) AND t.replies !=0 ORDER BY t.lastpost DESC LIMIT 0, 11";
break;