Xenforo New Post Button in Post

Dr.Pavlov

Инквизитор
Admin
Регистрация
11 Июл 2004
Сообщения
9,021
Реакции
2,199
Credits
7,136
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.

new-post.jpgSetup;
ACP --> Template --> thread_view and find:

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

Replace with the code below:

[HIDE=3]
Код:
<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]