my above change to your code is still wrong, so i'll wait for someone who knows what they are talking about
This is the code i use now. The above screenshot shows the search pages and thumbs still display on the forumdisplay pages. The no thumb images are never shown though, ie if there is no attachment the field will be blank.
Quote:
<if condition="$show['threadicons']">
<td class="alt2" align="center" valign="middle">
<if condition="($tt_displaythumbs) AND ($bbuserinfo['field11'] <> 'Off' OR $show['guest'])">
<if condition="($thread['attachmentid']) AND ($thread['thumbsize'])">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<if condition="THIS_SCRIPT == 'search'">
<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" width=70 height=45 border="0" />
</a>
<else />
<img src="attachment.php?attachmentid=$thread[attachmentid]&stc=1&thumb=1" alt="" border="0" />
</if>
</if>
<else />
<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</if>
</if>
</td>
</if>
|