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: File info squished  (Read 3128 times)

0 Members and 1 Guest are viewing this topic.

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
File info squished
« on: September 19, 2008, 09:13:09 pm »

As shown in the picture, all info is squished and it has no spaces between it.
And how do I make so picture's resolution and size is shown under it's thumbnail?
Logged

Nibbler

  • Guest
Re: File info squished
« Reply #1 on: September 19, 2008, 09:15:57 pm »

Modify functions.inc.php and add in spaces instead of the nonfunctioning newlines.

Code: [Select]
                        $pic_title =$lang_display_thumbnails['filename'].$row['filename']."\n".
                                $lang_display_thumbnails['filesize'].($row['filesize'] >> 10).$lang_byte_units[1]."\n".
                                $lang_display_thumbnails['dimensions'].$row['pwidth']."x".$row['pheight']."\n".
                                $lang_display_thumbnails['date_added'].localised_date($row['ctime'], $album_date_fmt);

One question per thread please. I'm sure I've already posted how to get the size and/or dimensions under the pic so search the board.
Logged

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: File info squished
« Reply #2 on: September 19, 2008, 09:21:13 pm »

I can't understand where to add spaces  :-\
Logged

Nibbler

  • Guest
Re: File info squished
« Reply #3 on: September 19, 2008, 09:33:29 pm »

Find "\n" and replace with " ".
Logged

johanz

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 54
Re: File info squished
« Reply #4 on: September 19, 2008, 10:23:01 pm »

Please help with showing file size under thumbnail, I searched, but CANT find.
It shows so much wrong results I cant find
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: File info squished
« Reply #5 on: September 19, 2008, 10:28:42 pm »

Then ask that question in a separate thread - Nibbler already told you about the "one question per thread" policy. You agreed to respect it when signing up.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.