ok lets try this:
First revert the changes you made in the code and instead of this find the line: (in search.php)
PHP Code:
$wheresql.=" AND thread.open<>10";
and replace it as:
PHP Code:
$wheresql.=" AND thread.open<>10 AND thread.forumid!=X";
There are 2 instances, one is for members, the other is for guest. If you want to exclude the forum for both of them, change the both lines.
Dont forget to replace X with your excluded forumid.
I guess this will do the trick now..