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

Custom Userfield value is not displayed

Discussion in 'XenForo Development Discussions' started by Gothi, May 3, 2013.

  1. Gothi

    Gothi Member

    hi,

    I have problems with the "custom user fields". the custom userfield values ​​are not displayed in templates.

    i used {$user.customFields.4} but it does not.

    no matter which template it is.
    in the "message_user_info" template, I can see the value.

    I need the value in the template "EWRblock_RawHyperText"


    (sry my english is very bad)

     
  2. Lycaon

    Lycaon Well-Known Member

    Pretty sure elsewhere it would need to be {$visitor.customFields.4}
     
    Gothi likes this.
  3. Gothi

    Gothi Member

    juchuuuuuuuuuu, thank you
     
  4. tyteen4a03

    tyteen4a03 Well-Known Member

    Often if $user is not available, $visitor will be, and vice versa (however $visitors has things $user does not have). If both of them are not available, then you will need to override the controller in question and add $user or $visitor in via $viewParams.
     

Share This Page