forum.coppermine-gallery.net

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://forum.coppermine-gallery.net/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

Code: [Select]
$rowset[$key]['caption_text'] = $caption;

and add in the new caption on a line above that

Code: [Select]
$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