XF 2.2 Show view count on each thread

Hi,

I'm looking to display the number of times a thread has been viewed on the top of each thread.

I came across this thread:


I tried adding a custom HTML widget using this code:

Code:
<p>This thread has been viewed {$thread.view_count} times.</p>

But {$thread.view_count} is not phrased.

This cannot be done using a Widget?

Thanks
Alex
 
Hi,

I have added this on thread_view template:

Code:
<li>
                <xf:fa icon="fa-eye" />
                {{ phrase('thread_total_views') }} : {$thread.view_count}
</li>

And it works, the thread view count is shown on the top. But it's only shown for administrators.
I cannot find a relevant permission.

What am I missing?

Thanks
Alex
 
Top