MyBB Central
[Tutorial] How To Move Member List Search To The Header - Printable Version

+- MyBB Central (http://www.mybbcentral.com)
+-- Forum: Archives (http://www.mybbcentral.com/forum-33.html)
+--- Forum: Mybb 1.4x Series Topics (http://www.mybbcentral.com/forum-26.html)
+---- Forum: Mybb 1.4x Theme and Template Releases (http://www.mybbcentral.com/forum-5.html)
+---- Thread: [Tutorial] How To Move Member List Search To The Header (/thread-5273.html)



[Tutorial] How To Move Member List Search To The Header - Kaleb - Jul 08, 2010

I had no idea where to put this, so if its wrong, report it and it shall be moved Tongue.

I feel this is a neccessity since it makes shit for sense that they would put the search form at the bottom of the page.

Start out by opening the members list template and search for the following.

Code:
<br style="clear: both;" />
<br />
<form method="post" action="memberlist.php">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<tr>
<td class="thead" colspan="3">
    <div class="float_right">
        <strong><a href="memberlist.php?action=search">{$lang->advanced_search}</a></strong>
    </div>
    <div><strong>{$lang->search_members}</strong></div>
</td>
</tr>
<tr>
    <td class="tcat"><strong><label for="username">{$lang->username}</label></strong></td>
    <td class="tcat"><strong><label for="website">{$lang->website}</label></strong></td>
    <td class="tcat"><strong><label for="sort">{$lang->sort_by}</label></strong></td>
</tr>
<tr>
    <td class="trow1" width="33%" style="vertical-align: top;">
        {$lang->contains}<br />
        <input type="text" class="textbox" name="username" id="username" style="width: 99%; margin-top: 4px;" value="{$search_username}" />
    </td>
    <td class="trow1" width="33%" style="vertical-align: top;">
        {$lang->contains}<br />
        <input type="text" class="textbox" name="website" id="website" style="width: 99%; margin-top: 4px;" value="{$search_website}" />
    </td>
    <td class="trow1" width="33%">
        <select name="sort" id="sort" style="width: 99%;">
            <option value="username"{$sort_selected['username']}>{$lang->sort_by_username}</option>
            <option value="regdate"{$sort_selected['regdate']}>{$lang->sort_by_regdate}</option>
            <option value="lastvisit"{$sort_selected['lastvisit']}>{$lang->sort_by_lastvisit}</option>
            <option value="postnum"{$sort_selected['postnum']}>{$lang->sort_by_posts}</option>
                        </select><br />
        <span class="smalltext">
        <input type="radio" class="radio" name="order" id="order_asc" value="asc"{$order_check['asc']} /> <label for="order_asc">{$lang->order_asc}</label><br />
        <input type="radio" class="radio" name="order" id="order_desc" value="desc"{$order_check['desc']} /> <label for="order_desc">{$lang->order_desc}</label>
        </span>
    </td>
</tr>
</table>
<div align="center"><br /><input type="submit" class="button" name="submit" value="{$lang->search}" /></div>
</form>


Cut it from its current location and paste it at the top below {$header}.


And holy shit your done. Any issues reply, and if your using a custom template mod, try finding your search code manually then move it.

Demo - http://therealitygaming.com/memberlist.php


RE: [Tutorial] How To Move Member List Search To The Header - Elite Dash - Jul 08, 2010

Thanks mate.


RE: [Tutorial] How To Move Member List Search To The Header - Kaleb - Jul 08, 2010

You are indeed welcome.


RE: [Tutorial] How To Move Member List Search To The Header - Kaleb - Aug 29, 2010

I thought i would knock this up. No sexual relation intended.