View thread - show counts

otfordnet

Member
Hi, I cannot find any mention of this elsewhere, forgive me if there is already a post of how to achieve this.
I simply want to show the count of replies and views at the top of the thread view.

Forum view shows Replies and Views:
forums.webp

Thread view:
thread.webp

Include counts on same line as .. Discussion in 'Sevenoaks Chat' started ...

Forum www.SevenoaksForum.com is using Flexile and xenPorta.

Many thanks
JohnH
 
Its not exactly what you are wanting - as they're not spaced out, but it should be good enough :).

Open the 'thread_view' template and add the markup in red.
<xen:description>
{xen:phrase discussion_in_x_started_by_y_date_z,
'forum=<a href="{xen:link forums, $forum}">{$forum.title}</a>',
'name={xen:helper username, $thread}',
'date=<a href="{xen:link threads, $thread}">{xen:datetime $thread.post_date, html}</a>'}
{xen:phrase replies}: {$thread.reply_count} | {xen:phrase views}: {$thread.view_count}
</xen:description>
 
Back
Top Bottom