coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: netlovers on March 21, 2007, 09:11:03 PM

Title: Showing resolutions in thumbnail page.
Post by: netlovers on March 21, 2007, 09:11:03 PM
Hi
I wanna show every picture resolution on thumbnail page.
I wanna do exactly as shown in this pic.
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fimgkit.com%2Fguest%2Fres.jpg&hash=eb6da5024c3f498e22b12b31dd1b3c3f45a22334)
Title: Re: Showing resolutions in thumbnail page.
Post by: Nibbler on March 21, 2007, 10:14:37 PM
include/functions.inc.php, look for the build_caption() function, find


$rowset[$key]['caption_text'] = $caption;


and add in the new caption on a line above that

$caption .= '<span class="thumb_caption">'.$row['pwidth'] . ' x ' . $row['pheight'] .'</span>';
Title: Re: Showing resolutions in thumbnail page.
Post by: AzzIzz on September 07, 2017, 01:20:23 PM
hey, the script works fine, but it doesn't update the resolution for images that has been replaced with file replacer plugin. is there any solution to that?
Title: Re: Showing resolutions in thumbnail page.
Post by: ron4mac on September 07, 2017, 05:00:26 PM
You may want to clear your cache.
Title: Re: Showing resolutions in thumbnail page.
Post by: AzzIzz on September 08, 2017, 12:06:25 PM
Done it, still shows the resolution of the first photo