I added this hack to my forum and tweaked the SQL
Following will select only open threads.
PHP Code:
$ac_sql = "SELECT * FROM ". TABLE_PREFIX ."thread where threadid between ".$startat." AND ".$endat." AND (views > 1000 OR replycount > 1000) AND visible = '1' AND open = '1' ORDER by views DESC";
Following will select threads that are
not in forums 1,2,3,4,5.
PHP Code:
$ac_sql = "SELECT * FROM ". TABLE_PREFIX ."thread where threadid between ".$startat." AND ".$endat." AND (views > 1000 OR replycount > 1000) AND visible = '1' AND forumid NOT IN ('1', '2', '3', '4', '5') ORDER by views DESC";
Following will select threads that are only
in forums 1,2,3,4,5.
PHP Code:
$ac_sql = "SELECT * FROM ". TABLE_PREFIX ."thread where threadid between ".$startat." AND ".$endat." AND (views > 1000 OR replycount > 1000) AND visible = '1' AND forumid IN ('1', '2', '3', '4', '5') ORDER by views DESC";
Following will select only open threads that are
not in forums 1,2,3,4,5.
PHP Code:
$ac_sql = "SELECT * FROM ". TABLE_PREFIX ."thread where threadid between ".$startat." AND ".$endat." AND (views > 1000 OR replycount > 1000) AND visible = '1' AND open = '1' AND forumid NOT IN ('1', '2', '3', '4', '5') ORDER by views DESC";