View image dimensions and filesize under thumbnail View image dimensions and filesize under thumbnail
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

View image dimensions and filesize under thumbnail

Started by Fo, July 29, 2005, 06:13:56 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fo

Sorry if this has been asked/solved before, I checked around and didn't see it.

I wanted to view image dimensions and filesize under each thumbnail in thumbnails.php. Since you can view them when you hover a thumbnail it should be possible to write them under a thumbnail.

Anyone knows how? I tried.. but failed miserably!

Thanks in advance

Nibbler

Hi,

Similar things have been posted in the past, but here's what you need to do.

include/functions.inc.php:

find:

if($select_columns != '*') $select_columns .= ', title, caption,hits,owner_id,owner_name';

change to:

if($select_columns != '*') $select_columns .= ', title, caption,hits,owner_id,owner_name, pwidth, pheight';

scroll down to

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

and just before/above it, add:

$caption .= "<span class=\"thumb_caption\">{$rowset[$key]['pwidth']} x {$rowset[$key]['pheight']}</span>";

That will apply the caption to regular album thumbnail views. You can apply it to meta albums using a similar method later on in the file.

Fo


CPG Guru

THANKS NIBBLER ,IT ALSO HELPS ME :____---God BlessYou