PDA

View Full Version : image next/previous thumbnail tag


TheDavidWhite
05-03-2006, 06:50 AM
the two tags <IMAGE_PREVIOUS_THUMBNAIL> and the equivalent NEXT one are created using the width and height of the current image. Suggested change line for PREVIOUS shown below. Similar needed for NEXT


// list($local_width,$local_height,$type,$attr) = getimagesize("thumbnails/thumb_$image_name"); // ERROR, uses current image
list($local_width,$local_height,$type,$attr) = getimagesize("thumbnails/thumb_$image_previous_name"); //DAVID MOD

$image_previous_thumbnail = "<a href='$showprefix$image_previous_id'><img src='thumbnails/thumb_$image_previous_name' width='$local_width' height='$local_height' alt='$image_previous_title' title='$image_previous_title' /></a>";

Connie
05-05-2006, 07:09 PM
thanks for the hint, we will think about it!

It is for sure something for a new version after 1.5...

Joe[y]
05-06-2006, 08:14 AM
fixed.

hdt
10-15-2006, 04:56 AM
I've just discovered a similar bug. It's for <IMAGE_THUMBNAIL_ROW> and <IMAGE_THUMBNAIL_ROW_REV> where all thumbnails on the current page are displayed with the width/height of the current image's thumbnail.

line 354 & 368 in index.php are currently :

list($local_width,$local_height,$type,$attr) = getimagesize("thumbnails/thumb_$image_name");


I believe it should be

list($local_width,$local_height,$type,$attr) = getimagesize("thumbnails/thumb_$image");

GeoS
11-23-2006, 11:35 PM
Fixed in SVN. Im closing this topic.