Postbit Bar in XFRM overview - Postbit Bar trong trang tổng quan XFRM cho XenForo 2.3
Một template modification đơn giản để chèn một vài thông tin postbit hiển thị trong trang tổng quan XFRM của bạn (phía trên). Điều này cũng bao gồm số lượng tài nguyên. Thực hiện các thay đổi/chỉnh sửa của bạn cho phù hợp. Điều này có thể hữu ích với bạn nếu bạn muốn làm cho trang XFRM của mình hấp dẫn hơn.
Cách thêm:
ACP > Search > xfrm_resource_view
Ngay dưới dòng đầu tiên, dán nội dung sau:
Chúc các bạn thành công.
Một template modification đơn giản để chèn một vài thông tin postbit hiển thị trong trang tổng quan XFRM của bạn (phía trên). Điều này cũng bao gồm số lượng tài nguyên. Thực hiện các thay đổi/chỉnh sửa của bạn cho phù hợp. Điều này có thể hữu ích với bạn nếu bạn muốn làm cho trang XFRM của mình hấp dẫn hơn.
ACP > Search > xfrm_resource_view
Ngay dưới dòng đầu tiên, dán nội dung sau:
Mã:
<!-- Inline postbit info -->
<div class="block">
<div class="block-container"
style="background: linear-gradient(to right, #b30f1c, #a30d19);
font-family: Verdana, sans-serif;
color: white;
padding: 10px;
border-radius: 5px;
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3), inset 0 3px 3px rgba(255, 255, 255, 0.1);">
<div class="block-body" style="display: flex; justify-content: center; align-items: center; gap: 10px; text-align: center;">
<span> Album submitted by:</span>
<a href="{{ link('members', $resource.User) }}" style="color: white; text-decoration: underline;">{$resource.User.username}</a>
<span>• Messages: {$resource.User.message_count}</span>
<span>• Points: {$resource.User.trophy_points}</span>
<span>• Likes: {$resource.User.like_count}</span>
<xf:if is="$xf.visitor.canViewResources() AND $resource.User.xfrm_resource_count">
<span>• Albums: <a href="{{ link('resources/authors', $resource.User) }}" id="albums" style="color: white; text-decoration: underline;">{$resource.User.xfrm_resource_count}</a></span>
</xf:if>
</div>
</div>
</div>
Nguồn: xenforo.com