View Full Version : Search Box in NavBar?
interfx
03-24-2007, 05:37 PM
Anyone know how to easily create a search box directly into the NavBar? instead of a text link called "Search", want a text input box with "search" next to it?
Any ideas on this?
unitedpunjab
03-24-2007, 05:42 PM
<form action="http://www.yoursite.com/search.php" method="post">
<input type="text" class="bginput" style="font-size: 11px" name="query" value="Search" onFocus="if (this.value == 'Search') this.value = '';" />
<input type="submit" class="button" value="Go" />
<input type="hidden" name="s" value="" />
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="quicksearch" value="1" />
</form>
This should work.
interfx
04-16-2007, 08:31 PM
This worked very well... I added the following to specify the width of the search box.
style="width:210px;"
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.