REGISTER or LOGIN to have the annoying ads removed.
Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] How To Move Member List Search To The Header
#1
Big Grin 
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

#2
Thanks mate.
Smile
#3
You are indeed welcome.

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



Possibly Related Threads...
Thread Author Replies Views Last Post
  [Ask]separate mybb forum to wordpress header? TaligsikDako 0 3,884 Sep 10, 2010, 09:32 PM
Last Post: TaligsikDako
  How To Add Extra Links To Your Header Kaleb 10 9,261 Sep 05, 2010, 11:17 AM
Last Post: Kaleb
  Header image sebastiaankop 5 5,139 Feb 19, 2010, 12:07 PM
Last Post: euantor
  Need help with my header link itsmie 2 2,704 Dec 30, 2009, 09:58 PM
Last Post: Starnova
  How to pup up the search part Muhammad 2 2,024 Jun 27, 2009, 09:47 AM
Last Post: Muhammad

Forum Jump:


Users browsing this thread: 1 Guest(s)