Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 General Discussions
  #1  
Old 04-30-2010, 10:53 PM
PjDaBadMan PjDaBadMan is offline
 
Join Date: Jan 2010
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Remove the SEARCH BAR???

is it possible to just flat out remover the search bar from the forum navbar?
Reply With Quote
  #2  
Old 04-30-2010, 11:01 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PjDaBadMan View Post
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.
Reply With Quote
  #3  
Old 04-30-2010, 11:14 PM
PjDaBadMan PjDaBadMan is offline
 
Join Date: Jan 2010
Posts: 76
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

THanks ALOT
Reply With Quote
  #4  
Old 04-30-2010, 11:16 PM
borbole's Avatar
borbole borbole is offline
 
Join Date: Jan 2010
Posts: 2,559
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by PjDaBadMan View Post
THanks ALOT
You are welcome.
Reply With Quote
  #5  
Old 04-11-2013, 09:45 AM
Peafor Peafor is offline
 
Join Date: Aug 2011
Posts: 8
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This really helped me too, I've been trying to work out how to do it. So thanks very much.
Reply With Quote
  #6  
Old 10-02-2016, 03:06 AM
LacieTokki LacieTokki is offline
 
Join Date: Oct 2016
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Where is the navbar template?
Reply With Quote
  #7  
Old 10-02-2016, 03:21 AM
MarkFL's Avatar
MarkFL MarkFL is offline
 
Join Date: Feb 2014
Location: St. Augustine, FL
Posts: 3,853
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LacieTokki View Post
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!
Reply With Quote
Благодарность от:
Lynne
  #8  
Old 10-02-2016, 07:47 AM
webmastersun's Avatar
webmastersun webmastersun is offline
 
Join Date: Oct 2013
Location: www.webmastersun.com
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by LacieTokki View Post
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.
Reply With Quote
  #9  
Old 06-20-2017, 04:13 AM
Steve English Steve English is offline
 
Join Date: Feb 2017
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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.
Reply With Quote
Благодарность от:
MarkFL
  #10  
Old 05-24-2021, 09:47 AM
webnsn webnsn is offline
 
Join Date: Oct 2009
Posts: 136
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by MarkFL View Post
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.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 07:07 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04653 seconds
  • Memory Usage 2,262KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_html
  • (6)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (2)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete