Trana,
In AdminCP > Plugins & Products > Plugin Manager
Edit the plugin 'Thread Thumbnail - Search'
Change $tt_displaythumbs to $tt_displaythumbs
_search
Code:
$tt_displaythumbs_search = true;
$hook_query_fields .= ", attachment.thumbnail_filesize AS thumbsize , MIN(attachment.attachmentid) AS attachmentid ";
$hook_query_joins .= "LEFT JOIN " . TABLE_PREFIX . "attachment as attachment ON(attachment.postid = thread.firstpostid AND (attachment.extension = 'jpg' OR attachment.extension = 'gif' OR attachment.extension = 'png')) ";
$hook_query_where .= "GROUP BY thread.threadid ";
In threadbit template add an additonal IF statement like you added for the Tag Search changing the IF stmt to check for $tt_displaythumbs
_search (versus the Tag Search checking for $tt_displaythumbs_tag).
This is the code I'm using. Yes, this is a monster IF statement. It works. It handles displaying thumbnails for Tag Searches, New Posts & regular Searches, Forums that have been added to the Thread Thumbnail plugin. I have also set up User Profile fields to allow the user to turn On/Off thread thumbnail display and have those checks also in the code.
Note: And, for poops-N-grins, I wrapped all the img code in href tags so you can click on thread thumbnails or the default thread icon to go to the thread.
Code:
<!-- OMAC Thread Thumbnails -->
<if condition="$show['threadicons']">
<td class="alt2" align="center" valign="middle">
<!-- Tag Search -->
<if condition="($tt_displaythumbs_tags) AND $bbuserinfo['field9'] <> 'Off'">
<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 />
<if condition="$show['threadicon']">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</a>
<else />
</if>
</if>
<else />
<!-- New Posts & regular Search -->
<if condition="($tt_displaythumbs_search) AND ($bbuserinfo['field8'] <> 'Off' OR $show['guest'])">
<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 />
<if condition="$show['threadicon']">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</a>
<else />
</if>
</if>
<else />
<!-- Check for Thread Thumbnailed Forums -->
<if condition="($tt_displaythumbs) AND ($bbuserinfo['field8'] <> 'Off' OR $show['guest'])">
<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 />
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$stylevar[imgdir_misc]/nothumb.jpg" alt="" border="0" />
</a>
</if>
<else />
<!-- the original vB code -->
<if condition="$show['threadicon']">
<a href="showthread.php?$session[sessionurl]t=$thread[threadid]">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
</a>
<else />
</if>
</if>
</if>
</if>
</td>
</if>
<!-- end of OMAC Thread Thumbnails -->
Chow, ~OZ