PDA

View Full Version : Referencing Profile Checkboxes


Eclyps19
02-27-2009, 12:02 PM
I'm wanting to add an image for every check within a field in a users profile. For example, they check box 1, 4, and 7, so under their avatar they will display image1, image4, and image7.

I know where to place the modification in the template, I just don't know how the if statement will look.

The field I'm working with is called field6

Thanks for the help!

1Unreal
02-27-2009, 12:20 PM
<if condition="$post['fieldX']">
<img src="image.jpg" alt="">
</if>


That would work for one field. However Im not sure how to do it with multiple fields. Mabey you could do it with multiple post fields. Not the tidiest option though :|

EDIT: Might be worth looking at this post (http://www.vbulletin.com/forum/showthread.php?t=235454)