Improve your Members List
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 1 của 1
  1. #1
    Thành Viên PandavB's Avatar
    Ngày tham gia
    Feb 2014
    Bài viết
    243
    Thanks
    1
    Thanked 13 Times in 11 Posts

    Icon14 Improve your Members List

    Description:

    This mod allows you to improve your members list.

    [Only registered and activated users can see links. ]

    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:
    PHP Code:
    <body>
    $header
    $navbar 

    Add below:

    HTML Code:
    PHP 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:
    PHP 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="$ltrtitle="$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:
    PHP 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







    [B]In the template "memberlist_resultsbit"
    [/B]
    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: [Only registered and activated users can see links. ]


    Quick Search in the Navbar








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


    Find:

    HTML Code:
    PHP 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="$ltrtitle="$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
    Hình Kèm Theo Hình Kèm Theo
    • File Type: png 1.png (11.9 KB, 11 lần tải)
    • File Type: png 2.png (13.0 KB, 11 lần tải)
    Khách viếng thăm hãy cùng PandavB xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!

 

 

Các Chủ đề tương tự

  1. Improve your Members List
    Bởi PandavB trong diễn đàn vBulletin 3.8 Template Modifications
    Trả lời: 0
    Bài viết cuối: 11-02-14, 02:15 PM
  2. Members who have visited today.
    Bởi PandavB trong diễn đàn vBulletin 4.x Add-ons
    Trả lời: 0
    Bài viết cuối: 11-02-14, 10:12 AM
  3. Free leech for clbgamesvn members ^^
    Bởi robocomy2k trong diễn đàn Releases
    Trả lời: 13
    Bài viết cuối: 18-05-11, 09:04 PM
  4. Xin items list và và moster list để Win SCP
    Bởi men293 trong diễn đàn Cabal Online
    Trả lời: 2
    Bài viết cuối: 09-10-10, 01:15 AM
  5. Các Members chú ý!
    Bởi Destruct trong diễn đàn Releases
    Trả lời: 0
    Bài viết cuối: 22-02-09, 02:37 PM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 03:07 PM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.