forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: idotal on April 17, 2010, 02:02:51 pm

Title: mouse over will show pic resolution
Post by: idotal on April 17, 2010, 02:02:51 pm
hello
how can i do that when the mouse is over the pic tumb it will not only show the pic name and size, but also the pic resolution...??
Title: Re: mouse over will show pic resolution
Post by: phill104 on April 17, 2010, 08:33:55 pm
Please post a link to your site as per the board rules - http://forum.coppermine-gallery.net/index.php/topic,55415.0.html
Title: Re: mouse over will show pic resolution
Post by: idotal on April 17, 2010, 08:36:14 pm
gallery.stargatefun.co.il
Title: Re: mouse over will show pic resolution
Post by: Joachim Müller on April 18, 2010, 11:07:05 am


The title tag for the thumbnail view is being generated in include/functions.inc.php, in the function definition for function display_thumbnails. Replace
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);
with
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['date_added'].localised_date($row['ctime'], $album_date_fmt);
and you should be good. Apply this modification after upgrading, as you will have to re-apply this every time you upgrade, so you better keep a note of your edit.
Title: Re: mouse over will show pic resolution
Post by: idotal on April 21, 2010, 03:43:02 pm
i edit it but it still doesn't show the file resolution....
please check my site and tell me whats wrong...
Title: Re: mouse over will show pic resolution
Post by: phill104 on April 21, 2010, 09:13:23 pm
I've just looked at the thumbs in the filmstrip and the resolution is there for me.
Title: Re: mouse over will show pic resolution
Post by: idotal on April 21, 2010, 09:17:59 pm
i don't see it.
i am using firefox (mac version) and i see the coopermine cms in hebrew(because im israeli...)maybe it matter or something...please help
Title: Re: mouse over will show pic resolution
Post by: Joachim Müller on April 22, 2010, 08:13:56 am
Accessing the gallery in hebrew (http://gallery.stargatefun.co.il/?lang=hebrew) indeed doesn't show the details, while accessing it in a LTR language (e.g. English http://gallery.stargatefun.co.il/?lang=english) shows the expected result. Looks like a bug to me. Needs looking into. On my testbed, this happens with hebrew, but not with arabic. You can conclude that the issue is not related to the difference between RTL and LTR languages, but an issue inherent to Hebrew.
Title: Re: mouse over will show pic resolution
Post by: idotal on April 22, 2010, 05:22:19 pm
ya...i checked the english version, but still it shows the resolution only in the film row...
but in the main page, in the most recent thumb it doesn't show the resolution...and also in the result page (http://gallery.stargatefun.co.il/thumbnails.php?album=4)
Title: Re: mouse over will show pic resolution
Post by: idotal on April 24, 2010, 08:07:47 am
can u tell me what version is this gallery - http://kepek.csillagkapu.hu/index.php
Title: Re: mouse over will show pic resolution
Post by: onthepike on April 24, 2010, 08:11:09 am
can u tell me what version is this gallery - http://kepek.csillagkapu.hu/index.php

<!--Coppermine Photo Gallery 1.4.20 (stable)-->