PDA

View Full Version : Mini Mods - Improve your Members List


Sofia
29 May 2009, 17:01
Improve your Members List




Description:

This mod allows you to improve your members list.


http://www.vbulletin.org/forum/vborg_miscactions.php?do=installhack&threadid=214846

There are 3 modifications :
You can add a little advanced search on members list index
In search results, you can add a dropdown menu on usernames with : View Public Proflic, Find all posts by ..., Find all thread by ..., Add... to Your Contacts
You can add a quick search in the search dropdown menu on the navbar.
Advanced search on members list index




https://www.vbulletin.org/forum/






In your template "memberlist"

Find:

<body>
$header
$navbar

Add below:

<form action="memberlist.php?do=getall" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="getall" />

<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center">
<tbody>
<tr align="center">

<td colspan="2" class="tcat">

<a style="float:$stylevar[right]" href="#top" onclick="return toggle_collapse('new_search_members')"><img id="collapseimg_new_search_members" src="$stylevar[imgdir_button]/collapse_tcat$vbcollapse[collapseimg_new_search_members].gif" alt="" border="0" /></a>
$vbphrase[members_list] - $vbphrase[search]

</td>

</tr>
</tbody>
<tbody id="collapseobj_new_search_members" style="$vbcollapse[collapseobj_new_search_members]">
<tr>

<td class="alt2" width="50%">

<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
$vbphrase[username]<br />
<input type="text" class="bginput" id="userfield_txt" size="15" name="ausername" value="" />
<if condition="$show['popups']">
<div id="userfield_menu" class="vbmenu_popup" style="display:none">
<script type="text/javascript" src="clientscript/vbulletin_ajax_namesugg.js?v=$vboptions[simpleversion]"></script>
<script type="text/javascript">
<!--
vbmenu_register('userfield', true);
snc = new vB_AJAX_NameSuggest('snc', 'userfield_txt', 'userfield');
//-->
</script>
</if>
<td>
$vbphrase[home_page]<br />
<input type="text" class="bginput" size="25" name="homepage" value="" />
</td>
</tr>
</table>

</td>
<td class="alt2" width="50%">
<strong>$vbphrase[last_post]</strong> ($vbphrase[please_use_format_yyyymmdd_hhmmss])
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
$vbphrase[is_after]<br />
<input type="text" class="bginput" size="20" name="lastpostafter" value="" />
</td>
<td>
$vbphrase[is_before]<br />
<input type="text" class="bginput" size="20" name="lastpostbefore" value="" />
</td>
</tr>

</table>
</td>
</tr>
<tr>
<td class="alt1" nowrap="nowrap" width="50%">

<strong>$vbphrase[post_count]</strong>
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
$vbphrase[is_greater_than_or_equal_to]<br />
<input type="text" class="bginput" size="26" name="postslower" value="" />
</td>
<td>
$vbphrase[is_less_than]<br />
<input type="text" class="bginput" size="26" name="postsupper" value="" />
</td>
</tr>
</table>

</td>
<td class="alt1" width="50%">
<strong>$vbphrase[join_date]</strong> ($vbphrase[please_use_format])
<table cellpadding="0" cellspacing="$stylevar[formspacer]" border="0">
<tr>
<td>
$vbphrase[is_after]<br />
<input type="text" class="bginput" size="20" name="joindateafter" value="" />
</td>
<td>
$vbphrase[is_before]<br />
<input type="text" class="bginput" size="20" name="joindatebefore" value="" />
</td>
</tr>

</table>
</tr>
<tr>
<td class="alt2" width="50%">

<strong>$vbphrase[order_results_by]</strong><br />
<select name="sort">
<option value="username" selected="selected">$vbphrase[username]</option>
<option value="joindate">$vbphrase[join_date]</option>
<option value="posts">$vbphrase[post_count]</option>
<option value="lastvisit">$vbphrase[last_visit]</option>
<if condition="$vboptions['reputationenable']">
<option value="reputation">$vbphrase[reputation]</option>
</if>
</select>
<select name="order">
<option value="">$vbphrase[in_ascending_order]</option>
<option value="DESC">$vbphrase[in_descending_order]</option>
</select>
</td>

<td class="alt2" width="50%">
$vbphrase[number_of_users_perpage]<br />
<input type="text" class="bginput" size="10" name="pp" value="$vboptions[memberlistperpage]" />
</td>
</tr>
<tr><td align="center" class="tcat" colspan="2">
<input type="submit" class="button" value="$vbphrase[search_now]" accesskey="s" />
<input type="reset" class="button" value="$vbphrase[reset_fields]" /><input type="button" class="button" value="$vbphrase[advanced_search]" OnClick="window.location.href='memberlist.php?$session[sessionurl]do=search'"></form>
</td> </tr>

</tbody>

</table>
</form>
<br />



In the same template, Find and delete:


<!-- memberlist quick search form -->
<div class="vbmenu_popup" id="memberlist_search_menu" style="display:none">
<form action="memberlist.php?do=getall" method="post">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$vbphrase[search_members]</td>
</tr>
<tr>
<td class="vbmenu_option" title="nohilite">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="getall" />
<input type="text" class="bginput" name="ausername" size="20" value="$ltr" title="$vbphrase[username]" />$gobutton
</td>
</tr>
<if condition="$show['advancedlink']">
<tr>
<td class="vbmenu_option"><a href="memberlist.php?$session[sessionurl]do=search">$vbphrase[advanced_search]</a></td>
</tr>
</if>
</table>
</form>
</div>
<!-- / memberlist quick search form -->Same template, Find and delete:

<if condition="!$show['usergroup']">
<td class="vbmenu_control" id="memberlist_search"><a href="memberlist.php?$session[sessionurl]do=search">$vbphrase[search_members]</a> <script type="text/javascript"> vbmenu_register("memberlist_search"); </script></td>
</if>





Dropdown Menu on usernames in search results





http://www.forum-test.fr/2.png



In the template "memberlist_resultsbit"

Find:

<tr align="center">
<td class="alt1Active" align="$stylevar[left]" id="u$userinfo">
<a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a>

Replace by:

<tr align="center">
<td class="alt1Active" align="$stylevar[left]">
<div id="new_memberlist_$userinfo[userid]"><a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a><script type="text/javascript"> vbmenu_register("new_memberlist_$userinfo[userid]"); </script></div>

<!-- search popup menu -->
<div class="vbmenu_popup" id="new_memberlist_$userinfo[userid]_menu" style="display:none;">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$userinfo[username]</td>
</tr>

<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$userinfo[userid]">View Public Profile</a></td></tr>

<if condition="$show['member']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]" rel="nofollow">Find all posts by $userinfo[username]</a></td></tr>
</if>
<if condition="$show['member']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]&amp;starteronly=1" rel="nofollow">Find all threads by $userinfo[username]</a></td></tr>
</if>
<if condition="$show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$userinfo[userid]">Add $userinfo[username] to Your Contacts</a></td></tr>
</if>

</table>
</div>
<!-- / search popup menu -->To add a PM link, see this post: http://www.vbulletin.org/forum/showpost.php?p=1829197&postcount=7


[U] Quick Search in the Navbar




https://www.vbulletin.org/forum/





In your template "navbar" (or header if you have custom style),

Find:

<if condition="$vboptions[threadtagging]">
<tr>
<td class="vbmenu_option"><a href="tags.php$session[sessionurl_q]" rel="nofollow">$vbphrase[tag_search]</a></td>
</tr>
</if>
<tr>
<td class="vbmenu_option"><a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a></td>
</tr>Add below:

<tr>
<td class="thead">Search Members</td>
</tr>

<td class="vbmenu_option" title="nohilite">
<form action="memberlist.php?do=getall" method="post">
<input type="hidden" name="s" value="$session[sessionhash]" />
<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
<input type="hidden" name="do" value="getall" />
<div><input type="text" class="bginput" name="ausername" size="20" value="$ltr" title="$vbphrase[username]" />$gobutton</div>
</td>
<tr>
<td class="vbmenu_option"><a href="memberlist.php?$session[sessionurl]do=search">Advanced Search Members</a></td>
</tr>

</form>

Brandon Sheley
29 May 2009, 17:37
nice addons Sofia :)

Sofia
29 May 2009, 18:25
nice addons Sofia :)

Hi Brandon, thank you :)

drsli
29 May 2009, 21:53
Thank you very much! :)

shinng
30 May 2009, 12:13
very nice modifications. installed

josh2007
01 Jun 2009, 03:40
wow i like it sofia :) installing

accludetuner
13 Jun 2009, 22:51
one typo...in "memberlist_resultsbit" it should say "View Public Profile" not "View Public Profil"

Also, I altered it to add "Send %username% A PM" on the meberslist drop down as well. In case anyone else wants to do this, here's my modified "memberslist_resultbit" which also includes the typo fix mentioned above.

<tr align="center">
<td class="alt1Active" align="$stylevar[left]">
<div id="new_memberlist_$userinfo[userid]"><a href="member.php?$session[sessionurl]u=$userinfo[userid]">$userinfo[musername]</a><script type="text/javascript"> vbmenu_register("new_memberlist_$userinfo[userid]"); </script></div>

<!-- search popup menu -->
<div class="vbmenu_popup" id="new_memberlist_$userinfo[userid]_menu" style="display:none;">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$userinfo[username]</td>
</tr>

<tr><td class="vbmenu_option"><a href="member.php?$session[sessionurl]u=$userinfo[userid]">View Public Profile</a></td></tr>

<if condition="$show['member']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$userinfo[userid]">Send $userinfo[username] a Private Message</a></td></tr>
</if>
<if condition="$show['member']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]" rel="nofollow">Find all posts by $userinfo[username]</a></td></tr>
</if>
<if condition="$show['member']">
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$userinfo[userid]&amp;starteronly=1" rel="nofollow">Find all threads by $userinfo[username]</a></td></tr>
</if>
<if condition="$show['member']">
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$userinfo[userid]">Add $userinfo[username] to Your Contacts</a></td></tr>
</if>

</table>
</div>
<!-- / search popup menu -->

Sofia
13 Jun 2009, 23:05
Hi, accludetuner. Thank you. Fixed ;)

idoL1
16 Jun 2009, 07:25
diddnt work for me..dunno why but none of my users show on the member list at all ? www.battle-icons.com thanks for the help hopefully!

New Joe
16 Jun 2009, 09:15
Great and works fine, followed your instructions and no problems.

idoL1
16 Jun 2009, 14:57
just went over the steps, again and i have done, with errors on page and my member list has 20 pages 970 members..but theres no table and it says its showing 1 to 50 resulsts of 970 but thats where the page cuts off n ends no table no list of members :( any ideas??

New Joe
16 Jun 2009, 15:22
What vB Version are you using?

On my Version 3.8.2 I followed every thing that was said and it worked fine.

somailhm
16 Jun 2009, 19:05
nice addons Sofia

idoL1
16 Jun 2009, 22:32
im on 3.8.3.....i even checked over it like 3 times n for some reason my member list doesnt show up the members are there..and the advanced search is there...but if i click a letter or anything theres no members showing it just says how many there are

idoL1
18 Jun 2009, 04:58
when i try n go to page 2 i get this - cannot open /forums/memberlist.php&order=asc&sort=username&page=2.
and my members dont show up on the list i just triple checked everything those lines are deleted n added i dunno what i did wrong =l

Brathamike
19 Jun 2009, 02:24
I will install when the bugs are fixed but looks great ill keep an eye on this mod
I have the latest version of VB and VBadvanced
thanks sofia

sherwood
23 Jul 2009, 21:58
Awesome.

Thank you. :)

theksmith
07 Aug 2009, 01:28
thanks for this, great job!

i did the mod for the drop-down menu on the memberlist in version 3.8.3 and no problems.

then i thought it would be a good idea to have the same functionality on the member's name on their profile page as well, so to do that...

edit the Member Info Templates > MEMBERINFO template.

change this line:
<h1>$prepared[musername] $prepared[onlinestatus]</h1>


to this:
<h1><div id="profile_username_$prepared[userid]" style="display:inline"><a href="#">$prepared[musername]</a></div> $prepared[onlinestatus]</h1>
<script type="text/javascript"> vbmenu_register('profile_username_$prepared[userid]', true); </script>

<!-- profile username popup menu -->
<div class="vbmenu_popup" id="profile_username_$prepared[userid]_menu" style="display:none;">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$prepared[musername]</td>
</tr>
<if condition="$show['member']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$prepared[userid]">Send $prepared[musername] a Private Message</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$prepared[userid]" rel="nofollow">Find all posts by $prepared[musername]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$prepared[userid]&amp;starteronly=1" rel="nofollow">Find all threads by $prepared[musername]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$prepared[userid]">Add $prepared[musername] to Your Contacts</a></td></tr>
</if>
</table>
</div>
<!-- / profile username popup menu -->

bmckinley
17 Aug 2009, 01:14
Thanks Sofia and others. Installed and installed the extra suggestions. Good job.

yotsume
17 Aug 2009, 09:30
Very nice. I will tag this and think about adding it to my site as membership grows.. and grows and grows. ;)

merk_aus
21 Aug 2009, 08:42
looks awesome thanks

gearspro
05 Sep 2009, 23:45
great, thanks alot :)

BigDog56
13 Sep 2009, 14:16
Thank you, it all seems to work ok except for some of the search results. the last post, join date and post count where you fill in the fields does not seem to work.

RedHacker
14 Sep 2009, 09:20
Thanks.. Sofia what Style are in Screenshot....?

With IE8 cant show members.....

RedHacker
14 Sep 2009, 18:20
Cant show 1st page

RedHacker
16 Sep 2009, 21:57
Cant show pages in List Members etg 1,3,5,7,9,11,13,15............

zombietom
18 Sep 2009, 04:09
Hello this seems to work find but i get a small error...can someone tell me how to correct it.
I'm using this on 3.7
i get this error on my memberlist page

"Webpage error details

Message: 'this.controlobj' is null or not an object
Line: 11
Char: 1384
Code: 0
URI: http://www.xxxxxxx/vbulletin_menu.js?v=371

"

Thanks

Also thanks theksmith --i added your code as well..works good on 3.7 -thanks

reddyink
03 Nov 2009, 22:27
I am interested in searching User Profile Field.

How can I do that?
What variable do I need to user. I don't need search for Home Page but would like to substitute with User_Profile_field

Thank you!

leodestroy
06 Nov 2009, 17:55
Hi! Thais mod use vB JS popup?

Kosmic1
14 Dec 2009, 13:00
This is a very nice mod. As always :)

But I have one question: How can I translate to Portuguese and keep it in english too??

The only way I see to translate is in the code...

bada_bing
26 Dec 2010, 22:25
thanks for this, great job!

i did the mod for the drop-down menu on the memberlist in version 3.8.3 and no problems.

then i thought it would be a good idea to have the same functionality on the member's name on their profile page as well, so to do that...

edit the Member Info Templates > MEMBERINFO template.

change this line:
<h1>$prepared[musername] $prepared[onlinestatus]</h1>


to this:
<h1><div id="profile_username_$prepared[userid]" style="display:inline"><a href="#">$prepared[musername]</a></div> $prepared[onlinestatus]</h1>
<script type="text/javascript"> vbmenu_register('profile_username_$prepared[userid]', true); </script>

<!-- profile username popup menu -->
<div class="vbmenu_popup" id="profile_username_$prepared[userid]_menu" style="display:none;">
<table cellpadding="4" cellspacing="1" border="0">
<tr>
<td class="thead">$prepared[musername]</td>
</tr>
<if condition="$show['member']">
<tr><td class="vbmenu_option"><a href="private.php?$session[sessionurl]do=newpm&amp;u=$prepared[userid]">Send $prepared[musername] a Private Message</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$prepared[userid]" rel="nofollow">Find all posts by $prepared[musername]</a></td></tr>
<tr><td class="vbmenu_option"><a href="search.php?$session[sessionurl]do=finduser&amp;u=$prepared[userid]&amp;starteronly=1" rel="nofollow">Find all threads by $prepared[musername]</a></td></tr>
<tr><td class="vbmenu_option"><a href="profile.php?$session[sessionurl]do=addlist&amp;userlist=buddy&amp;u=$prepared[userid]">Add $prepared[musername] to Your Contacts</a></td></tr>
</if>
</table>
</div>
<!-- / profile username popup menu -->

Does not work on vb 3.85

Ivelios
10 Jan 2011, 13:09
Works on vb 3.8, thx ^^