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

XF 1.5 {$user.customFields} not working in member_list_item

Discussion in 'XenForo Questions and Support' started by JustinHawk, Sep 20, 2016.

  1. JustinHawk

    JustinHawk Active Member

    hi

    i am facing issue with custom user fields variable , its not printing out the value of custom user field whereas when i check dump of $user variable the values of field is available

    i used this for printing out the value {$user.customFields.locationla}

    and this dump is available for one user but it display nothing

    ["custom_fields"] => string(178) "a:8:{s:10:"locationla";s:3:"625";s:10:"locationln";s:4:"1756";s:3:"aim";s:0:"";s:3:"icq";s:0:"";s:5:"yahoo";s:0:"";s:5:"skype";s:0:"";s:8:"facebook";s:0:"";s:7:"twitter";s:0:"";}"
     
  2. Mike

    Mike XenForo Developer Staff Member

    The dump you showed is "custom_fields". The "customFields" value requires data to be prepared which (presumably) isn't done there, so what you want isn't directly available in the template.
     
    JustinHawk likes this.
  3. JustinHawk

    JustinHawk Active Member

    Last edited: Sep 21, 2016

Share This Page