XenForo查看主题页面添加“回复主题”和“新建主题”按钮

Posted by

进入后台 — 网站外观 — 模板列表,找到“thread_view”,查找:

<xf:breadcrumb source="$forum.getBreadcrumbs()" />

在下方一行,添加:

<xf:pageaction>
    <xf:if is="$thread.canReply()">
            <xf:button href="{{ link('threads/reply', $thread) }}" data-xf-click="overlay" class="button--primary" icon="reply">
            {{ phrase('post_reply') }}
        </xf:button>
    </xf:if>
    <xf:if is="$xf.visitor.canCreateThread() OR $xf.visitor.canCreateThreadPreReg()">
        <xf:button href="{{ link('forums/post-thread', $forum) }}" class="button--cta" icon="write" rel="nofollow">
            {{ phrase('post_thread') }}
        </xf:button>
    </xf:if>
</xf:pageaction>

完工!

Leave a Reply

您的电子邮箱地址不会被公开。 必填项已用 * 标注