XenForo Tutorials

New Post Button in Post

Submitted by Sunny1997, , Thread ID: 123415

04-03-2019, 01:32 PM
This post was last modified: 04-03-2019, 01:33 PM by Sunny1997
#1
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>

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

RE: New Post Button in Post

#3
Does this work on any style? Im using the unify style. It would be great if it does.

RE: New Post Button in Post

#4
thanks for the post button, I got xenforo up on xampp rn lmao

RE: New Post Button in Post

#5
Thanks for this. I was looking for this. Hehe
Thank you!

Users browsing this thread: 3 Guest(s)