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

profile field About You: available in the post template?

Discussion in 'Styling and Customization Questions' started by sifuhall, Jan 20, 2012.

  1. sifuhall

    sifuhall Active Member

    I would like to add the first 200 or so characters from the post author's profile field About You in the post.

    Is this variable available in the post template and if so what is the var?
  2. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    Admin CP -> Appearance -> Templates -> message

    You can use this variable:

    And you can use this to trim it to 200 characters:

    {xen:helper snippet, $message.about, 200}
    The same thing works in the post template, but you would use "$post" in place of "$message".
  3. Forsaken

    Forsaken Well-Known Member

    Jake, do you know if this would work with XenPorta's article pages as they're based off of threads, or would I need to have it added by an add-on to do this?
  4. Jake Bunce

    Jake Bunce XenForo Moderator Staff Member

    In my testing the profile fields are not available in those XenPorta templates. Custom code is required.
  5. Forsaken

    Forsaken Well-Known Member

    Thought so :mad:.

Share This Page