[JoyFreak] Thread view/reply count

[JoyFreak] Thread view/reply count

JoyFreak

Well-known member
JoyFreak submitted a new resource:

[JoyFreak] Thread view/reply count - Display the number of views and replies in the thread description.

Live example: Gaming Forums

Description
This guide will run you through on how to display the number of views and replies in the thread description.

Guide
  1. Go to Admin CP > Appearance > Templates > Search: thread_view

Find:
Code:
<a href="{{ link('threads', $thread) }}" class="u-concealed"><xf:date time="{$thread.post_date}" /></a>
        </li>

Add below...

Read more about this resource...
 
Cool @JoyFreak you're a machine!

Is it very difficult to include these icons in the list of threads like you use in your forum for the mobile view?
 
Cool @JoyFreak you're a machine!

Is it very difficult to include these icons in the list of threads like you use in your forum for the mobile view?
It's not difficult to add the icons but what you see on my forum (on mobile) is more than that and requires a bit more work.

Should probably use {{ phrase('replies') }} and {{ phrase('views') }} 🙂
Both work just fine but I've updated it for those who are fussy :)
 
Is there a way to put these stats as you coded them into the main forum page on the line with the description of each forum? For instance:

Node Title
Posts | Views | Node Description
 
Back
Top Bottom