coppermine-gallery.com/forum

Support => Older/other versions => cpg1.3.x Support => Topic started by: Definitive on October 04, 2005, 12:44:11 PM

Title: displaying filesize (widthxheight) and filename in thumbnail view
Post by: Definitive on October 04, 2005, 12:44:11 PM
is it possible to display the original file size (widthxheight) and filename in thumbnail view?
thanks
Title: Re: displaying filesize (widthxheight) and filename in thumbnail view
Post by: Abbas Ali on October 04, 2005, 01:12:36 PM
Edit include/functions.inc.php

Add


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


After (somewhere around line 490)


if ($CONFIG['views_in_thumbview']){
   if ($rowset[$key]['title']){$caption .= "&nbsp;&ndash;&nbsp;";}
   $caption .= sprintf($lang_get_pic_data['n_views'], $rowset[$key]['hits']);
}
    $caption .= "</span>";


This will show the filename and size in thumbnail view for all the numeric albums.

Similarly for meta albums like lastup, random etc... you will find different cases written in get_pic_data function. Modify them on the lines of above code.
Title: Re: displaying filesize (widthxheight) and filename in thumbnail view
Post by: Definitive on October 04, 2005, 01:26:10 PM
thanks indeed (esselamun aleykum ve rahmetullah)