Default thumbnail where no attachment exists
Ok firstly thanks for this great mod! I searched around for an extra feature which I couldnt find so I made a small change myself. What I wanted was for those posts that dont have any attached images to show a default thumbnail in the message index. Let me just say Im in no way a PHP programmer so this is hardcoded but at least it works! The defaultthumbnail.jpg I manually sized as 100x100.
In MessageIndex.template.php
find
echo '<a href="', $topic['first_post']['href'], '"><img src="', $image['url'], '" width="', $image['width'], '" height="', $image['height'], '" alt="" /></a>';
$imagefound = true;
}
add after
// MOD to show default thumnail image
else
{
echo '<img src="http://www.site.com/defaultthumbnail.jpg">';
$imagefound = true;
}
// END MOD to show default thumbnail image