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:

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

<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">
<td class="thead"><strong>Search</strong> <span class="smalltext"><a href="search.php">(advanced search)</a></span></td>
<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 -->

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