Forums

The great place to discuss topics with other users

✅ Add a “Post Reply” Button at the Bottom of a Forum Thread

'
Join the Conversation Post Reply
Vince33 Vince33
Moderator
Joined: 2025-05-22 18:50:59
2026-01-24 20:25:18

✅ Add a “Post Reply” Button at the Bottom of a Forum Thread

In Sngine, the “Post Reply” button is often only displayed at the top of the thread page. This small UI tweak adds the same reply button at the bottom so users don’t need to scroll back up.

1) Open the correct template file

Edit this file in your active theme:

/content/themes/default/templates/forums.tpl

Note: If you use another theme, replace default with your theme folder name.

2) Find the end of the replies block

Inside the {elseif $view == "thread"} section, search for this block:

{if $thread['replies'] > 0}
  {foreach $thread['thread_replies'] as $reply}
    ...
  {/foreach}
  <div class="mt10">
    {$pager}
  </div>
{/if}
<!-- replies -->

3) Paste the button code immediately after <!-- replies -->

Right after the block above, add:

{* === Post Reply button at the bottom of the thread === *}
{if $user->_logged_in}
  <div class="text-center mt20 mb10">
    <a href="{$system['system_url']}/forums/new-reply/{$thread['thread_id']}" class="btn btn-md btn-primary">
      <i class="fa fa-reply mr10"></i>{__("Post Reply")}
    </a>
  </div>
{/if}
✅ This uses the thread ID dynamically ({$thread['thread_id']}), so it works on every thread.

4) Test

  • Open any forum thread page
  • Scroll to the bottom (after pagination)
  • You should now see the “Post Reply” button at the bottom
  • Click it → it should go to /forums/new-reply/{thread_id}