PDA

View Full Version : Remove the SEARCH BAR???


PjDaBadMan
04-30-2010, 10:53 PM
is it possible to just flat out remover the search bar from the forum navbar?

borbole
04-30-2010, 11:01 PM
is it possible to just flat out remover the search bar from the forum navbar?

At the navbar template, find and remove the following code:

<vb:if condition="$vboptions['enablesearches']">
<div id="globalsearch" class="globalsearch">
<form action="search.php?do=process" method="post" id="navbar_search" class="navbar_search">
<input type="hidden" name="s" value="{vb:raw session.sessionurl}" />
<input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
<input type="hidden" name="do" value="process" />
<span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>
<span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search.png" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>
</form>
<ul class="navbar_advanced_search">
<li><a href="search.php{vb:raw session.sessionurl_q}">{vb:rawphrase advanced_search}</a></li>
</ul>
</div>
</vb:if>


or comment it out by placing the block of code above between: <vb:comment>....</vb:comment>

Hope it helps.

PjDaBadMan
04-30-2010, 11:14 PM
THanks ALOT

borbole
04-30-2010, 11:16 PM
THanks ALOT

You are welcome.

Peafor
04-11-2013, 09:45 AM
This really helped me too, I've been trying to work out how to do it. So thanks very much.

LacieTokki
10-02-2016, 03:06 AM
Where is the navbar template?

MarkFL
10-02-2016, 03:21 AM
Where is the navbar template?

Rather than hack your template (which you would have to do for all parent styles), vBulletin has given you a way to remove the search bar. If you notice the HTML that adds the bar is already wrapped in a template conditional using a setting.

So, all you have to do to remove the search bar is follow:

AdminCP -> Settings -> Options -> Message Searching Options

and set the first option labelled "Search Engine Enabled" to "No"...this way you can add it back later simply by changing this option back to "Yes" whenever you want, without having to edit or revert any templates. Easy Peasy! :)

webmastersun
10-02-2016, 07:47 AM
Where is the navbar template?

Your Admincp / Style Manager / Style variable editior / edit templates/ Navigation /breadcrumb temples / Nav

This is the place you can find the navbar template.

Steve English
06-20-2017, 04:13 AM
Rather than hack your template (which you would have to do for all parent styles), vBulletin has given you a way to remove the search bar. If you notice the HTML that adds the bar is already wrapped in a template conditional using a setting.

So, all you have to do to remove the search bar is follow:

AdminCP -> Settings -> Options -> Message Searching Options

and set the first option labelled "Search Engine Enabled" to "No"...this way you can add it back later simply by changing this option back to "Yes" whenever you want, without having to edit or revert any templates. Easy Peasy! :)

Thanks Mark - I could not "like" the post but wanted to acknowledge you.

webnsn
05-24-2021, 09:47 AM
Rather than hack your template (which you would have to do for all parent styles), vBulletin has given you a way to remove the search bar. If you notice the HTML that adds the bar is already wrapped in a template conditional using a setting.

So, all you have to do to remove the search bar is follow:

AdminCP -> Settings -> Options -> Message Searching Options

and set the first option labelled "Search Engine Enabled" to "No"...this way you can add it back later simply by changing this option back to "Yes" whenever you want, without having to edit or revert any templates. Easy Peasy! :)

Done, thank you.
I was looking from long time, because this function is not useful.