Code hoặc hướng dẫn này được sử dụng trên phiên bản Xenforo cũ đã quá hạn sử dụng. Bạn hãy
click để tìm bản mới hơn
Minimum posts to see Taigachat - Bài viết tối thiểu để xem Taigachat
Trong ví dụ này, 5 là số lượng bài viết tối thiểu cần có để xem được taigachat.
Kết quả:
Chúc các bạn thành công.
- Yêu cầu cài đặt add-on Taigachat.
- Vào template forum_list, tìm:
Mã:
<xen:hook name="dark_taigachat_alt" />
- Thay bằng:
Mã:
<xen:if is="{$visitor.message_count} > 5">
<xen:hook name="dark_taigachat_alt" />
<xen:else />
<p style="padding:10px;" class="importantMessage"><i style="font-size:30px;padding-bottom:10px;" class="fa fa-weixin"></i><br />You need 5 posts to see the shoutbox. Currently you have that {xen:number $visitor.message_count}.</p>
</xen:if>
- Đối với trang đầy đủ, đi đến template dark_taigachat_full và thêm vào phía trên:
Mã:
<xen:if is="{$visitor.message_count} > 5">
- Và thêm vào cuối:
Mã:
<xen:else />
<p style="padding:10px;" class="importantMessage"><i style="font-size:30px;padding-bottom:10px;" class="fa fa-weixin"></i><br />You need 5 posts to see the shoutbox. Currently you have that {xen:number $visitor.message_count}.</p>
</xen:if>
- Đối với cửa sổ bật lên, đi đến template dark_taigachat_popup, tìm <body class='taigachat_popup_body'> và thêm vào trước:
Mã:
<xen:if is="{$visitor.message_count} > 5">
- Cũng trong template đó, tìm </body>, và thêm vào sau:
Mã:
<xen:else />
<p style="padding:10px;" class="importantMessage"><i style="font-size:30px;padding-bottom:10px;" class="fa fa-weixin"></i><br />You need 5 posts to see the shoutbox. Currently you have that {xen:number $visitor.message_count}.</p>
</xen:if>
Trong ví dụ này, 5 là số lượng bài viết tối thiểu cần có để xem được taigachat.
Kết quả:
Nguồn: xenforo.com
Bài viết liên quan
Bài viết mới