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

Iggy

Well-known member
can someone please show better where this adds the data? i am not seeing it, even on the live demo.

thank you
 

JoyFreak

Well-known member
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 :)
 
Top