Log in

View Full Version : multiple selection menu and image to display


Tri@de
05-03-2012, 01:25 PM
i made a mod to view in the postbit an image taken from a single selection profile field

<!-- giochi -->
<vb:if condition="$post['fieldX']"><style="text-align:left"> Game:</dt> <img src="{vb:stylevar imgdir_button}/games/{vb:raw post.fieldX}.png" align="middle" alt="{vb:raw post.fieldX}" border="" /></vb:if>
<!-- Fine-->


there's a way to display multiple images using multiple selection menu?

kh99
05-03-2012, 01:28 PM
The issue is that while the value of a single selection field will be the option that was selected, the value of a multiple selection field is just a number with bits set to indicate the selections. So instead of using the value as part of the file name, you need to test for which bits are set and build the entire name yourself. Hope that makes some sense - here's an article that Lynne wrote on using profile fields in the postbit: https://vborg.vbsupport.ru/showthread.php?t=250418