1. 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"

Discussion in 'Styling and Customization Questions' started by Neil E., Aug 31, 2012.

  1. Neil E.

    Neil E. Active Member

    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).
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> thread_view

    Add the red 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>
    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:


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

    Neil E. Active Member

    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
    Digital Doctor likes this.

Share This Page