View Full Version : Better Member Search Option

28 Feb 2006, 04:03
Better Member Search Option

To many times our members get a little lost trying to search for a specific member. They just want to get to the search box and enter the username and have it right there. They don't like to browse the lists. Unfortunately to get to it, you have to first click the memberslist link, and then in that page find the search memberbox way over on the right. Newbies get lost easily trying to find that. I also hate clicking that extra screen just to get to it.

So now there is a better way. Give them the choice right up front on how they want to search.

I had to create two new phrases because the phrases used off the memberlist page is specific to only that page, so two globals need to be created first. Then its one template edit and your done. 2 minutes.

1) Create 2 global phrases
2) 1 Template Edit

Template that are edited



First create two new global phrases.

Var: member_search
Text Member Search

Var: browse_members
Text: Browse Memberlist

In Template navbar
<td class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[members_list]</a></td>

Replace with:
<td id="mem_search" class="vbmenu_control"><a href="memberlist.php$session[sessionurl_q]">$vbphrase[member_search]</a> <script type="text/javascript"> vbmenu_register("mem_search"); </script></td>

In Template navbar


Below that Add:

<!-- memberlist quick search form -->
<div class="vbmenu_popup" id="mem_search_menu" style="display:none">
<form action="memberlist.php" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr><td class="thead">$vbphrase[member_search]</td></tr>
<tr><td class="vbmenu_option" title="nohilite">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="do" value="getall" />
<input type="text" class="bginput" name="ausername" size="20" value="$ltr" title="$vbphrase[username]" />$gobutton
<tr><td class="vbmenu_option"><a href="memberlist.php?$session[sessionurl]do=search">$vbphrase[advanced_search]</a></td></tr>
<tr><td class="vbmenu_option"><a href="memberlist.php">$vbphrase[browse_members]</a></td></tr>
<!-- / memberlist quick search form -->

Thats it your done.



28 Feb 2006, 05:35
Hey nice idea, could you add the member search in the drop down from the search button it self.

28 Feb 2006, 06:04
first to install W0hoooo!

28 Feb 2006, 10:44
Cool ! Installs I know my members will like it better than the old member list/search buttons

28 Feb 2006, 12:09
can you a * search ?

28 Feb 2006, 18:46

This is actually already on this site some where m8
Do a search, not sure the term to use though, see my image :)

Hey nice idea, could you add the member search in the drop down from the search button it self.

Oblivion Knight
28 Feb 2006, 19:08


28 Feb 2006, 20:46
Ya, I saw the one where it was moved into the forum search, but I like the way I did it better. Keeps them labeled upfront on the list. Some members may not find the Membersearch as easily within forum search. You already have the memberlist link in the navbar by default, and this just converts it.

To each is own.

01 Mar 2006, 01:28
I like the concept, but I think I would probly like to keep the search options within the one search drop down menu all together instead.

01 Mar 2006, 07:17

Hi m8...i wernt knocking yours m8, i posted that for the member in the
1st post as he was on about it... :)

01 Mar 2006, 19:58
Thanks :) awesome addon, have actually been looking for this.

02 Mar 2006, 16:25
Hey Wakko. It's WNxV!T0Z :)

Thanks for this. I installed it on my own forums: http://www.elusive-works.co.uk/forums/index.php