• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.2 Show 'views' in members postings

tommydamic68

Well-known member
#1
I am trying to ad 'views' code, i just cant get it right - any help would be appreciated. i am trying to ad it to this template -
search_result_thread as well as search_result_post

Code:
{xen:phrase x_replies, 'count={xen:number $thread.reply_count}'},{xen:phrase views, 'count={xen:number view_count}'},
 

tommydamic68

Well-known member
#3
I haven't checked, but I'm not sure this is available in the templates. Are you receiving an error?
no, I want to list views and last message from into the profile posts and threads templates - currently it does not have that. It only has # replies and who started it.

Screen Shot 2013-10-13 at 2.58.33 PM.png
 

Andrej

Well-known member
#4
Here is the code I use to display how many times a thread was viewed (in the search_result_thread template):
Code:
{xen:phrase views} {$thread.view_count},
Скриншот 2013-10-13 21.05.23.png
 
Last edited: