Bạn ghé thăm diễn đàn lần đầu? hãy đăng ký ngay bây giờ để tham gia.
  • Đăng nhập:

Chào mừng bạn đến với ITVNN FORUM - Diễn đàn công nghệ thông tin.

Nếu đây là lần đầu tiên bạn tham gia diễn đàn, xin mời bạn xem phần Hỏi/Ðáp để biết cách dùng diễn đàn. Để có thể tham gia thảo luận bạn phải đăng ký làm thành viên, click vào đây để đăng ký.


  • Partner Area
    • ITVNN HOSTING - Thiết kế website, Cung cấp Domain, Hosting, VPS Việt Nam Anh Hùng - Thông tin truyền thông
kết quả từ 1 tới 1 trên 1
Tăng kích thước phông chữ Giảm kích thước phông chữ
  1. #1
    s0ct0j0c's Avatar
    Banned

    Trạng thái
    Offline
    Họ tên
    Kiều Sơn Lâm
    Tham gia ngày
    Jan 2011
    Thành viên thứ
    36613
    Đến từ
    TP.HCM
    Tuổi
    31
    Giới tính
    Bài gởi
    454
    Level: 41 [?]
    Experience: 2,216,315
    Next Level: 2,530,022
    Cảm ơn 91
    Cảm ơn 89 lần / 68 Bài viết

    Default alternate sidebar: members online now  

    this sidebar will load avatars for your online members rather than the default text link. i thought the members would like being able to see at a glance whos online, rather than see a list of text. member feedback has been positive.

    what makes this sidebar different than the other available avatar sidebars is the following:


    • the smallest avatars are loaded.
    • staff and moderators will not reappear in 'members' (they already show in 'staff online').
    • people you follow will not reappear in 'members' (they already show in 'people you follow').
    • tooltip on mouseover with the members name.

    those worried about this bloating out the page:


    • the avs are an average of 5KiB in size.
    • the avs are cached by your regulars.
    • the number of avs listed is configurable via the acp.

    (beta 5) in template sidebar_online_users:

    replace all code with:

    PHP Code: 
    <xen:edithint template="sidebar.css" />
    <
    xen:if hascontent="true">
        <!-- 
    blocksidebar_online_staff -->
        <
    div class="section staffOnline avatarList">
            <
    div class="secondaryContent">
                <
    h3>{xen:phrase staff_online_now}</h3>
                <
    ul>
                    <
    xen:contentcheck>
                        <
    xen:foreach loop="$onlineUsers.records" value="$user">
                            <
    xen:if is="{$user.is_moderator} OR {$user.is_admin}">
                                <
    li>
                                    <
    xen:avatar user="$usersize="s" img="true" />
                                    <
    xen:username user="$userrich="true" />
                                    <
    div class="userTitle">{xen:helper userTitle$user}</div>
                                </
    li>
                            </
    xen:if>
                        </
    xen:foreach>
                    </
    xen:contentcheck>
                </
    ul>
            </
    div>
        </
    div>
        <!-- 
    end blocksidebar_online_staff -->
    </
    xen:if>
    <!-- 
    blocksidebar_online_users -->
    <
    div class="section membersOnline userList">
        <
    div class="secondaryContent">
            <
    h3><a href="{xen:link online}" title="{xen:phrase see_all_online_users}">{xen:phrase members_online_now}</a></h3>
            <
    xen:if is="{$onlineUsers.records}">
                <
    xen:if is="{$visitor.user_id}">
                    <
    xen:if hascontent="true">
                    <
    h4 class="minorHeading"><a href="{xen:link account/following}">{xen:phrase people_you_follow}:</a></h4>
                    <
    ul class="followedOnline">
                        <
    xen:contentcheck>
                            <
    xen:foreach loop="$onlineUsers.records" value="$user">
                                <
    xen:if is="{$user.followed}">
                                    <
    li title="{$user.username}class="Tooltip"><xen:avatar user="$usersize="s" img="true" class="_plainImage" /></li>
                                </
    xen:if>
                            </
    xen:foreach>
                        </
    xen:contentcheck>
                    </
    ul>
                    <
    h4 class="minorHeading"><a href="{xen:link members}">{xen:phrase members}:</a></h4>
                    </
    xen:if>
                </
    xen:if>
                <
    ol class="followedOnline">
                    <
    xen:foreach loop="$onlineUsers.records" value="$useri="$i">
                        <
    xen:if is="{$i} <= {$onlineUsers.limit}">
                      <
    xen:if is="!{$user.is_moderator} OR !{$user.is_admin}">
                      <
    xen:if is="!{$user.followed}">
                                <
    xen:if is="{$user.user_id}">
                      <
    li title="{$user.username}class="Tooltip"><xen:avatar user="$usersize="s" img="true" class="_plainImage" /></li>
                    <
    xen:else />
                                    {
    xen:phrase guest}<xen:if is="{$i} < {$onlineUsers.limit}">,</xen:if>
                                </
    xen:if>
                  </
    xen:if>
                  </
    xen:if>
                        </
    xen:if>
                    </
    xen:foreach>
                    <
    xen:if is="{$onlineUsers.recordsUnseen}">
                        <
    li class="moreLink">... <a href="{xen:link online}" title="{xen:phrase see_all_visitors}">{xen:phrase and_x_more'count={xen:number $onlineUsers.recordsUnseen}'}</a></li>
                    </
    xen:if>
                </
    ol>
            </
    xen:if>
            <
    div class="footnote">
                {
    xen:phrase online_now_x_members_y_guests_z'total={xen:number $onlineUsers.total}''members={xen:number $onlineUsers.members}''guests={xen:number $onlineUsers.guests}'}
            </
    div>
        </
    div>
    </
    div>
    <!-- 
    end blocksidebar_online_users --> 




    if you are using jaxels portal you will want to also edit his module template.

    in template EWRporta_Block_OnlineUsers:

    replace the entire template with the following:

    PHP Code: 
          <xen:if hascontent="true">
        <
    div class="section staffOnline avatarList">
            <
    div class="secondaryContent">
                <
    h3>{xen:phrase staff_online_now}</h3>
                <
    ul>
                    <
    xen:contentcheck>
                        <
    xen:foreach loop="$OnlineUsers.records" value="$user">
                            <
    xen:if is="{$user.is_moderator} OR {$user.is_admin}">
                                <
    li>
                                    <
    xen:avatar user="$usersize="s" img="true" />
                                    <
    a href="{xen:link members, $user}" class="username">{xen:helper richUserName$user}</a>
                                    <
    div class="userTitle">{xen:helper userTitle$user}</div>
                                </
    li>
                            </
    xen:if>
                        </
    xen:foreach>
                    </
    xen:contentcheck>
                </
    ul>
            </
    div>
        </
    div>
    </
    xen:if>

    <
    div class="section membersOnline userList">
        <
    div class="secondaryContent">
            <
    h3><a href="{xen:link online}" title="{xen:phrase see_all_online_users}">{xen:phrase members_online_now}</a></h3>

            <
    xen:if is="{$OnlineUsers.records}">

                <
    xen:if is="{$visitor.user_id}">
                    <
    xen:if hascontent="true">
                    <
    h4 class="minorHeading"><a href="{xen:link account/following}">{xen:phrase people_you_follow}:</a></h4>
                    <
    ul class="followedOnline">
                        <
    xen:contentcheck>
                            <
    xen:foreach loop="$OnlineUsers.records" value="$user">
                                <
    xen:if is="{$user.followed}">
                                    <
    li title="{$user.username}class="Tooltip"><xen:avatar user="$usersize="s" img="true" class="_plainImage" /></li>
                                </
    xen:if>
                            </
    xen:foreach>
                        </
    xen:contentcheck>
                    </
    ul>
                    <
    h4 class="minorHeading"><a href="{xen:link members}">{xen:phrase members}:</a></h4>
                    </
    xen:if>
                </
    xen:if>

                <
    ul class="followedOnline">
                    <
    xen:foreach loop="$OnlineUsers.records" value="$useri="$i">
                        <
    xen:if is="{$i} <= {$OnlineUsers.limit}">
            <
    xen:if is="!{$user.is_moderator} OR !{$user.is_admin}">
            <
    xen:if is="!{$user.followed}">
                            <
    xen:if is="{$user.user_id}">
             <
    li title="{$user.username}class="Tooltip"><xen:avatar user="$usersize="s" img="true" class="_plainImage" /></li>
                            <
    xen:else />
                                {
    xen:phrase guest}<xen:if is="{$i} < {$OnlineUsers.limit}">,</xen:if>
                            </
    xen:if>
                    </
    xen:if>
                  </
    xen:if>
                        </
    xen:if>
                    </
    xen:foreach>
                    <
    xen:if is="{$OnlineUsers.recordsUnseen}">
                        <
    li class="moreLink">... <a href="{xen:link online}" title="{xen:phrase see_all_visitors}">{xen:phrase and_x_more'count={xen:number $OnlineUsers.recordsUnseen}'}</a></li>
                    </
    xen:if>
                </
    ul>
            </
    xen:if>

            <
    div class="footnote">
                {
    xen:phrase online_now_x_members_y_guests_z'total={xen:number $OnlineUsers.total}''members={xen:number $OnlineUsers.members}''guests={xen:number $OnlineUsers.guests}'}
            </
    div>
        </
    div>
    </
    div


 

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Trả lời: 0
    Bài mới gởi: 31-03-2016, 02:02 PM
  2. Trả lời: 0
    Bài mới gởi: 03-09-2015, 03:18 PM
  3. [Add-ons] G.1404 : Online Members with Usergroup Name v1.0.0 Beta 1
    By Tiểu Bá Vương 1404 in forum v4.x Modifications
    Trả lời: 5
    Bài mới gởi: 02-02-2012, 12:08 AM
  4. Prevent Groups From Viewing Members Online Now List
    By s0ct0j0c in forum Add-ons and Modifications
    Trả lời: 0
    Bài mới gởi: 21-04-2011, 02:58 PM
  5. TW7S - Alternate Attachment View
    By admin in forum v4.0.x Modifications
    Trả lời: 0
    Bài mới gởi: 27-11-2010, 10:20 AM

Tags for this Thread

Bookmarks

Quuyền Hạn Của Bạn

  • Bạn không thể tạo chủ đề mới
  • Bạn không thể trả lời bài viết
  • Bạn không thể gửi file đính kèm
  • Bạn không thể chỉnh sửa bài viết
  •