vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   making a navbar search. not using my input string (https://vborg.vbsupport.ru/showthread.php?t=238932)

Anseur 03-23-2010 04:51 PM

making a navbar search. not using my input string
 
So I'm making a skin and have added a searchobx to the navbar.

Here's my code for it.

HTML Code:

                        <td class="navsearch">
                                <form action="search.php?do=process" method="post">

                                        <input type="hidden" name="do" value="process" />
                                        <input type="hidden" name="quicksearch" value="1" />
                                        <input type="hidden" name="showposts" value="0" id="rb_nb_sp0" />
                                        <input type="hidden" name="childforums" value="1" />
                                        <input type="hidden" name="exactname" value="1" />
                                        <input type="hidden" name="s" value="$session[sessionhash]" />
                                        <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                                        <div style="float:left; width:166px;">$vbphrase[search]:<input type="text" class="bginput" name="query" size="18" tabindex="1005" /> </div><div style="float:right; padding:3px 1px 3px 1px;"><input type="image" src="$stylevar[imgdir_misc]/magnifier.png" type="submit" id="navbar_search1" alt="$vbphrase[search]"tabindex="1006" /></div>
<sc type="text/javascript"> vbmenu_register("navbar_search1",1); </sc>

                        </td>

(in my actual code I have script tags, not sc tags, but this forum wont accept my post if I include them inside the code tag)


it apears ok in my navbar, but it does not actualy pass my search string onto the next page. vB always comes up with the results as if you left the box blank and pressed the search button.

the default vb search box in the javascript dropdown is still present in the template and that works fine.

Anyone share any input on this?


All times are GMT. The time now is 10:03 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.01033 seconds
  • Memory Usage 1,719KB
  • 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
  • (1)bbcode_html_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (1)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