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

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

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