• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Change the Quickreply location to "last page only"

Neil E.

Active member
#1
What is needed to make the quickReply section (text box and post buttons) only show on the last page of a multi-page topic? Of course it would still need to show on a single page topic.

At the same time I would like to turn off the "there are more posts" notice that shows up if a user replies on any page that is not the last page. (Theoretically this is not needed if quickReply does not show on preceeding pages).
 

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> thread_view

Add the red code:

Code:
<xen:if is="{$canQuickReply} AND {$lastPost.position} == {$thread.reply_count}">
	<xen:include template="quick_reply">
		<xen:set var="$formAction">{xen:link 'threads/add-reply', $thread}</xen:set>
		<xen:set var="$lastDate">{$lastPost.post_date}</xen:set>
		<xen:set var="$showMoreOptions">1</xen:set>
	</xen:include>
</xen:if>
At the same time I would like to turn off the "there are more posts" notice that shows up if a user replies on any page that is not the last page. (Theoretically this is not needed if quickReply does not show on preceeding pages).
It might still be needed. For example, if there are new posts made while the user has been typing a post. Reminds of this though:

http://xenforo.com/community/threads/remove-to-extra-posts-on-reply.25744/#post-311749

If you want to remove that text then you can remove it from the beginning of the template.
 

Neil E.

Active member
#3
Thanks Jake, much appreciated.

The thread_view conditional works great and the
thread_reply_new_posts edit you linked is the way to go.

© Tweaks by Jake ®

or maybe it should be . . . . Jake for President . . . . hip hip hooray