Question Ai biết có addon thống kế như thế này không?

Thảo luận trong 'Add-on Quesions' bắt đầu bởi ds2hope, 8/6/13.

1votes
5/5, 1 vote

  1. ds2hope

    ds2hope New Member

    Bài viết:
    22
    Likes :
    0
    Chào mọi người.
    Mình có tìm trên google và trên diễn đàn, nhưng không tìm được addon thống kê như thế này.
    Ai biết thì chỉ mình với nhé.
    cảm ơn.
     

    Các file đính kèm:

    Đang tải...
  2. Imma Kun

    Imma Kun Verified User

    Bài viết:
    1,298
    Likes :
    782
  3. H.B.T_Binh

    H.B.T_Binh Member

    Bài viết:
    108
    Likes :
    108
    Trước khi làm thì các bạn backup ra text để thay lại nếu lỗi nhé
    Thay toàn bộ code trong template theo các mẫu sau:
    VietXfAdvStats.css
    Mã:
    .VietXfAdvStats {
            @property "sectionMain";
            background-color: ivory;
            padding: 0;
            margin: 10px auto;
            border: 1px solid #C0E5F6;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            @property "/sectionMain";
    }
     
        .VietXfAdvStats h3 {
            @property "subHeading";
            font-size: 14px;
            color: #03416D;
            background-color: #EDF7FF;
            padding: 10px;
            margin: 0;
            border-top: 1px none black;
            border-bottom: 1px solid #CCC;
            @property "/subHeading";
     
            @property "categoryStrip";
            padding: 5px 10px;
            margin: 0;
            border-radius: 5px 5px 0 0;
            min-height: 6px;
            @property "/categoryStrip";
     
        }
     
            .VietXfAdvStats h3 .VietXfAdvStats_Header {
                @property "categoryStripTitle";
                font-weight: bold;
                font-size: 11pt;
                color: #006B9C;
                @property "/categoryStripTitle";
            }
     
            .VietXfAdvStats h3 .VietXfAdvStats_Controls {
                float: right;
                font-size: @categoryStripTitle.font-size;
            }
     
                .VietXfAdvStats h3 .VietXfAdvStats_Controls select {
                    margin-top: -3px;
                }
     
        #Block1st {
            float: left;
            width: @VietXfAdvStats_Block1stWidth;
                    padding:10px
        }
     
        #Block2nd {
            /*margin-left: {xen:calc '@VietXfAdvStats_Block1stWidth + 10'}px;*/
        }
     
            #Block1stPanes,
            #Block2ndPanes {
                padding: 10px 5px;
            }
     
            #Block1st .VietXfAdvStats_Block1stContent {
                padding-left: 25px;
                padding-right: 5px;
                line-height: 14px;
            }
            #Block2nd .VietXfAdvStats_Block2ndContent {
                padding-left: 5px;
                padding-right: 5px;
                line-height: 14px;
                   
            }
            #Block1st .VietXfAdvStats_Block1stContent{
                background: url(styles/default/xenforo/list.gif) no-repeat top left;
            }
     
    .VietXfAdvStats_Section {
        position: relative;
        zoom: 1;
    }
     
        .VietXfAdvStats_SectionItem {
            display: table;
            table-layout: fixed;
            width: 100%;
            word-wrap: normal;
            line-height: 1.6;
        }
     
            .VietXfAdvStats_SectionItem .VietXfAdvStats_SectionItemBlock {
                display: table-cell;
                vertical-align: middle;
            }
     
        .VietXfAdvStats_SectionItem .VietXfAdvStats_SectionItemTitle {
            @property "VietXfAdvStats_SectionItemTitleCss";
     
            @property "/VietXfAdvStats_SectionItemTitleCss";
        }
     
        .VietXfAdvStats_SectionItem .VietXfAdvStats_SectionItemInfo {
            @property "VietXfAdvStats_SectionItemInfoCss";
            font-size: 11px;
            text-align: right;
            @property "/VietXfAdvStats_SectionItemInfoCss";
        }
     
    /** IE <8 **/
    .VietXfAdvStats_SectionItem                              { *display: block; _vertical-align: bottom; }
    .VietXfAdvStats_SectionItem .listBlock                  { *display: block; *float: left; }
    .VietXfAdvStats_SectionItem .listBlock                  { _height: 52px; *min-height: 52px; } /* todo: should be calculation */
    .VietXfAdvStats_Section .VietXfAdvStats_SectionItemTitle { *width: 69.98%; }
    .VietXfAdvStats_Section .VietXfAdvStats_SectionItemInfo  { *width: 29.98%; }
     
    .VietXfAdvStats_SectionItem {
        border-bottom: 1px solid #eee;
    }
     
    /** USERS SECTION */
    .VietXfAdvStats_User {
    }
     
        .VietXfAdvStats_User .VietXfAdvStats_SectionItemTitle {
            width: {xen:if '{xen:calc '@VietXfAdvStats_UserNameWidth'} > 0', '@VietXfAdvStats_UserNameWidth', 'auto'};
        }
     
        .VietXfAdvStats_User .VietXfAdvStats_SectionItemInfo {
            width: {xen:if '{xen:calc '@VietXfAdvStats_UserInfoWidth'} > 0', '@VietXfAdvStats_UserInfoWidth', 'auto'};
        }
     
    /** THREADS SECTION */
    .VietXfAdvStats_Thread {
    }
     
        .VietXfAdvStats_Thread .VietXfAdvStats_ThreadTitle.new a {
            font-weight: bold;
        }
     
        .VietXfAdvStats_Thread .VietXfAdvStats_SectionItemTitle {
            width: {xen:if '{xen:calc '@VietXfAdvStats_ThreadTitleWidth'} > 0', '@VietXfAdvStats_ThreadTitleWidth', 'auto'};
        }
     
        .VietXfAdvStats_Thread .VietXfAdvStats_SectionItemInfo {
            width: {xen:if '{xen:calc '@VietXfAdvStats_ThreadInfoWidth'} > 0', '@VietXfAdvStats_ThreadInfoWidth', 'auto'};
                    border-left:1px solid #eee;
                    padding:0 5px;
                    color:#888;
        }
    VietXfAdvStats_threads
    Mã:
    <xen:require css="VietXfAdvStats.css" />
     
    <div class="this-is-a-wrapper-to-activate-our-js-correctly">
        <div class="VietXfAdvStats_Section VietXfAdvStats_Threads" data-typeMajor="threads" data-type="{$requested.type}" data-requestedAction="{$requested.action}" data-requestedParams="{$requested.params}">
            <xen:foreach loop="$threadsPrepared" value="$prepared">
                {xen:raw {$prepared}}
            </xen:foreach>
        </div>
        <div class="VietXfAdvStats_SectionItemBlock VietXfAdvStats_SectionItemInfo VietXfAdvStats_ThreadLastPoster">
            <xen:username user="$thread" rich="true" />
        </div>
    </div>
    VietxfAdvStats_threads_hot
    Mã:
    <div class="VietXfAdvStats_SectionItem VietXfAdvStats_Thread">
        <div class="VietXfAdvStats_SectionItemBlock VietXfAdvStats_SectionItemTitle VietXfAdvStats_ThreadTitle">
     
            <xen:if is="{$thread.isNew}">
            <img src="styles/default/xenforo/post_new.gif">
            </a>
            <xen:else />
            <img src="styles/default/xenforo/post_old.gif">
            </xen:if>
            <xen:if is="{$thread.prefix_id}">
                <xen:if is="{$linkPrefix}">
                    <a href="{xen:link forums, $forum, 'prefix_id={$thread.prefix_id}'}" class="prefixLink"
                        title="{xen:phrase show_only_threads_prefixed_by_x, 'prefix={xen:helper threadPrefix, $thread, plain, ""}'}">{xen:helper threadPrefix, $thread, html, ''}</a>
                <xen:else />
                    {xen:helper threadPrefix, $thread}
                </xen:if>
            </xen:if>
            <a href="{xen:link '{xen:if '{$thread.isNew}', 'threads/unread', 'threads'}', {$thread}}" class="{xen:if $thread.hasPreview, PreviewTooltip}"
                data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}">
                <xen:if is="@VietXfAdvStats_ThreadTitleChars > 0">
                    {xen:helper wordtrim, {$thread.title}, @VietXfAdvStats_ThreadTitleChars}
                <xen:else />
                    {$thread.title}
                </xen:if>
            </a>
        </div>
        <div class="VietXfAdvStats_SectionItemBlock VietXfAdvStats_SectionItemInfo VietXfAdvStats_ThreadLastPoster">
            <xen:username user="$thread" rich="true" />
        </div>
     
        <div class="VietXfAdvStats_SectionItemBlock VietXfAdvStats_SectionItemInfo VietXfAdvStats_ThreadViewCount">
            {xen:number {$thread.view_count}}
            {xen:if '{$thread.view_count} == 1', '{xen:phrase VietXfAdvStats_lowercase_view}', '{xen:phrase VietXfAdvStats_lowercase_views}'}
        </div>
    </div>
    VietxfAdvStats_threads_latest
    Mã:
    <div class="VietXfAdvStats_SectionItem VietXfAdvStats_Thread">
     
        <div class="VietXfAdvStats_SectionItemBlock VietXfAdvStats_SectionItemTitle VietXfAdvStats_ThreadTitle">
     
            <xen:if is="{$thread.isNew}">
     
            <img src="styles/default/xenforo/post_new.gif">
     
            </a>
     
            <xen:else />
     
            <img src="styles/default/xenforo/post_old.gif">
     
            </xen:if>
     
            <xen:if is="{$thread.prefix_id}">
     
                <xen:if is="{$linkPrefix}">
     
                    <a href="{xen:link forums, $forum, 'prefix_id={$thread.prefix_id}'}" class="prefixLink"
     
                        title="{xen:phrase show_only_threads_prefixed_by_x, 'prefix={xen:helper threadPrefix, $thread, plain, ""}'}">{xen:helper threadPrefix, $thread, html, ''}</a>
     
                <xen:else />
     
                    {xen:helper threadPrefix, $thread}
     
                </xen:if>
     
            </xen:if>
     
            <a href="{xen:link '{xen:if '{$thread.isNew}', 'threads/unread', 'threads'}', {$thread}}" class="{xen:if $thread.hasPreview, PreviewTooltip}"
     
                data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}">
     
                <xen:if is="@VietXfAdvStats_ThreadTitleChars > 0">
     
                    {xen:helper wordtrim, {$thread.title}, @VietXfAdvStats_ThreadTitleChars}
     
                <xen:else />
     
                    {$thread.title}
     
                </xen:if>
     
            </a>
     
        </div>
     
        <div class="VietXfAdvStats_SectionItemBlock VietXfAdvStats_SectionItemInfo VietXfAdvStats_ThreadLastPoster">
     
            <xen:username user="$thread" rich="true" />
     
        </div>
     
        <div class="VietXfAdvStats_SectionItemBlock VietXfAdvStats_SectionItemInfo VietXfAdvStats_ThreadViewCount">
     
            {xen:number {$thread.view_count}}
     
            {xen:if '{$thread.view_count} == 1', '{xen:phrase VietXfAdvStats_lowercase_view}', '{xen:phrase VietXfAdvStats_lowercase_views}'}
     
        </div>
     
     
     
    </div>
    VietxfAdvStats_threads_recent
    Mã:
    <div class="VietXfAdvStats_SectionItem VietXfAdvStats_Thread">
     
        <div class="VietXfAdvStats_SectionItemBlock VietXfAdvStats_SectionItemTitle VietXfAdvStats_ThreadTitle">
     
     
     
            <xen:if is="{$thread.isNew}">
     
            <img src="styles/default/xenforo/post_new.gif">
     
            <xen:else />
     
            <img src="styles/default/xenforo/post_old.gif">
     
            </xen:if>
     
            <xen:if is="{$thread.prefix_id}">
     
                <xen:if is="{$linkPrefix}">
     
                    <a href="{xen:link forums, $forum, 'prefix_id={$thread.prefix_id}'}" class="prefixLink"
     
                        title="{xen:phrase show_only_threads_prefixed_by_x, 'prefix={xen:helper threadPrefix, $thread, plain, ""}'}">{xen:helper threadPrefix, $thread, html, ''}</a>
     
                <xen:else />
     
                    {xen:helper threadPrefix, $thread}
     
                </xen:if>
     
            </xen:if>
     
            <a href="{xen:link '{xen:if '{$thread.isNew}', 'threads/unread', 'threads'}', {$thread}}" class="{xen:if $thread.hasPreview, PreviewTooltip}"
     
                data-previewUrl="{xen:if $thread.hasPreview, {xen:link threads/preview, $thread}}">
     
                <xen:if is="@VietXfAdvStats_ThreadTitleChars > 0">
     
                    {xen:helper wordtrim, {$thread.title}, @VietXfAdvStats_ThreadTitleChars}
     
                <xen:else />
     
                    {$thread.title}
     
                </xen:if>
     
            </a>
     
        </div>
     
        <div class="VietXfAdvStats_SectionItemBlock VietXfAdvStats_SectionItemInfo VietXfAdvStats_ThreadPoster">
     
            <xen:username user="$thread" rich="true" />
     
        </div>
     
        <div class="VietXfAdvStats_SectionItemBlock VietXfAdvStats_SectionItemInfo VietXfAdvStats_ThreadViewCount">
     
            {xen:number {$thread.view_count}}
     
            {xen:if '{$thread.view_count} == 1', '{xen:phrase VietXfAdvStats_lowercase_view}', '{xen:phrase VietXfAdvStats_lowercase_views}'}
     
        </div>
     
     
     
    </div>
    VietXfAdvStats_wrapper
    Mã:
    <xen:require js="js/VietXfAdvStats/frontend.js" />
     
    <xen:require css="VietXfAdvStats.css" />
     
    <div class="VietXfAdvStats sectionMain" data-bulkUpdateUrl="{$bulkUpdateUrl}">
     
        <h3>
     
            <div class="VietXfAdvStats_Controls">
     
                <xen:if is="{xen:count {$itemLimits}} > 1">
     
                    <select class="VietXfAdvStats_ItemLimit Tooltip" title="{xen:phrase VietXfAdvStats_item_limit}">
     
                        <xen:foreach loop="$itemLimits" value="$itemLimitValue">
     
                            <option value="{$itemLimitValue}" {xen:selected '{$itemLimitValue} == {$itemLimit}'}>{xen:number {$itemLimitValue}}</option>
     
                        </xen:foreach>
     
                    </select>
     
                <xen:else />
     
                    <input type="hidden" value="{$itemLimit}" class="VietXfAdvStats_ItemLimit" />
     
                </xen:if>
     
       
     
                <xen:if is="{xen:count {$updateIntervals}} > 1">
     
                    <select class="VietXfAdvStats_updateInterval Tooltip" title="{xen:phrase VietXfAdvStats_update_interval}">
     
                        <xen:foreach loop="$updateIntervals" value="$updateIntervalValue">
     
                            <option value="{$updateIntervalValue}" {xen:selected '{$updateIntervalValue} == {$updateInterval}'}>{xen:number {$updateIntervalValue}}</option>
     
                        </xen:foreach>
     
                    </select>
     
                <xen:else />
     
                    <input type="hidden" value="{$updateInterval}" class="VietXfAdvStats_updateInterval" />
     
                </xen:if>
     
            </div>
     
     
     
            <xen:if is="{$backLink}">
     
                <a href="{$backLink}" class="VietXfAdvStats_Header" target="_blank">{xen:phrase VietXfAdvStats}</a>
     
            <xen:else />
     
                <div class="VietXfAdvStats_Header">{xen:phrase VietXfAdvStats}</div>
     
            </xen:if>
     
        </h3>
     
     
     
        <div id="Block2nd">
     
            <ul class="tabs VietXfAdvStats_SectionTrigger" data-panes="#Block2ndPanes > li">
     
                <xen:foreach loop="$sections2nd" value="$section">
     
                    <li><a href="{$requestPaths.requestUri}#{$section.section_id}">{$section.section_title}</a></li>
     
                </xen:foreach>
     
            </ul>
     
            <ul id="Block2ndPanes">
     
                <xen:foreach loop="$sections2nd" value="$section">
     
                    <xen:include template="VietXfAdvStats_wrapper_section_li">
     
                        <xen:set var="$liClass">VietXfAdvStats_Block2ndContent</xen:set>
     
                    </xen:include>
     
                </xen:foreach>
     
            </ul>
     
        </div>
     
        <div style="clear: both; height: 0px;">&nbsp;</div>
     
    </div>
     
     
     
    <xen:include template="preview_tooltip" />
     
    ds2hope thích bài này.
  4. ds2hope

    ds2hope New Member

    Bài viết:
    22
    Likes :
    0
    Để mình làm thử, cảm ơn nhiều.
     
  5. ds2hope

    ds2hope New Member

    Bài viết:
    22
    Likes :
    0
    Cảm ơn H.B.T_Binh mình đã làm được rồi.
    Mọi người cho mình hỏi thêm, bây giờ mình muốn thêm avatar của người post bài viết như thế này thì phải làm sao ạ.
    Thanks
     

    Các file đính kèm:

  6. Hạnh Lux

    Hạnh Lux Verified User

    Bài viết:
    495
    Likes :
    107
    Đây là cái thống kê kết hợp giữa vinhphuctoday và Thichhatho tại Sinhvienduc =)) 2013-06-08_140936
     
  7. Imma Kun

    Imma Kun Verified User

    Bài viết:
    1,298
    Likes :
    782
  8. ds2hope

    ds2hope New Member

    Bài viết:
    22
    Likes :
    0
    mình có cài addon-Waindigo_LastPostAvatar rồi, nhưng mình muốn nó hiển thị thêm trên phần thống kê (Chỗ đánh dấu mầu đỏ). Hoặc giống như thế này http://asymmetrical.co/community/
     
comments powered by Disqus

Chia sẻ trang này

Đang tải...