• 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?

sifuhall

Active member
#1
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?
 

Jake Bunce

XenForo moderator
Staff member
#2
Admin CP -> Appearance -> Templates -> message

You can use this variable:

Code:
{$message.about}
And you can use this to trim it to 200 characters:

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

Forsaken

Well-known member
#3
Admin CP -> Appearance -> Templates -> message

You can use this variable:

Code:
{$message.about}
And you can use this to trim it to 200 characters:

Code:
{xen:helper snippet, $message.about, 200}
The same thing works in the post template, but you would use "$post" in place of "$message".
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?
 

Jake Bunce

XenForo moderator
Staff member
#4
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?
In my testing the profile fields are not available in those XenPorta templates. Custom code is required.