Go Back   vb.org Archive > vBulletin Modifications > vBulletin 3.8 Modifications > vBulletin 3.8 Template Modifications
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Improve your Members List Details »»
Improve your Members List
Version: 1.00, by Sofia Sofia is offline
Developer Last Online: Aug 2012 Show Printable Version Email this Page

Category: Mini Mods - Version: 3.8.x Rating:
Released: 05-28-2009 Last Update: Never Installs: 154
Re-useable Code Translations  
No support by the author.

Improve your Members List



Description:

This mod allows you to improve your members list.

https://vborg.vbsupport.ru/vborg_mis...hreadid=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










In your template "memberlist"

Find:

HTML Code:
<body>
$header
$navbar


Add below:


HTML Code:
<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:


HTML Code:
<!-- 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:

HTML Code:
    <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







In the template "memberlist_resultsbit"

Find:

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


Replace by:


HTML Code:
<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: https://vborg.vbsupport.ru/showpost....97&postcount=7


Quick Search in the Navbar








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

Find:

HTML Code:
        <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:

HTML Code:
<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>

Screenshots

File Type: png 1.png (156.2 KB, 0 views)
File Type: png 2.png (24.4 KB, 0 views)
File Type: png 3.png (33.8 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #12  
Old 06-16-2009, 12:57 PM
idoL1 idoL1 is offline
 
Join Date: Feb 2009
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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??
Reply With Quote
  #13  
Old 06-16-2009, 01:22 PM
New Joe's Avatar
New Joe New Joe is offline
 
Join Date: May 2009
Posts: 1,128
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What vB Version are you using?

On my Version 3.8.2 I followed every thing that was said and it worked fine.
Reply With Quote
  #14  
Old 06-16-2009, 05:05 PM
somailhm somailhm is offline
 
Join Date: May 2009
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

nice addons Sofia
Reply With Quote
  #15  
Old 06-16-2009, 08:32 PM
idoL1 idoL1 is offline
 
Join Date: Feb 2009
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #16  
Old 06-18-2009, 02:58 AM
idoL1 idoL1 is offline
 
Join Date: Feb 2009
Posts: 24
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #17  
Old 06-19-2009, 12:24 AM
Brathamike Brathamike is offline
 
Join Date: Mar 2009
Posts: 99
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #18  
Old 07-23-2009, 07:58 PM
sherwood sherwood is offline
 
Join Date: May 2008
Location: United Kingdom
Posts: 84
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome.

Thank you.
Reply With Quote
  #19  
Old 08-06-2009, 11:28 PM
theksmith theksmith is offline
 
Join Date: Jul 2009
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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:
HTML Code:
<h1>$prepared[musername] $prepared[onlinestatus]</h1>

to this:
HTML Code:
<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 -->
Reply With Quote
  #20  
Old 08-16-2009, 11:14 PM
bmckinley's Avatar
bmckinley bmckinley is offline
 
Join Date: Jun 2009
Location: Texas
Posts: 111
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Sofia and others. Installed and installed the extra suggestions. Good job.
Reply With Quote
  #21  
Old 08-17-2009, 07:30 AM
yotsume's Avatar
yotsume yotsume is offline
 
Join Date: Dec 2006
Posts: 844
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very nice. I will tag this and think about adding it to my site as membership grows.. and grows and grows.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:07 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.07458 seconds
  • Memory Usage 2,402KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (10)bbcode_html
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete