Tutorial 2x Cách hiển thị chữ ký chỉ ở bài viết đầu tiên cho XenForo 2

PVS

Super Moderator
Thành viên BQT
Tham gia
28/02/2015
Bài viết
16,728
Được Like
12,680
Cách hiển thị chữ ký chỉ ở bài viết đầu tiên cho XenForo 2

Để chỉ hiển thị chữ ký ở bài viết đầu tiên cho XenForo 2, tránh tình trạng spam chữ ký các bạn làm theo cách sau:

Mở template post_macros, tìm đoạn code:
Mã:
<xf:macro template="message_macros" name="signature" arg-user="{$post.User}" />

Thay bằng:
Mã:
<xf:if is="$post.isFirstPost()">
    <xf:macro template="message_macros" name="signature" arg-user="{$post.User}" />
</xf:if>

Chúc các bạn thành công.


Nguồn: hoangnhanpro​
 

Hướng dẫn sử dụng

XenForo 1 XenForo 2
Translate by PVS

Dịch vụ XenForo của VNXF

Mr. Tuấn

Mobile/Zalo: 0988 488 096

Telegram: bluekpro

Email: [email protected]

Nhà Tài Trợ

Mút Xốp Không Gian
pallet Thịnh Phát
Top Bottom