Bugs » Template IF not working.

added on Apr 28, 2007 by Gom
Hi Void,

In extend of our icq chat i tried the folowing, but it keeps failing with the {IF $FIRST} in the output neatly
translated as {IF 1}.

My template:
{$IF $FIRST}
<!-- start row of kolomtabel -->
<tr valign="top">
<td align="left">
<!-- col 1 - cel 1 -->
<table align="left" width="100%" border="0" style="padding-bottom:2;
padding-left:0; padding-right:0;">
<tr class="RubriekRow"><td align="left" class="RubriekCel"><DIV
class="RubriekTitel">CHATTEN</DIV></td></TR>
<tr class="RubriekLinksCel">
<td align="left" class="RubriekLinksCel">
{/IF}
<nobr><img src="/images/pr-{$PAGERANK}.gif" alt="PR: {$PAGERANK}" title="PR:
{$PAGERANK}" width="4" height="10" border="0" style="padding-left:3;
padding-right:3;" hspace="3"><a href="{$URL}" title="{$DESCRIPTION}"
target="_blank">{$ANCHOR}</a></nobr><br>
{IF $LAST}
<BR></td></tr></table>
<br>
</td></tr><!-- end row of kolomtabel -->
{/IF}



This simply outputs everything for each link, this IF statement is also outputted instead of interperted.
Hope you can fix this asap, then layout, tabling, and even generating xml and javascripts will become easy!!

Regards,
Gom
added on May 7, 2007 by v0id
Hey Gom,

it should be working fine now. I was not in the script, only on the drawing board like I told you on ICQ :)
But I made it now, so knock yourself out with it

- v0id

Add reply

This thread has been inactive for more than 14 days, so it has been locked.

Feel free to create a new thread with your questions.