Log in

View Full Version : Adding custom profile field value to post bits - Need help


Anti-Liberal10
02-12-2011, 04:57 AM
I had no problem doing it in 3.8. I just updated to 4.1.1 and I'm trying to update everything. but I keep getting a parse/eval error "%1$s"

what am I doing wrong?
<vb:if condition="{vb:raw post.field10} == 'yes'">
<vb:if condition="{vb:raw post.field11}">
<br /><a href="{vb:raw post.field11}" target="_blank" ><img border="0" src="{vb:raw options.homeurl}/images/custom/poty.png" /></a>
<vb:else />
<br /><img src="{vb:raw options.homeurl}/images/custom/poty.png" />
</vb:if>
</vb:if>

Lynne
02-12-2011, 04:08 PM
In conditions, you use the 'old' style to call the variable:
<vb:if condition="$post['field10'] == 'yes'">

Anti-Liberal10
02-12-2011, 06:55 PM
In conditions, you use the 'old' style to call the variable:
<vb:if condition="$post['field10'] == 'yes'">
Sweet that worked. Thanks :)