XenForo Tutorials

New Post Button in Post

Submitted by Sunny1997, , Thread ID: 123415

RE: New Post Button in Post

#2
04-03-2019, 01:32 PM
Sunny1997 Wrote:
ACP --> Template -->thread_viewand find:


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

Replace with:

Code:
<xf:breadcrumb source="$forum.getBreadcrumbs()" />
<xf:pageaction if="$forum.canCreateThread()">
<xf:button href="{{ link('forums/post-thread', $forum) }}" class="button--cta" icon="write">
{{ phrase('post_thread') }}
</xf:button>
</xf:pageaction>

Thanks, it works for xenforo 2

Users browsing this thread: 1 Guest(s)