vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Remove the SEARCH BAR??? (https://vborg.vbsupport.ru/showthread.php?t=241603)

PjDaBadMan 04-30-2010 10:53 PM

Remove the SEARCH BAR???
 
is it possible to just flat out remover the search bar from the forum navbar?

borbole 04-30-2010 11:01 PM

Quote:

Originally Posted by PjDaBadMan (Post 2029799)
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:

HTML 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:
HTML Code:

<vb:comment>....</vb:comment>
Hope it helps.

PjDaBadMan 04-30-2010 11:14 PM

THanks ALOT

borbole 04-30-2010 11:16 PM

Quote:

Originally Posted by PjDaBadMan (Post 2029815)
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

Quote:

Originally Posted by LacieTokki (Post 2576493)
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

Quote:

Originally Posted by LacieTokki (Post 2576493)
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

Quote:

Originally Posted by MarkFL (Post 2576494)
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

Quote:

Originally Posted by MarkFL (Post 2576494)
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.


All times are GMT. The time now is 05:42 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01179 seconds
  • Memory Usage 1,746KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_html_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete