Anseur
03-23-2010, 04:51 PM
So I'm making a skin and have added a searchobx to the navbar.
Here's my code for it.
<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?
Here's my code for it.
<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?