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

Getting userfield text?

Discussion in 'XenForo Development Discussions' started by nrep, Oct 28, 2014.

  1. nrep

    nrep Well-Known Member

    I've got some country code custom field entries on my forum, which I use to generate flags for members in the post info box. I've edited the value display to get a friendly appearance on the main profile page, however I'm using a manual template edit to add another display type to the post info box.

    For example, I have a value of "uk" and text of "United Kingdom" for one option. I can get the "uk" part displayed just fine in a template, however I'd like to be able to call the "United Kingdom" text too.

    I tried using:

    {xen:helper userFieldValue, $userFieldInfo.my_identifier, $user, {$user.customFields.my_identifier}}

    However, that displays the text after it has been altered by the "value display HTML" setting. I just want the raw text used for the profile field option.

    Any thoughts on how I can do this?
     
  2. Jeremy

    Jeremy XenForo Moderator Staff Member

  3. nrep

    nrep Well-Known Member

Share This Page