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

XF 1.4 Message count variable

Discussion in 'XenForo Questions and Support' started by ophy, Dec 18, 2015.

  1. ophy

    ophy Member

    I was wondering if there is a template or variable I could use for the message count. I would like to change the message count to say text so for example instead of the number of messages a user has it would say "Too Much". Is there a way to do this per user ID?
  2. Chris D

    Chris D XenForo Developer Staff Member

    Where would this message count be displayed? Generally it would be {$user.message_count} to show a user's message count, e.g. In their profile.

    Sometimes though it may be joined to other data, e.g. To show it inside a post it may be {$post.message_count}.
  3. ophy

    ophy Member

    It would be in the thread view under the avatar. So instead of Messages: 1,221, I could replace the number with "Too much" per User ID
  4. wang

    wang Well-Known Member

    In that case you need the {$user.message_count} mentioned above.

Share This Page