The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Image in custom profile fields?
Is it possible to choose images to appear as custom profile fields.
For example the question is "What type of food do you like?" They tick the chexbox of an image of Pizza and Burgers and those images appear on postbit? |
#2
|
|||
|
|||
Please can someone help me with this query? Thanks!
--------------- Added [DATE]1333402995[/DATE] at [TIME]1333402995[/TIME] --------------- Oh come on guys?! |
#3
|
|||
|
|||
I think you can just use some template conditions around the image tags, like:
Code:
<vb:if condition="$post['fieldX'] & 1"><img src="pizza.gif"></vb:if> <vb:if condition="$post['fieldX'] & 2"><img src="burger.gif"></vb:if> <vb:if condition="$post['fieldX'] & 4"><img src="carrot.gif"></vb:if> etc. (Of course you'd replace 'X' with the actual field number). ETA: also note the values should go 1, 2, 4, 8, 16, 32, 64, etc. |
#4
|
|||
|
|||
Awesome thank you very much, this is exactly the kind of base I needed to work from Tyvm.
--------------- Added [DATE]1333470308[/DATE] at [TIME]1333470308[/TIME] --------------- Sorry another question So I've put all my tickboxes in, I've got about 26 of them. So what code what I put into say the postbit to make it display what I check as an image? |
#5
|
|||
|
|||
Please can somone answer the above? I really appreciate all your valuable help.
|
#6
|
|||
|
|||
So the above didn't work for you? When you say you have 26 checkboxes, how did you create those? Did you create a custom profile field with 26 options?
|
#7
|
|||
|
|||
Yes I create a custom profile field with 26 options. I'd like it to pull through any ticked box to the postbit and display as an image.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|