PDA

View Full Version : How to disable search in a specific forum?


ThorstenA
Tue 24th Jun '08, 4:55am
To disable searching a specific forum I did this:

(1) admincp > manage specific forum > disable searching new posts
(2) mysql > rebuild full text

Now in this forum the "search within this forum" link is still displayed. How can I remove this link using vbulletin build-in configuration? Thank you.

Wayne Luke
Tue 24th Jun '08, 11:23am
This is controlled with a template conditional in the default 3.7.X style. Make sure the code for the search drop down looks like this in your FORUMDISPLAY template:


<if condition="$show['forumsearch']">
<td class="vbmenu_control" id="forumsearch.subforums" nowrap="nowrap"><a href="search.php?$session[sessionurl]f=$foruminfo[forumid]" rel="nofollow">$vbphrase[search_this_forum]</a> <if condition="$show['quicksearch']"><script type="text/javascript"> vbmenu_register("forumsearch.subforums"); </script></if></td>
</if>

ThorstenA
Tue 24th Jun '08, 11:48am
I use standard templates and forumdisplay template has this conditional. I also deactivated "Search New Posts" from this forum via admincp > manage forum x. But forum search is still displayed.