MyBB Central

Full Version: Search Box
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
How do i add a search box in the header like this:
http://www.supportforums.net/index.php

Thank you.
Add this code in your header templates in header.

Code:
<div id="container">
        <a name="top" id="top"></a>
        <div id="header">
<div style="float:right;">
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="thead"><strong>Search</strong> <span class="smalltext"><a href="search.php">(advanced search)</a></span></td>
</tr>
<tr>
<td class="trow1" align="center">
<form method="post" action="/search.php">
<input type="hidden" name="action" value="do_search" />
<input type="hidden" name="postthread" value="1" />
<input type="hidden" name="forums" value="all" />
<input type="hidden" name="showresults" value="threads" />
<input type="text" class="textbox" name="keywords" value="" />
<!-- start: gobutton -->
<input type="submit" class="button" value="Go" />
<!-- end: gobutton -->
</form>
</td>
</tr>
</table>
</div>

Make sure this gos above ur logo line.
Thank you, onyx it work'd perfectly.
I thought it might Wink