XenForo Tutorials

New Post Button in Post

Submitted by Sunny1997, , Thread ID: 123415

Sunny1997
Newbie
Level:
0
Reputation:
0
Posts:
16
Likes:
4
Credits:
0
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

danangbinsam
Newbie
Level:
0
Reputation:
0
Posts:
16
Likes:
0
Credits:
13
13-04-2019, 05:05 PM
#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

nibbas
Newbie
Level:
0
Reputation:
0
Posts:
15
Likes:
0
Credits:
15
05-07-2019, 06:58 PM
#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

percocet
Newbie
Level:
0
Reputation:
0
Posts:
16
Likes:
0
Credits:
20
25-07-2019, 02:11 AM
#4
thanks for the post button, I got xenforo up on xampp rn lmao

RE: New Post Button in Post

jdzhey
Junior Member
Level:
2
Reputation:
0
Posts:
83
Likes:
1
Credits:
0
26-03-2020, 03:35 PM
#5
Thanks for this. I was looking for this. Hehe
Thank you!

Users browsing this thread: 1 Guest(s)