Quote:
Originally Posted by nexialys
logically, find this:
PHP Code:
if ($width > $vboptions['attachthumbssize'] OR $height > $vboptions['attachthumbssize'])
and put this just before:
PHP Code:
if ($width < $vboptions['attachthumbssize'])
{
$vboptions['attachthumbssize'] = '100';
}
so if the files are bigger, the new default for thumbnails will be lowered to your prefered size before the treatment...
...and you can count you as a lucky guy, i never give codes for free usually.. i suppose it's the time of night...
|
That work! About me pushing my luck a bit? What if I want that "100" thumb size to be for anything that is below the first post? My approach to that was going to be to reset all thumbs at 100 and duplicate attachment.php into attachement2.php which will call functions_image2.php where I would hardcode the values, and then use conditionals in the templates <if condition="$post[postcount] == 1"> to call attachment2.php (with the 300 width). This way, the first post which is the main article will have the big image and all subsequent posts would be at 100, regardless of size. Is that feasible?