Advanced search  

News:

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

Pages: [1]   Go Down

Author Topic: File resolution and size under thumbnail  (Read 2366 times)

0 Members and 1 Guest are viewing this topic.

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
File resolution and size under thumbnail
« 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.
Logged

Nibbler

  • Guest
Logged

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: File resolution and size under thumbnail
« Reply #2 on: September 19, 2008, 10:56:36 pm »

Thanks,resolution works, now, how to show image size?
Logged

Nibbler

  • Guest
Re: File resolution and size under thumbnail
« Reply #3 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>';
Logged

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: File resolution and size under thumbnail
« Reply #4 on: September 19, 2008, 11:00:58 pm »

Since they both contain $caption, won't it break something?
Logged

Nibbler

  • Guest
Re: File resolution and size under thumbnail
« Reply #5 on: September 19, 2008, 11:05:18 pm »

No. It will add to the $caption you already have.
Logged

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: File resolution and size under thumbnail
« Reply #6 on: September 19, 2008, 11:07:58 pm »

Looks like it works now
Logged
Pages: [1]   Go Up
 

Page created in 0.018 seconds with 21 queries.