Hướng dẫn fix vietxf topx trên style mobile cho xenforo

  • Thread starter Thread starter AdminAdmin is verified member.
  • Start date Start date
Admin

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
Chắc mọi người đã biết adon thống kê VietXfAdvStats của việtxf, nhưng có vấn đề là thống kê này hiện thị trên style mobile rất to và xấu, tình cờ kiếm đc bài này và đã làm thành công nên lech về cho ai chưa biết


Vào template -> VietXfAdvStats_wrapper_section_li
Thay bằng toàn bộ bằng code sau:

Code:
<xen:if is="{$section.rendered}">    <li id="{$section.section_id}" class="VietXfAdvStats_BlockContent {$liClass}">        {xen:raw {$section.rendered}}    </li><xen:else /> </xen:if>


Sau đó vào VietXfAdvStats_wrapper
Thay thế bằng code sau:

Code:
<xen:require js="js/VietXfAdvStats/frontend.js" /><xen:require css="VietXfAdvStats.css" />            <div class=VietXfAdvStats_Header>Chủ đề mới nhất</div>              <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>


Tiếp theo, vào VietxfAdvStats_threads_recent
Vì mình sử dụng recent thread thay cho last thread. Bạn nào sử dụng last thread thì nên dùng recent nhé.
Thay thế code sau:

Code:
<xen:require css="message.css" /> <div class="topx">        » <a href="{xen:link '{xen:if '{$thread.isNew}', 'threads/unread', 'threads'}', {$thread}}">            <xen:if is="@VietXfAdvStats_ThreadTitleChars > 0">                {xen:helper wordtrim, {$thread.title}, @VietXfAdvStats_ThreadTitleChars}            <xen:else />                {$thread.title}            </xen:if>        </a>        (<xen:username user="$thread" rich="true" />)    </div>



Vào message.css thêm css sau:

Code:
.topx{    /*    background-color:#FFFFFF;    color:#000000;    font-size:.9em;    padding: 4px;    width:100% -8px;    margin-lefT:auto;    margin-right:auto;    border-left:1px solid @subHeading.border-bottom-color;    border-right:1px solid @subHeading.border-bottom-color;    border-bottom:1px solid @subHeading.border-bottom-color;      */    padding: 3px;    border-left:1px solid @subHeading.border-bottom-color;    border-right:1px solid @subHeading.border-bottom-color;    border-bottom:1px solid @subHeading.border-bottom-color;    }
 
xenforo làm giống VBB không xếp
 
Tương đối giống...
 
Được...........
 
Có rồi em à.....
 
Sau em tìm rồi không thấy top hướng dẫn chuyển từ phpbb3x sang xf mà không có
 
Google thêm đuôi tuoitrevn
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
5K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
1K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
2K
AdminAdmin is verified member.
Admin
Admin
Replies
0
Views
2K
AdminAdmin is verified member.
Admin
Back
Top