hi kars,
well i can tell you a primitive method to exclude certain forums, maybe that will help you
just replace:
PHP Code:
$randthread = $DB_site->query_first("SELECT threadid,title,replycount
FROM thread
ORDER BY RAND() LIMIT 1");
with
PHP Code:
$forumexclude="AND forumid!=8 AND forumid!=34"; // modify to suit
$randthread = $DB_site->query_first("SELECT threadid,title,replycount
FROM thread
WHERE thread.open!=10 $forumexclude
AND visible
ORDER BY RAND() LIMIT 1");
as you can see ive also added so that moved threads will not be selected and only visible threads are shown.
greets
tina
ps. if anyone knows are more elegant way for this, please feel free to correct me