Xenforo New Post Button in Post

Dr.Pavlov

Verified seller
Professional Carder
Joined
Jul 11, 2016
Messages
3,788
Reaction score
1,273
Compatible XF Versions 2.0, 2.1

New Post Button in Post
In Xenforo 2, you can add a new topic button when reading a topic.

View attachment 2020Setup;
ACP --> Template --> thread_view and find:

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

Replace with the code below:

[HIDE=3]
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>
[/HIDE]
 
Top