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: Use file title or filename as tooltip for cpg1.5.x  (Read 15492 times)

0 Members and 1 Guest are viewing this topic.

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 808
    • Timos-Welt
Use file title or filename as tooltip for cpg1.5.x
« on: January 22, 2010, 05:02:50 pm »

This plugin will change the html title attribute of thumbnails. Once installed, if a visitor's mouse pointer rests on a thumbnail, it will display
- the file title (if the uploader has set one),
- else the filename,
removing the standard title attribute.
« Last Edit: December 08, 2010, 12:23:56 pm by Αndré »
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Better thumb tooltip for cpg1.5.x
« Reply #1 on: January 22, 2010, 09:17:53 pm »

Excellent work. ;D
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Better thumb tooltip for cpg1.5.x
« Reply #2 on: January 23, 2010, 06:23:47 pm »

Fixed typo (resulting in an error message in the plugin manager) in r7117.
Logged

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 808
    • Timos-Welt
Re: Use file title or filename as tooltip for cpg1.5.x
« Reply #3 on: January 29, 2010, 04:32:57 pm »

Update to 0.5 using new plugin hook for filmstrip thumbnails.
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: Use file title or filename as tooltip for cpg1.5.x
« Reply #4 on: January 31, 2010, 11:19:40 am »

Using newly-introduced plugin hooks requires the minimum requirement variable $plugin_cpg_version['min'] to be modified as well, see Assign coppermine version to a plugin and add check to plugin manager (dev-only thread).
« Last Edit: January 31, 2010, 11:25:25 am by Joachim Müller »
Logged

pixstreet

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • pixstreet.co.uk
Re: Use file title or filename as tooltip for cpg1.5.x
« Reply #5 on: December 07, 2010, 09:48:55 pm »

Does not work with cpg 1.5.10  :-\
Logged

pixstreet

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • pixstreet.co.uk
Re: Use file title or filename as tooltip for cpg1.5.x
« Reply #6 on: December 07, 2010, 09:52:37 pm »

Shows only the first letters, even here
http://pics.timos-welt.de/ ???
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Use file title or filename as tooltip for cpg1.5.x
« Reply #7 on: December 07, 2010, 10:01:34 pm »

What exactly happens?
Logged

Timos-Welt

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 808
    • Timos-Welt
Re: Use file title or filename as tooltip for cpg1.5.x
« Reply #8 on: December 08, 2010, 12:00:04 pm »

Shows only one letter as tool tip instead of the full pic title.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Use file title or filename as tooltip for cpg1.5.x
« Reply #9 on: December 08, 2010, 12:05:12 pm »

I'll have a look at that issue.
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Use file title or filename as tooltip for cpg1.5.x
« Reply #10 on: December 08, 2010, 12:24:14 pm »

Version 1.0 attached to initial post.
Logged

pixstreet

  • Coppermine novice
  • *
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 25
    • pixstreet.co.uk
Re: Use file title or filename as tooltip for cpg1.5.x
« Reply #11 on: December 08, 2010, 04:13:39 pm »

Excellent work  :)
Logged

afri-explore

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Use file title or filename as tooltip for cpg1.5.x
« Reply #12 on: February 05, 2012, 12:05:57 am »

This works for me, but another related question.

When you right-click and save as the file name is used as default file name.
That defeats the object of this plugin.

Any suggestions to stop that, such as transparent overlay over thumbnails as well?
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Use file title or filename as tooltip for cpg1.5.x
« Reply #13 on: March 05, 2012, 05:00:44 pm »

That defeats the object of this plugin.
That's not true, it just matches your intention. Any further discussion about what afri-explore tries to accomplish can be found here (and should stay out of this plugin announcement thread): http://forum.coppermine-gallery.net/index.php/topic,74374.0.html
Logged

nowordneeded

  • Coppermine frequent poster
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Female
  • Posts: 224
Re: Use file title or filename as tooltip for cpg1.5.x
« Reply #14 on: October 24, 2013, 05:24:48 am »

I love this plugin, however, is there a way to add styling to it? I have a tooltip available on my Wordpress main site here: http://richardmadden.org. The gallery I'm running is running fine on CPG 1.15.20 and the gallery is located here: http://richardmadden.org/gallery. I installed this plugin but I want to offer the rollover styling that is on my main site. See attachment.

Logged
Sometimes my musings are too confusing for someone not inside my head.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: Use file title or filename as tooltip for cpg1.5.x
« Reply #15 on: October 31, 2013, 02:34:14 pm »

That question is not related to this plugin, as it just modifies the content of the title attribute. Instead, it's a generic HTML/CSS (maybe also JS) question. If you know which code is responsible for that output, we can help you to add it to Coppermine. Please search Google for solution and you'll find something like this (which still differs from your solution): http://stackoverflow.com/questions/2011142/how-to-change-the-style-of-title-attribute-inside-the-anchor-tag
Logged
Pages: [1]   Go Up
 

Page created in 0.032 seconds with 20 queries.