Disabling roll over that shows the file name Disabling roll over that shows the file name
 

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

Disabling roll over that shows the file name

Started by rmp, February 22, 2012, 12:43:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

rmp

Can you disable the mouse roll over which displays the file name and information.

For a particular reason I do not want this displayed except to the administrator of the site.

version 1.5.6 (yes - needs an update)

Αndré

Quick & dirty: open include/functions.inc.php, find
list($pic_title) = CPGPluginAPI::filter('thumb_html_title', array($pic_title, $row));
and below, add
$pic_title = '';


Better solution: create a plugin and use the hook 'thumb_html_title' to reset the picture title.

rmp

Thanks

I did this and it works in the intermediate image and filmstrip thumbnail bar.  This is a start!

We have the images judged and the problem has been that within the file name, the name of the person is included - this has to be suppressed, so there is no bias in evaluation, 

The other times the roll over file name comes up, are the folder of thumbs, full image and when the display file information is clicked.

I would be happy to stop the file information being displayed - but where?

Can I add another line like the one used in the other two problem places. (full image and folder thumbs)

I'm not a programmer so can't writhe a plugin. just someone who maintains a camer club web site.

Thanks again for the help 

rob

Αndré

There's currently a similar topic dealing with that question. Please have a look at http://forum.coppermine-gallery.net/index.php/topic,74374.0.html

Enabling the transparent overlay in config should suppress the title for the full-sized image and using the code from the other thread should suppress it for the thumbnail view.

The following code change will remove the file name from the file information block. Open displayimage.php, find
$info[$lang_common['filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']);
and replace with
//$info[$lang_common['filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']);

rmp

Yes that worked as required.

The rollover on the large image is still active with the transparent gif.

And the album page just showing all the thumbnails is also still active.

I don't know where to look to make these changes.

Thankyou for the help, much appreciated, I am learning a little about the language switches as I make the changes.

rob


rmp

I have disabled the intermediate display image from within the configuration settings. Now the roll over file name does not show which is whats required.

Just finding where the full page of thumbnails to supress the file name rollover.

rob


Αndré

My first reply describes how to disable the thumbnail titles.

rmp

All the other places have been eliminated except this one.

Yes the line is in the correct place but this did not eliminate the popup text box showing the file information.

This view

http://www.wollongongcameraclub.org.au/gallery/thumbnails.php?album=112

when the mouse rolls over the thumb the filename still shows.  - Filename=N_201202_art|Class.jpgFilesize=494KiBDimentions815x533Dateadded=Feb22.2012

rmp

Rechecked the file include / functions  Having looked at the code  the solution is for the thumbnail strip HTML  which is in the include functions.inc php.


Need to find what the thumbnail page line is called.


Αndré

Please attach your include/functions.inc.php file, as the code change removes the thumbnails titles as expected for me.

rmp

have attached - renamed with txt extention

Another suggestion is to eliminate the rollover function - is the java script?  - as the rollover is not necessary in our situation.( But I need to know where to find that file)


Thanks

Rob

Αndré

Obviously you haven't applied the code change at the correct place. Update your gallery to the latest Coppermine version if you need further support.

rmp

Sorry

I did state the version in my first message. If it was pointed out I would have done the update.

Ill go through the actions which you have mentioned in the thread after the update, and hope that it works out.

thanks for your help.

rob

rmp

Those fixes have worked after the update was applied.

Thanks.

rmp


Sorry

Just rechecked the rollover on the film strip thumbnail.  this still shows the file name size and date.   Its only the filename that I want to suppress.

http://www.wollongongcameraclub.org.au/gallery/displayimage.php?album=112&pid=1875#top_display_media

(have applied the current update 1.5.18)

Αndré

Open include/functions.inc.php, find
list($pic_title) = CPGPluginAPI::filter('thumb_strip_html_title', array($pic_title, $row));
and below, add
$pic_title = '';