Register Members List Search Today's Posts Mark Forums Read

Thread Tools
Old 03 Jan 2010, 21:03
powerful_rogue's Avatar
powerful_rogue powerful_rogue is offline
Join Date: Jan 2007
Real name: Dave
IF condition for sticky thread


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" />
<else />
<img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />
<else />
<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
Ive tried adding

<if condition!="$show['sticky']">
around the code, but it does not appear to be working.

Any tips greatly appreciated!

--------------- Added 03 Jan 2010 at 21:07 ---------------

Got it! I used the following instead

<if condition="$thread['sticky'] != 1">

Last edited by powerful_rogue; 03 Jan 2010 at 21:07. Reason: Auto-Merged DoublePost
Reply With Quote
Old 03 Jan 2010, 22:50
neo1211 neo1211 is offline
Join Date: Sep 2008
You could probably also shorten that by using:

<if condition="!$thread['sticky']">
Reply With Quote

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

New To Site? Need Help?

All times are GMT. The time now is 23:32.

Layout Options | Width: Wide Color: