Bạn vào style đang sử dụng, tìm và sửa ở template này nhé: VNXF_More_ThreadChữ "quan tâm nhiều" trong bài viết muốn sửa thành chữ khác thì làm như thế nào bác nhỉ?
kiếm hoài mà không thấyView attachment 15375
đình hoàng
Gefreiter
đã làm được, cám ơn bác nhiềuBạn vào style đang sử dụng, tìm và sửa ở template này nhé: VNXF_More_Thread
Chiennd1810
Private
Các bác cho em hỏi chút với, Làm sao để tăng số lượng Bài viết mới hiển thị ra ạ?
Chiennd1810
Private
tick vào ô đó bác. Hiện block bài viết mới đấy bác.
![]()
Nhưng mặc định chỉ được 2 bài viết bác ơi, em muốn tăng số lượng bài viết mới hiển thị ấy
thử tìm trong Style -> Hiện thêm bài mà ko biết sửa chỗ nào
luongtientan
Private
Add on vẫn chưa tương thích với https, cài addon này luôn bị cảnh báo! Admin có thể fix tương thích với https được ko ah? Thank
Hôm nay, VNXF xin giới thiệu đến các bạn một adds on mới mang tên [VNXF] More Thread - Add on bài viết quan tâm, bài viết mới cùng chuyên mục, có nhiều khác biệt so với các adds on cùng thể loại.
View attachment 476
Các bài viết "xem thêm" được chia làm 2 cột, đặt dưới chân bài viết bạn đang xem và thể hiện được 2 phần:
1. Bài viết quan tâm: Là bài viết được xem nhiều nhất trong khoảng thời gian (số ngày) gần nhất do bạn quy định.
2. Bài viết mới nhất: Là bài viết mới nhất của chuyên mục hoặc cả trang. Phần này có thể bật hoặc tắt nếu bạn muốn.
Giao diện responsive.
Có thể lựa chọn thể hiện ảnh thumbnail của bài viết hoặc không.
Ngoài ra trong phần option bạn có thể lựa chọn:
- Lấy tất cả bài viết hoặc của từng chuyên mục.
- Chọn số bài hiển thị.
- Loại bỏ adds on khỏi các chuyên mục mà bạn muốn.
View attachment 477
Cài đặt:
- Upload tất cả các file trong mục upload vào thư mục bạn đã cài đặt Xenforo.
- Vào phần cài đặt adds on để import file: addon-vnxf_more_thread.xml
Share cho anh em đoạn code edit nếu muốn làm nổi bật tên User ( yêu cầu phải cài thêm addon: All Rich Usernames).
Thay toàn bộ template: VNXF_More_Thread thành:
PHP:
<xen:if is="{$vnxfpost} || {$vnxfnew}">
<style>
a.img_items {
display: block;
float: left;
height: {$opt.himg}px;
margin-right: 10px;
overflow: hidden;
width: {$opt.wimg}px;
border:1px solid #F0F0F0;
}
a.img_items img {
max-height: {$opt.himg}px;
min-width: {$opt.wimg}px;
}
</style>
<xen:require css="VNXF_More_Thread.css" />
<div class="HotBlock">
<xen:if is="{$vnxfpost}">
<div class="HotBlock_wrp">
<div class="header_rc header_hb">
<div class="title_rc">
Quan tâm nhiều
</div>
</div>
<div class="HotBlock_ct">
<xen:foreach loop="$vnxfpost" value="$news" i="$i">
<div class="HotBlock_items" style="height:<xen:if is="{$opt.hthread} != 0 && {$showimg}">{$opt.hthread}px<xen:else/><xen:if is="{$showimg}">80px<xen:else/>50px</xen:if></xen:if>">
<xen:if is="{$showimg}">
<a class="img_items" href="{xen:link threads, $news}" title="{$news.title}" target="_blank">
<xen:if is="{$news.attach}">
<img src="{xen:link attachments, $news.attach}" alt="{$news.title}" title="{$news.title}"/>
<xen:elseif is="{$news.image}" />
<img src="{$news.image}" alt="{$news.title}" title="{$news.title}"/>
<xen:else />
<img src="{$opt.bia}" alt="{$news.title}" title="{$news.title}"/>
</xen:if>
</a>
</xen:if>
<div class="ct_items">
<a href="{xen:link threads, $news}" title="{$news.title}" target="_blank" class="title_items">{$news.title}</a>
<span class="info_items">bởi <i class="fa fa-user"></i> <a href="{xen:link members, $news}" class="username"><xen:username user="$news" title="{xen:phrase thread_starter}" rich="true" /></a>,<i class="fa fa-clock-o" aria-hidden="true"></i> <abbr title="{xen:datetime $news.post_date, 'absolute'}" class="DateTime"><font color="green">{xen:datetime $news.post_date, 'absolute'}</font></abbr></span>
</div>
</div>
</xen:foreach>
<div style="clear:both;"></div>
</div>
</div>
</xen:if>
<xen:if is="{$vnxfnew}">
<div class="HotBlock_wrp">
<div class="header_rc header_hb">
<div class="title_rc">
Bài viết mới
</div>
</div>
<div class="HotBlock_ct">
<xen:foreach loop="$vnxfnew" value="$news" i="$i">
<div class="HotBlock_items" style="height:<xen:if is="{$opt.hthread} != 0 && {$showimg}">{$opt.hthread}px<xen:else/><xen:if is="{$showimg}">80px<xen:else/>40px</xen:if></xen:if>">
<xen:if is="{$showimg}">
<a class="img_items" href="{xen:link threads, $news}" title="{$news.title}" target="_blank">
<xen:if is="{$news.attach}">
<img src="{xen:link attachments, $news.attach}" alt="{$news.title}" title="{$news.title}"/>
<xen:elseif is="{$news.image}" />
<img src="{$news.image}" alt="{$news.title}" title="{$news.title}"/>
<xen:else />
<img src="{$opt.bia}" alt="{$news.title}" title="{$news.title}"/>
</xen:if>
</a>
</xen:if>
<div class="ct_items">
<a href="{xen:link threads, $news}" title="{$news.title}" target="_blank" class="title_items">{$news.title}</a>
<span class="info_items">bởi <i class="fa fa-user"></i> <a href="{xen:link members, $news}" class="username"><xen:username user="$news" title="{xen:phrase thread_starter}" rich="true" /></a>, <i class="fa fa-clock-o" aria-hidden="true"></i> <abbr title="{xen:datetime $news.post_date, 'absolute'}" class="DateTime"><font color="green">{xen:datetime $news.post_date, 'absolute'}</font></abbr></span>
</div>
</div>
</xen:foreach>
<div style="clear:both;"></div>
</div>
</div>
</xen:if>
</div>
</xen:if>
Demo:
Chúc vui !!!
Sửa lần cuối:
levantukg
Gefreiter
Vậy xen 2x thì dùng add on nào bạnKhông nha bạn
levantukg
Gefreiter
CÁM ƠN BẠN CHỦ ĐỀ KHÔNG CÓ LINK DOWN
dcstylexf
SergeantMajor
attachment mà bạn ?CÁM ƠN BẠN CHỦ ĐỀ KHÔNG CÓ LINK DOWN
Xem nhanh
Hướng dẫn sử dụng
| XenForo 1 | XenForo 2 |
| Translate by PVS | |
| Xenforo là gì? | |
| Xây dựng MXH bằng Xenforo | |





