[Solved]: there's no complete answer for "thumbnail on mouseover", please give one. [Solved]: there's no complete answer for "thumbnail on mouseover", please give one.
 

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]

Main Menu

[Solved]: there's no complete answer for "thumbnail on mouseover", please give one.

Started by albertvillain, May 22, 2008, 05:08:04 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

albertvillain

I spent hours in the forum searching for all keywords to this query but no answer is complete enough to help a non-html freak get rid of the picture info that appears when you place your mouse tip over a thumbnail.

I found this here by Gaugau:

"as there are several kinds of thumbs, there are several places to look: edit /include/funtions.inc.php and search for the term "<img" - you'll notice what to edit..."

but by always being so brief in answering, its not helpful for some novice like me and so the question will be asked over and over again.

please write where to start with, in theme.php? in style.css? in language.php?

so far I understand that I have to search for this:

                       $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);

and erase it but where to start with?

Thank you.

Fabricio Ferrero

Hi, remember to back up before modifying files.

As Gaugau said, edit the file funtions.inc.php . Perhaps you didn't get quite well what he meant.

Go to, 'include' folder and search 'functions.inc.php' file and edit it. Don't erase the entire array. Just erase what you don't want to appear anymore. I think if you are newbie, you should not edit functions.inc.php file, but if you really need it. Just do it.  ;)

Bye, post your result so it will be an entire answer for this thread. (If there isn't already)
Read Docs and Search the Forum before posting. - Soporte en español
--*--
Fabricio Ferrero's Website

Catching up! :)

albertvillain

:-* Thank you so much! Perfect, it works now! I would have never even noticed that there was an Include folder, and all the millions PHP files that one can open and do stuff in.

So, to give a complete answer from a newbie for future newbies:

If you want to totally get rid of the little window with file info (file name, size, date uploaded) that appears when tool tip (mouse) hovers over a thumbnail visible the Random pictures area or when opening a folder:

open the include folder
open the functions.inc.php
scroll down a little more than halfway and find this title:
**
* display_thumbnails()
*
* Generates data to display thumbnails of pictures in an album

inside that department search for this and erase it completely if you want to get rid of the window or erase only parameters you don't want displayed:

$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);


I did it and works perfectly. Thanks for the help!

And yes, remember to back up the php before cutting around! I forgot to do this yesterday with the English language php and my gallery stopped working due to my wrong edits in that list. Thanx god there is also British English in this world, so I could copy the php from British and paste it into English and it worked and I could save the day. ;D ;D ;D

Joachim Müller

Quote from: albertvillain on May 22, 2008, 07:07:23 PM
And yes, remember to back up the php before cutting around!
Indeed!

Quote from: albertvillain on May 22, 2008, 07:07:23 PMI forgot to do this yesterday with the English language php and my gallery stopped working due to my wrong edits in that list. Thanx god there is also British English in this world, so I could copy the php from British and paste it into English and it worked and I could save the day. ;D ;D ;D
Well, re-downloading the coppermine package, extracting the US English language file and uploading that file would have done the trick just as well  ;).