vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Mini Mods - Navtab Search Box with Options (https://vborg.vbsupport.ru/showthread.php?t=265829)

Leica.Robbiani 08-30-2012 01:59 PM

Hi there,

here's the way I did it on 4.2.0:

in template "navbar_tabs" find:

Code:

{vb:raw template_hook.navbar_after_links}
below add:

Code:

<li class="popupmenu nohovermenu forumsearch menusearch" id="forumsearch">
                                <h6><a href="javascript://" class="popupctrl">Search</a></h6>
                                <form action="search.php?do=process" method="get">
                                        <ul class="popupbody popuphover">
                                                <li><input type="text" class="searchbox" name="query" value="Search..." tabindex="1" /></li>
                                                <li class="formsubmit">
                                                        <input type="submit" class="button" value="Search" tabindex="2" />
                                                </li>
                                        <li class="formsubmit">
                                                <div class="submitoptions">
                                                        <label><input type="radio" name="showposts" value="0" checked="checked" /> Show Threads</label>
                                                        <label><input type="radio" name="showposts" value="1" /> Show Posts</label>
                                                </div>
                                                <div class="advancedsearchlink"><a href="search.php?">Advanced Search</a></div>

                                        </li>
                                </ul>
                                <input type="hidden" name="s" value="{vb:raw session.sessionhash}" />
                                <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                                <input type="hidden" name="do" value="process" />
                                <input type="hidden" name="contenttype" value="vBForum_Post" />
                                <input type="hidden" name="exactname" value="1" />
                                </form>
                        </li>

In template "navbar" find:

Code:

<ul class="navbar_advanced_search">
                                <li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li>
                                {vb:raw template_hook.navbar_advanced_search}
                        </ul>

Delete it.

Best regards

L.R.

bzcomputers 08-30-2012 04:11 PM

This solution above (Post #11) did not work for me - didn't show any Search link on NavBar.

Edit: the above code worked for me when added to template "navbar_tabs_enhanced" using vB 4.2 PL2

Any easy way to get this moved to the far right of the navbar?

bhantugh 08-30-2012 06:55 PM

thanks. I've decided to go back to v4.1

Leica.Robbiani 08-30-2012 07:18 PM

Hi there,

Quote:

Originally Posted by bzcomputers (Post 2361229)
Any easy way to get this moved to the far right of the navbar?

Do I understand right, you like just a replacemnt for the Advanced Search link?

You can do that:

In template "navbar" find:

Code:

<li><a href="search.php{vb:raw session.sessionurl_q}" accesskey="4">{vb:rawphrase advanced_search}</a></li>
Replace this with the code for the searchbox.

Best regards

L.R.

Ende1 02-27-2016 06:15 PM

is there any way to edit the normal search

from this

https://vborg.vbsupport.ru/external/2016/02/7.png

to this

https://vborg.vbsupport.ru/external/2016/02/8.png

with the code which was posted above? i don't want to use it with the navtab. i want to modify the regular search

Ende1 02-29-2016 10:10 PM

like this

https://vborg.vbsupport.ru/external/2016/02/1.gif

Ende1 05-15-2016 06:49 PM

Can someone help me with this please


All times are GMT. The time now is 02:16 PM.

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.01017 seconds
  • Memory Usage 1,737KB
  • 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
  • (4)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (7)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete