WNxWakko
02-27-2006, 10:00 PM
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.
Installation
1) Create 2 global phrases
2) 1 Template Edit
Template that are edited
navbar
---------------------
First create two new global phrases.
Global
Vbulletin
Var: member_search
Text Member Search
Global
Vbulletin
Var: browse_members
Text: Browse Memberlist
In Template navbar
Find:
<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
Find:
<!-- NAVBAR POPUP MENUS -->
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
</td></tr>
<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>
</table>
</form>
</div>
<!-- / memberlist quick search form -->
Thats it your done.
Screenshot
http://www.warriornation.net/wakko/screenshots/memsearch.gif
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.
Installation
1) Create 2 global phrases
2) 1 Template Edit
Template that are edited
navbar
---------------------
First create two new global phrases.
Global
Vbulletin
Var: member_search
Text Member Search
Global
Vbulletin
Var: browse_members
Text: Browse Memberlist
In Template navbar
Find:
<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
Find:
<!-- NAVBAR POPUP MENUS -->
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
</td></tr>
<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>
</table>
</form>
</div>
<!-- / memberlist quick search form -->
Thats it your done.
Screenshot
http://www.warriornation.net/wakko/screenshots/memsearch.gif