Dear Sir,
How to implement a simple search box at the top-right corner of a MyBB powered forum based on MyBB’s search.php?
I am interested in just simple code to execute search.php with search keywords. (No CSS edit or any Plugin)
I would appreciate your effort.
(2013-11-30, 08:08 AM).m. Wrote: [ -> ]see search box in header
thanks but as stated above i want search box at top-right corner not in the center & above the logo.
well, you can use code like below in the
header template (can be just after
container div beginning)
<div style="float: right;">
<table border="0" cellspacing="1" cellpadding="4" class="tborder">
<tr>
<td class="mysearch"><strong>Search</strong> <span class="smalltext"><a href="{$mybb->settings['bburl']}/search.php">(advanced search)</a></span></td>
</tr>
<tr>
<td class="trow1" align="center">
<form method="post" action="{$mybb->settings['bburl']}/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="textboxse" name="keywords" value="" />
<input type="submit" class="button" value="Go" />
</form>
</td>
</tr>
</table>
</div>