MyBB Community Forums
Move Search To Top (Member List) [1.6 & 1.4] - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Resources (https://community.mybb.com/forum-8.html)
+--- Forum: Tutorials (https://community.mybb.com/forum-38.html)
+--- Thread: Move Search To Top (Member List) [1.6 & 1.4] (/thread-77693.html)

Pages: 1 2


Move Search To Top (Member List) [1.6 & 1.4] - Kaleb M - 2010-09-05

Live Example - http://www.drugforums.us/memberlist.php

Personally i think its odd that the member search is on the bottom of the memberlist page, but no worries we can fix that with ease.

Admin CP > Templates > *Your Theme* > Member List > Member List > Full Edit

Ctrl + F for "{footer}" and above you should see "</form>" copy that all the way up until you see "<br style="clear: both;" />" which is right below "{$multipage}" the final outcome should be this C+P
<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>
			<option value="referrals"{$sort_selected['referrals']}>{$lang->sort_by_referrals}</options>
		</select><br />
		<span class="smalltext">
		<input type="radio" class="radio" name="order" id="order_asc" value="ascending"{$order_check['ascending']} /> <label for="order_asc">{$lang->order_asc}</label><br />
		<input type="radio" class="radio" name="order" id="order_desc" value="descending"{$order_check['descending']} /> <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 then paste it below "{$header}". Thats it and i think it makes more sense now Cool.



Any issues please post and help shall come.

   



RE: Move Search To Top (Member List) [1.6 & 1.4] - Tom K. - 2010-09-05

Simple yet effective Smile


RE: Move Search To Top (Member List) [1.6 & 1.4] - Kaleb M - 2010-09-05

Thanks


RE: Move Search To Top (Member List) [1.6 & 1.4] - MarkW7 - 2010-10-18

Thank you. Done this on my site, i prefer it also. Smile


RE: Move Search To Top (Member List) [1.6 & 1.4] - Kaleb M - 2010-10-19

(2010-10-18, 10:14 PM)MarkW7 Wrote: Thank you. Done this on my site, i prefer it also. Smile

Your welcome.


RE: Move Search To Top (Member List) [1.6 & 1.4] - haytoch - 2010-11-10

Thank you very much .

I Use it here : www.bahi-education.com


RE: Move Search To Top (Member List) [1.6 & 1.4] - Kaleb M - 2012-03-29

(2010-11-10, 01:38 AM)haytoch Wrote: Thank you very much .

I Use it here : www.bahi-education.com

Sorry for the late reply but your sites down now! Anyways I see no shame in bumping a decent tutorial.


RE: Move Search To Top (Member List) [1.6 & 1.4] - MichaudĀ© - 2012-03-29

http://drugforums.us/memberlist.php

For another look at it.. Looks better and seems more user friendly.


RE: Move Search To Top (Member List) [1.6 & 1.4] - Kaleb M - 2012-03-31

(2012-03-29, 08:48 PM)MichaudĀ© Wrote: http://drugforums.us/memberlist.php

For another look at it.. Looks better and seems more user friendly.

I'll add that link to my OP since my board is down, thanks.


RE: Move Search To Top (Member List) [1.6 & 1.4] - invulner - 2012-12-15

Thank you mate, works great, and yes now is much better Big Grin

P.s maybe is ok for bump this thread could help alot of people who have problem with this Smile