I tested the code and it gave me an error message:
Quote:
The following error occurred when attempting to evaluate this template:
Parse error: parse error, unexpected '[' in nameofsite/forums/includes/adminfunctions_template.php(3729) : eval()'d code on line 74
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.
|
Line 74 is the first
IF statement. The code I used was:
HTML Code:
<if condition="post['field9'] == 'Xbox 360' ">
<td class="alt2" align="left" valign="top"><iframe src="http://gamercard.xbox.com/$post[field10].card" scrolling="no" frameBorder="0" height="95" width="204">$post[field10]</iframe></td>
</if>
<if condition="post['field9'] == 'Playstation 3' ">
<td class="alt2" align="left" valign="top"><a href="http://www.us.playstation.com/PSN/Users/$post[field33]"><img src="http://pid.us.playstation.com/user/$post[field33].jpg" width="235" height="149" border="0" /></a></td>
</if>
I also tested it with just
IF statements and it still didnt work on so the problem is with them, not the output. I also tested the output of
and it had the right anseers,
Xbox 360 or
Playstation 3.
Can someone help me out, doesn seem like that hard of a question, lol. Baically just need something along the lines of:
HTML Code:
<if condition="post['field9'] == 'Xbox 360' ">
Field9 is is a user profile field question with radio buttons with 2 selections as answers:
Xbox 360 or
Playstation 3.
Thanks goes to those who take the time to reply to a VB newbie.