I use this hack for 3.5.4 and 3.6.x and good work
Demo here
http://www.danya-mobile.com/vb/forumdisplay.php?f=142
Let'go.
Download attachment of this post, then Go to ACP
Plugins & Products -> Download / Upload Plugins -> see bottom of page
Import Plugin Definitions XML File
then import plug in.
after that click
Plugin Manager -> Find Thread Thumbnail
Edit which ID forum would you like to show Thumbnail Of Attachments
Code:
$tt_thumbsforums = array(19, 52, 54, 55, 56, 57, 58, 59, 60, 61, 63 ,129, 142, 143, 147, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 186, 189);
$tt_displaythumbs = false;
if (in_array($forumid, $tt_thumbsforums)) {
$tt_displaythumbs = 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) ";
$hook_query_where .= "GROUP BY thread.threadid ";
}
Edit Your forum ID here
Code:
$tt_thumbsforums = array(19, 52, 54, 55, 56, 57, 58, 59, 60, 61, 63 ,129, 142, 143, 147, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 186, 189);
Edit Template
In threadbit template Find:
-----------------------------------------------------------------------------
<if condition="$show['threadicons']">
<td class="alt2">
<if condition="$show['threadicon']">
<img src="$thread[threadiconpath]" alt="$thread[threadicontitle]" border="0" />
<else />
</if>
</td>
</if>
-----------------------------------------------------------------------------
Replace With:
-----------------------------------------------------------------------------
<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>