So, basically, the code you are using here is for excluding forums only, right? If you don't want to exclude any forums, then we don't need any plug-ins at all. Or am I missing something (like I usually do)?
Quote:
Originally Posted by -=Sniper=-
Boofo; I just had a go at doing this for vb 3.5 and it worked
add a new plugin in the hook: search_process_start
use this code, very little change in the code.
PHP Code:
if ($exclude) { $zzzz_notforumchoice = ""; $zzzz_excludelist = explode(',', $exclude); foreach ($zzzz_excludelist AS $zzzz_key => $zzzz_excludeid) { $zzzz_notforumchoice .= intval($zzzz_excludeid).","; } $zzzz_notforumchoice = substr($zzzz_notforumchoice,0,-1); if ($showposts) { $post_query_logic[] = "thread.forumid NOT IN ($zzzz_notforumchoice)"; } else { $thread_query_logic[] = "thread.forumid NOT IN ($zzzz_notforumchoice)"; } }
then use exclude e.g. search.php?do=process&replyless=1&replylimit=0&day s=7&dontcache=1&searchdate=7&exclude=22,70,71,72
where the numbers are the forums you want to exclude.
|