I'm having a little trouble getting a custom profile field show up as an image. I got it to work, however it shows up twice (the orange panes with the white fox).
I've created a custom profile field called "vipbadges" and made it a dropdown. Each value here is the name of a picture, along with png. The idea is that members can choose from an existing number of badges uploaded to the server. e.g;
bleach1.png
bleach2.png
bleach3.png
These are stored in the folder images/vip_badges. The value from the dropdown and the code I added together form the path to the picture to be show.
I changed the view_topicbody.html to show the input as a picture accordingly:
Code: Select all
<!-- IF postrow.S_PROFILE_VIPBADGE -->
<img src="images/vip_badges/{postrow.PROFILE_VIPBADGE_VALUE}" height="135" width="135">
<!-- ENDIF -->
This is my current custom_fields code:
Code: Select all
<!-- BEGIN custom_fields -->
<!-- IF not postrow.custom_fields.S_PROFILE_CONTACT -->
<dd class="profile-custom-field profile-{postrow.custom_fields.PROFILE_FIELD_IDENT}"> {postrow.custom_fields.PROFILE_FIELD_VALUE}</dd>
<!-- ENDIF -->
<!-- IF postrow.S_PROFILE_VIPBADGE -->
<img src="images/vip_badges/{postrow.PROFILE_VIPBADGE_VALUE}" height="135" width="135">
<!-- ENDIF -->
<!-- END custom_fields -->
Any help? :c :C :C