XF 2.1 Showing Icon On Custom User FIeld

Kaitou

New member
So I made a Genders Custom User FIeld and I am trying to make it show an image instead of text (while also showing the text while hovering it)

This is what i got so far but its not working properly.
<img src="../styles/default/xenforo/genders/{$choice}.png" alt="{$value}" width="20" height="20" />

I am putting it on the HTML section of the custom user field.
 
I got to work from a ghetto way
Code:
<img src="https://i.imgur.com/{$choice}.png" alt="{$value}" width="22" height="22" />

But how do I make it read it from my host/ftp?
 
Top Bottom