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

XF 1.3 Custom User Field Html

Discussion in 'Styling and Customization Questions' started by 51463, Apr 17, 2014.

  1. 51463

    51463 Well-Known Member

    I was successful in adding a user custom field.

    Which Type of Person are you: Pick one

    So when the user goes into his profile settings and picks which personality he is. It would show up in his profile. As of now it shows up in Text only "funny" "crazy"
    but instead of the text i want to show pictures for funny and crazy. I added the 2 .png pictures in /styles/default/xenforo/

    How can i change the code so it shows up a photos instead of text
    I dont know the html

    I tried

    if crazy = <{$choice}{$value}{$valueUrl}/styles/default/xenforo/crazy.png"size100x100"</>

    if funny = <{$choice}{$value}{$valueUrl}/styles/default/xenforo/funny.png"size100x100"</>

    But it doesnt work. I dont know how to link with photos. Help!
    Last edited: Apr 17, 2014
  2. QenTox

    QenTox Well-Known Member

    I will hijack this thread, hope it is ok, I guess we don't need more topics like this one.

    Anyone can help me please how to display in postbit (the place below user avatar) instead of custom user field name, image selected by me? I hope it is possible and not too complicated.
    Last edited: Sep 14, 2014
  3. Dan Hawkins

    Dan Hawkins Active Member

    QenTox likes this.

Share This Page