Hướng dẫn ẩn trích dẫn bài viết đầu tiên cho xenforo

Admin

AdminAdmin is verified member.

Well-Known Member
Staff member
Administrator
Nếu muốn ẩn reply with quote ở bài viết đầu tiên trong chủ đề bạn làm như sau
Vào template post tìm
Code:
<xen:if is="{$canReply}">
        <a href="{xen:link threads/reply, $thread, 'quote={$post.post_id}'}" data-postUrl="{xen:link posts/quote, $post}" class="ReplyQuote item control reply" title="{xen:phrase reply_quoting_this_message}"><span></span>{xen:phrase reply}</a>
</xen:if>
Thay bằng
Code:
<xen:if is="{$post.position}!=0">
                <xen:if is="{$canReply}">
                    <a href="{xen:link threads/reply, $thread, 'quote={$post.post_id}'}" data-postUrl="{xen:link posts/quote, $post}" class="ReplyQuote item control reply" title="{xen:phrase reply_quoting_this_message}"><span></span>{xen:phrase reply}</a>
          </xen:if>
</xen:if>
Lưu lại là xong
Chúc các bạn thành công!
 

Facebook Comments

Similar threads

Admin
Replies
0
Views
2K
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