Advanced search  

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]

Pages: [1]   Go Down

Author Topic: displaying filesize (widthxheight) and filename in thumbnail view  (Read 2627 times)

0 Members and 1 Guest are viewing this topic.

Definitive

  • Coppermine newbie
  • Offline Offline
  • Posts: 2

is it possible to display the original file size (widthxheight) and filename in thumbnail view?
thanks
« Last Edit: October 04, 2005, 02:05:55 pm by Abbas Ali »
Logged

Abbas Ali

  • Administrator
  • Coppermine addict
  • *****
  • Country: in
  • Offline Offline
  • Gender: Male
  • Posts: 2165
  • Spread the PHP Web
    • Ranium Systems
Re: displaying filesize (widthxheight) and filename in thumbnail view
« Reply #1 on: October 04, 2005, 01:12:36 pm »

Edit include/functions.inc.php

Add

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

After (somewhere around line 490)

Code: [Select]
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.
Logged
Chief Geek at Ranium Systems

Definitive

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: displaying filesize (widthxheight) and filename in thumbnail view
« Reply #2 on: October 04, 2005, 01:26:10 pm »

thanks indeed (esselamun aleykum ve rahmetullah)
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.