XF 2.1 Thread views & Replies

swiftyste

Active member
I'm looking to add thread views & thread replies at the top of the thread

{2324F163-CEEB-48A9-B329-39BFC415202B}.png.webp

Does anyone know the code to add this next to the time?

Thanks
 
I manged to sort it by adding this line of codes within thread_view in templates

{059CA8EB-94BA-4396-9A30-61F7AAE4240B}.png.jpg

Thread views:
Code:
<li><dl class="pairs pairs--inline">
                <dt>{{ phrase('views') }}</dt>
                <dd>{{ number($thread.view_count) }}</dd>
            </dl></li>
You can customize : <dt>{{ phrase('views') }}</dt> to what ever you like just like this:

{3CAE090F-FD26-48B0-92E6-5EADFF448826}.png.jpg

Thread replies:
Code:
<li><dl class="pairs pairs--inline">
                <dt>{{ phrase('Replies') }}</dt>
                <dd>{{ number($thread.reply_count) }}</dd>
            </dl></li>

This updates on each thread with each change.
 
Back
Top Bottom