Im trying to track down a plugin or something so I can display small thumbnails In the list of threads. So instead of having a boring vertical list of threads in each section, itll look much nicer with images then thread name. Id love it if this was created automatically from the first imagge attatched inside
up for you. I will like to have this plugin too.
Here's an example from the hk discuz forum software
http://www05.eyny.com/forum-27-1.html
note the thumbnails at the side of the thread listing.
Open forumdisplay.php and find the following;
else
{
$attachment_count = '';
}
and add just below it the following code;
$att_thumbnail = '';
if($attachment_count)
{
$query = $db->query("
SELECT a.thumbnail
FROM ".TABLE_PREFIX."attachments a
LEFT JOIN ".TABLE_PREFIX."posts p ON (p.pid=a.pid)
WHERE p.tid='{$thread['tid']}' AND a.filetype LIKE '%image%'
ORDER BY a.dateuploaded ASC
LIMIT 0,1
");
$thumbnail = $db->fetch_field($query, 'thumbnail');
if($thumbnail)
{
$att_thumbnail = "<div style=\"float:left\"><img src=\"./uploads/{$thumbnail}\" /></div>";
}
}
Then open forumdisplay_thread template
and find;
{$attachment_count}
<div>
and after it, add the following;
{$att_thumbnail}
Save the template
thanks for all the helpful support.. I'll try the codes tonight..