Quote:
Originally Posted by jasonmerchant
htrshgytrs:
...That script will not work, it will prevent all thumbnails from showing on the search page. Are thumbnails are showing up?
|
yup, works exactly as i want it to with that above conditional ;
Images where there are thumbnails and nothing where there is not. Works both on the getnewposts and search results pages.
edit - actually i did change it after i posted earlier so i may have confused the issue.. The above result is achieved with the follow template edit within threadbit ;
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 condition="THIS_SCRIPT != 'search'">
<img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />
</if>
</if>
<else />
<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</if>
</if>
</td>
</if>
|