PDA

View Full Version : Header Search (vb.org search style)



admin
16-09-2009, 11:02 PM
This is a template mod similar to vb.org. Is not a copy since on your forums you have the same options, just move it to your header section or navbar, etc...

I added it right next to the logo

Install

Find the place where you want it to be and paste the following code...
Replace the name of your forums and their respective forum id's (option value)

Demo

http://www.eibuddy.com (http://www.eibuddy.com/)


<!-- forum search -->
<form action="search.php" method="post">
<input type="hidden" name="do" value="process" />
<input type="hidden" name="showposts" value="0" />
<input type="hidden" name="childforums" value="1" />
<input type="hidden" name="s" value="" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />

<table cellpadding="10" cellspacing="0" border="0" width="100%" align="center">
<tr><td align="right"><div style="white-space:nowrap">
<input type="text" class="bginput" name="query" size="25" /> <select name="forumchoice[]">
<option value="-1" selected="selected" class="time">All Forums</option>
<option value="5" class="time">Common Interest</option>
<option value="13" class="time">Cool Stuff</option>
<option value="8" class="time">Classifieds</option>
</select> <input name="search" value="Search" type="submit" class="bginput" />
</div></td></tr>
</table>

</form>
<!-- /forum search -->