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

Discussion in 'Styling and Customization Questions' started by tommydamic68, Oct 12, 2013.

  1. tommydamic68

    tommydamic68 Well-Known Member

    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

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

    Jeremy Well-Known Member

    I haven't checked, but I'm not sure this is available in the templates. Are you receiving an error?
  3. tommydamic68

    tommydamic68 Well-Known Member

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

    Andrej Well-Known Member

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

    tommydamic68 Well-Known Member

    yes @Andrej - that worked, thank you!

Share This Page