The Arcive of vBulletin Modifications Site. |
|
Navtab Search Box with Options Details »»
|
|||||||||||||||||||||||||||||
Create search navtab across all skins, remove search from navbar, disable search box for guests, increase rate of accidental ad clicks due to search being right above ads.
Plugin PHP Code: The code in green is where you can disable search for guests. The code in red is where you can move the template hook per Allan's Guide. Code:
// change $allowguests from 'true' to 'false' if you do NOT want guests to see the gallery menu
$allowguests = false;
/******** NO EDITS below here! ************/
/******************************************/
if ($show['member'] OR $allowguests)
{
global $vbphrase, $vbulletin, $bbuserinfo;
$sess = $vbulletin->session->vars['sessionurl_q'];
$template_hook['navbar_after_community'] .= '
<li class="popupmenu nohovermenu forumsearch menusearch" id="forumsearch">
etc...
To remove search from the navbar: AdminCP/Styles and Templates/ Style Manager / Edit Templates / Navigation and Breadcrumb Templates / navbar In navbar delete the following code: Code:
<vb:if condition="$vboptions['enablesearches']">
<div id="globalsearch" class="globalsearch">
<form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search">
<vb:comment><input type="hidden" name="s" value="{vb:raw session.sessionurl}" /></vb:comment>
<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<vb:if condition="$stylevar['textdirection'] == 'rtl'">_rtl</vb:if>.<vb:if condition="(is_browser('ie') AND !is_browser('ie', 7) AND !is_browser('ie', 8))">gif<vb:else />png</vb:if>" 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}" accesskey="4">{vb:rawphrase advanced_search}</a></li>
</ul>
</div>
</vb:if>
I'll add another product later that disables the search bar in navtab for you. Download Now
Show Your Support
|
|||||||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
Hello, Please I would Like to know how do i change the font colors of show posts and advance search because it doesn't appear properly?
See attachment. Thanks Attachment 130456 |
|
#3
|
||||
|
||||
|
Quote:
If you do not want white font, please take a look at the pic attachments. They show where and how to change the colors of Show Threads, Show Posts and Advanced Search. |
| Благодарность от: | ||
| AttalaEA | ||
|
#4
|
|||
|
|||
|
Thank You Octavius for your kind and amazing support.
|
|
#5
|
||||
|
||||
|
Thanks but I haven't figured out how to remove the default Search button through use of a product yet. I will later. I also had to go back and edit the 'how to remove default search box' code.
|
|
#6
|
|||
|
|||
|
Looks like it is not working now in 4.2.0 unless I have overlooked something.
|
|
#7
|
|||
|
|||
|
Any update on getting this working 4.2.0 ?
|
|
#8
|
|||
|
|||
|
Need mod remove Advanced Search Bar without manual template edit, is it possible to just flat out remover the search bar from the forum navbar?
|
|
#9
|
||||
|
||||
|
Would like to use this on 4.2 but can't get it to work. Also how would I move it to be placed on the far right of the navbar row?
|
|
#10
|
|||
|
|||
|
any update why this does not work with 4.2? thanks
|
![]() |
|
|
| X vBulletin 3.8.12 by vBS Debug Information | |
|---|---|
|
|
More Information |
|
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|