You can change the first line in the threads query back to the way it was (removing the
AND forumid!=XX).
Then look for this line of code:
PHP Code:
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 ORDER BY parentid,displayorder');
Replace that with:
PHP Code:
$forums=$DB_site->query('SELECT * FROM forum WHERE displayorder<>0 AND active=1 AND forumid!=XX AND forumid!=YY ORDER BY parentid,displayorder');
Then just change XX and YY there to the forum ids.