Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Disabling roll over that shows the file name  (Read 8067 times)

0 Members and 1 Guest are viewing this topic.

rmp

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Disabling roll over that shows the file name
« on: February 22, 2012, 12:43:07 pm »

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)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Disabling roll over that shows the file name
« Reply #1 on: March 01, 2012, 03:15:56 pm »

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

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

rmp

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Disabling roll over that shows the file name
« Reply #2 on: March 03, 2012, 11:48:43 am »

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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Disabling roll over that shows the file name
« Reply #3 on: March 05, 2012, 02:18:24 pm »

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
Code: [Select]
$info[$lang_common['filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']);and replace with
Code: [Select]
//$info[$lang_common['filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']);
Logged

rmp

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Disabling roll over that shows the file name
« Reply #4 on: March 09, 2012, 07:59:16 pm »

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

 
Logged

rmp

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Disabling roll over that shows the file name
« Reply #5 on: March 09, 2012, 08:25:33 pm »

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

 
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Disabling roll over that shows the file name
« Reply #6 on: March 12, 2012, 10:46:05 am »

My first reply describes how to disable the thumbnail titles.
Logged

rmp

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Disabling roll over that shows the file name
« Reply #7 on: March 15, 2012, 04:22:46 am »

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
Logged

rmp

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Disabling roll over that shows the file name
« Reply #8 on: March 15, 2012, 06:05:51 am »

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.

Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Disabling roll over that shows the file name
« Reply #9 on: March 15, 2012, 11:50:08 am »

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

rmp

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Disabling roll over that shows the file name
« Reply #10 on: March 16, 2012, 07:48:57 am »

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
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Disabling roll over that shows the file name
« Reply #11 on: March 16, 2012, 09:09:46 am »

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.
Logged

rmp

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Disabling roll over that shows the file name
« Reply #12 on: March 16, 2012, 12:08:02 pm »

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
Logged

rmp

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Disabling roll over that shows the file name
« Reply #13 on: March 24, 2012, 11:28:32 pm »

Those fixes have worked after the update was applied.

Thanks.
Logged

rmp

  • Coppermine newbie
  • Offline Offline
  • Posts: 13
Re: Disabling roll over that shows the file name
« Reply #14 on: March 25, 2012, 02:01:57 am »


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)
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Disabling roll over that shows the file name
« Reply #15 on: March 26, 2012, 11:34:28 am »

Open include/functions.inc.php, find
Code: [Select]
list($pic_title) = CPGPluginAPI::filter('thumb_strip_html_title', array($pic_title, $row));and below, add
Code: [Select]
$pic_title = '';
Logged
Pages: [1]   Go Up
 

Page created in 0.023 seconds with 19 queries.