It’s simple really. I’m not sure of the line numbers in an unedited thumbnailforexcerpts.php, but just scroll down towards the bottom and there are a couple of echos that output the links and images. Just wrap each attribute value with a single quote or escape to use double quotes and close the image tags. Looks something like this (my lines 124-133):
echo (TFE_LINK=="yes"?"<a href='".get_permalink($id)."'>":"")."<img src='".$img2."' class='".TFE_CLASS."' hspace='".TFE_SPACE."' align='".TFE_ALIGN."' $condsize='".$tfesize."' ".(TFE_TITLE=="yes"?"alt='".$tit1."' title='".$tit1."'":"")." border='0'/>".(TFE_LINK=="yes"?"</a>":"");
}
else {
$condsize = "width";
if ((TFE_MAXSIZE=="yes") && extension_loaded('gd') && function_exists('gd_info')) {
$im = imagecreatefromjpeg(realpath(".")."/".substr($img1,stripos($img1,"wp-content")));
if(imagesx($im)<imagesy($im))
$condsize = "height";
}
echo (TFE_LINK=="yes"?"<a href='".get_permalink($id)."'>":"")."<img src='".$img1."' class='".TFE_CLASS."' hspace='".TFE_SPACE."' align='".TFE_ALIGN."' $condsize='".$tfesize."' ".(TFE_TITLE=="yes"?"alt='".$tit1."' title='".$tit1."'":"")." border='0'/>".(TFE_LINK=="yes"?"</a>":"");
thanks, that’s the fix i’ve been looking for!
lines 124 > 133 are just plain wrong in the original plugin. someone hear an update coming?
The update has come and is XHTML valid.