powerful_rogue
01-03-2010, 08:03 PM
Hi,
Ive got the following piece of code, however I want to alter it so that it does not apply to sticky threads.
<if condition="$show['threadicons']">
<td class="alt2" align="center" valign="middle">
<if condition="$tt_displaythumbs">
<if condition="($thread['attachmentid']) AND ($thread['thumbsize'])">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" border="0" />
</a>
<else />
<img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />
</if>
<else />
<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</if>
</if>
</td>
</if>
Ive tried adding
<if condition!="$show['sticky']">
</if>
around the code, but it does not appear to be working.
Any tips greatly appreciated!
--------------- Added 1262556445 at 1262556445 ---------------
Got it! I used the following instead
<if condition="$thread['sticky'] != 1">
Ive got the following piece of code, however I want to alter it so that it does not apply to sticky threads.
<if condition="$show['threadicons']">
<td class="alt2" align="center" valign="middle">
<if condition="$tt_displaythumbs">
<if condition="($thread['attachmentid']) AND ($thread['thumbsize'])">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" border="0" />
</a>
<else />
<img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />
</if>
<else />
<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</if>
</if>
</td>
</if>
Ive tried adding
<if condition!="$show['sticky']">
</if>
around the code, but it does not appear to be working.
Any tips greatly appreciated!
--------------- Added 1262556445 at 1262556445 ---------------
Got it! I used the following instead
<if condition="$thread['sticky'] != 1">