coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: net on January 19, 2009, 10:03:06 AM

Title: Change what shows on "Mouseoverimage" thumbnail
Post by: net on January 19, 2009, 10:03:06 AM
Hi,

I'm trying to modify what shows when you put your mouse over a thumbnail, but i can't find the code for it.

Example: when i drag my mouse over a thumbnail i get this information about it:

Filename=beautiful_world_ns.flvFilesize=14643KBDimensions=320x240Date added=Jan 07, 2009

Is there anyway to change this to only display:

Date added= Jan 07, 2009

You can see for your self on my gallery here: http://dkeserver.no-ip.org/gallery (http://dkeserver.no-ip.org/gallery) (drag mouse over thumbnail)

If you could point me into the right direction in the code, ill probably figure it out my self, thanks for the help!
Title: Re: Change what shows on "Mouseoverimage" thumbnail
Post by: Nibbler on January 19, 2009, 02:12:36 PM
Modify include/functions.inc.php here


                        $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);
Title: Re: Change what shows on "Mouseoverimage" thumbnail
Post by: net on January 19, 2009, 04:17:43 PM
Thank you sir!
Title: Re: Change what shows on "Mouseoverimage" thumbnail
Post by: net on July 25, 2009, 12:29:16 PM
Sorry to open this one up again, i've noticed while using "highslide" plugin it uses these data from functions.inc.php to function properly. Is there anyway to tell browers to not display this information on "mouseover" but keep the code in functions.inc.php?

If i remove or modify the code as mentioned above, my highslide picture plugin will fail to work properly.

Thank you!
Title: Re: Change what shows on "Mouseoverimage" thumbnail
Post by: Nibbler on July 25, 2009, 01:41:48 PM
Ask on the highslide thread.
Title: Re: Change what shows on "Mouseoverimage" thumbnail
Post by: hobert on July 27, 2009, 04:27:13 PM
Sami came up with a novel way of affecting the ALT text (the text that shows up when you hold the mouse over a thumbnail) at the point the html is built for a thumbnail via your themes.php, with no modification to the functions.inc.php file -- which also means no problem with updating.  Not to sure how it would affect any plugins, though.

http://forum.coppermine-gallery.net/index.php/topic,34859.0.html (http://forum.coppermine-gallery.net/index.php/topic,34859.0.html)