Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tutorial] How To Move Member List Search To The Header
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.

<br style="clear: both;" />
<br />
<form method="post" action="memberlist.php">
<table border="0" cellspacing="{$theme['borderwidth']}" cellpadding="{$theme['tablespace']}" class="tborder">
<td class="thead" colspan="3">
    <div class="float_right">
        <strong><a href="memberlist.php?action=search">{$lang->advanced_search}</a></strong>
    <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>
    <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 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 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>
<div align="center"><br /><input type="submit" class="button" name="submit" value="{$lang->search}" /></div>

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 -

Thanks mate.
You are indeed welcome.

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 4,194 Sep 10, 2010, 09:32 PM
Last Post: TaligsikDako
  How To Add Extra Links To Your Header Kaleb 10 10,581 Sep 05, 2010, 11:17 AM
Last Post: Kaleb
  Header image sebastiaankop 5 5,879 Feb 19, 2010, 12:07 PM
Last Post: euantor
  Need help with my header link itsmie 2 3,046 Dec 30, 2009, 09:58 PM
Last Post: Starnova
  How to pup up the search part Muhammad 2 2,342 Jun 27, 2009, 09:47 AM
Last Post: Muhammad

Forum Jump:

Users browsing this thread: 1 Guest(s)