The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
multiple selection menu and image to display
i made a mod to view in the postbit an image taken from a single selection profile field
Code:
<!-- 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--> |
#2
|
|||
|
|||
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
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|