forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: johanz on September 19, 2008, 10:38:16 pm

Title: File resolution and size under thumbnail
Post by: johanz on September 19, 2008, 10:38:16 pm
So yeah I want to put, so file size and resolution is shown under thumbnail.
I know it has been answered, but I can't find it.
Title: Re: File resolution and size under thumbnail
Post by: Nibbler on September 19, 2008, 10:49:40 pm
http://forum.coppermine-gallery.net/index.php/topic,42445.0.html for resolution.
Title: Re: File resolution and size under thumbnail
Post by: johanz on September 19, 2008, 10:56:36 pm
Thanks,resolution works, now, how to show image size?
Title: Re: File resolution and size under thumbnail
Post by: Nibbler on September 19, 2008, 10:59:09 pm
Maybe something like this:

Code: [Select]
$caption .= '<span class="thumb_caption">' . floor($row['filesize']/1024) . ' KB</span>';
Title: Re: File resolution and size under thumbnail
Post by: johanz on September 19, 2008, 11:00:58 pm
Since they both contain $caption, won't it break something?
Title: Re: File resolution and size under thumbnail
Post by: Nibbler on September 19, 2008, 11:05:18 pm
No. It will add to the $caption you already have.
Title: Re: File resolution and size under thumbnail
Post by: johanz on September 19, 2008, 11:07:58 pm
Looks like it works now