PDA

View Full Version : if statement not working


mindhunter77
10-10-2008, 03:49 PM
I have this in postbit_attachment any ideas why is not working?

<if condition="$forum['forumid'] == 155">

<tr>
<td><img class="inlineimg" src="$stylevar[imgdir_attach]/$attachment[attachmentextension].gif" alt="<phrase 1="$attachment[attachmentextension]">$vbphrase[file_type_x]</phrase>" width="16" height="16" border="0" style="vertical-align:baseline" /></td>
<td><a href="attachment.php?$session[sessionurl]attachmentid=$attachment[attachmentid]&amp;d=$attachment[dateline]"<if condition="$show['newwindow']"> target="_blank"</if>>$attachment[filename]</a> ($attachment[filesize]<if condition="$show['views']">, <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase></if>)</td>
</tr>

<else />

<tr>
$attachment[filesize]<if condition="$show['views']">, <phrase 1="$attachment[counter]">$vbphrase[x_views]</phrase></if>
</tr>

</if>

veenuisthebest
10-10-2008, 03:59 PM
try this

<if condition="$foruminfo['forumid'] == X"></if>