PDA

View Full Version : code Image in postbit_legacy userfield


kappeGF
05-25-2012, 03:02 PM
Hi guys, I need help

How can I display an image in userfield like this?

https://vborg.vbsupport.ru/external/2012/05/17.jpg

my image is in Misc directory. I tryed to edit this code but doesn't work :(

<div class="eti_postbit"><vb:if condition="$post['field14']"><dt><b><font color="#0000">Gender</font></b></dt><img src="{vb:stylevar imgdir_misc}.png <dd>{vb:raw post.field14}</dd></vb:if></div>

Lynne
05-25-2012, 03:22 PM
This:
<img src="{vb:stylevar imgdir_misc}.png
Needs to be fixed to:
<img src="{vb:stylevar imgdir_misc}whatever_image.png" alt="" />

You don't have any actual image there and I don't know where you get the name, but put that in there and finish the image tag properly.

kappeGF
05-25-2012, 07:42 PM
thanks Lynne :)