PDA

View Full Version : Help with profile fields code.


JMEWLS`
12-12-2009, 10:41 PM
This new code is weird, I think I got it perfect still it's saying "unclosed_tag" when I save the postbit.

Usually it's like this:
<span align="left"> <if condition="$post['field5']"><img src="images/teamlogo/$post[field5].gif" alt="NBA Team" border="" /></if></span>

I'm guessing now the code should look like this:

<span align="left"> <vb:if condition="$post['field5']"><img src="images/teamlogo/{vb:raw post.field2}.gif" alt="NBA Team" border="" /><vb:/if>

Basically I'm manipulating the code to so the team will come up as an image as indicated by the link.

BBR-APBT
12-12-2009, 10:53 PM
You had it correct in the img partf of the code but not the if.

<vb:if condition="{vb:raw post.field5}"><span align="left"><img src="images/teamlogo/{vb:raw post.field2}.gif" alt="NBA Team" border="" /></span><vb:/if>

JMEWLS`
12-12-2009, 11:25 PM
Yeah, I ended up fixing it :P.

Thanks buddy.

ultimatearco
12-13-2009, 05:39 AM
Post Neutralized.