arras-theme icon indicating copy to clipboard operation
arras-theme copied to clipboard

default thumpnail in sidebar not using thumpnail-Size [moved]

Open zyml opened this issue 12 years ago • 0 comments

This is Issue 98 moved from a Google Code project. Added by 2010-11-08T14:48:54.000Z by [email protected]. Please review that bug for more context and additional comments, but update this bug.

Original labels: Type-Defect, Priority-Medium

Original description

The default thumpnail is shown in picture-size, not using the configured thumpnail-Size for Sidebar.

<b>What steps will reproduce the problem?</b>
1. post am article without an article image
2. setup the widget &quot;Tabbed Sidebar&quot; or &quot;Featured Stories&quot;

<b>What versions of WordPress and Arras Theme are you using?</b>
Wordpress 3.0.1
Arras 1.5.0.1


I took a look into the thumpnails.php and found the problem on Line 76. $empty_thumpnail ist not using width and height. In my installation I fixed it as below:

Move line 76 to line 102 (after $w and $h is set) and manipulate the img-src like this:
$empty_thumbnail = '<img src=&quot;' . get_bloginfo('template_directory') . '/library/timthumb.php?src=/images/thumbnail.png&amp;w=' . $w . '&amp;h=' . $h . '&amp;zc=1&quot; alt=&quot;' . get_the_excerpt() . '&quot; title=&quot;' . get_the_title() . '&quot; />';

zyml avatar Aug 06 '12 17:08 zyml