forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: johanz on September 19, 2008, 09:13:09 pm

Title: File info squished
Post by: johanz 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?
Title: Re: File info squished
Post by: Nibbler 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.
Title: Re: File info squished
Post by: johanz on September 19, 2008, 09:21:13 pm
I can't understand where to add spaces  :-\
Title: Re: File info squished
Post by: Nibbler on September 19, 2008, 09:33:29 pm
Find "\n" and replace with " ".
Title: Re: File info squished
Post by: johanz 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
Title: Re: File info squished
Post by: Joachim Müller 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.