Use file title or filename as tooltip for cpg1.5.x Use file title or filename as tooltip for cpg1.5.x
 

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

Use file title or filename as tooltip for cpg1.5.x

Started by Timos-Welt, January 22, 2010, 05:02:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Timos-Welt

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.

phill104

It is a mistake to think you can solve any major problems just with potatoes.

Αndré

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

Timos-Welt

Update to 0.5 using new plugin hook for filmstrip thumbnails.

Joachim Müller

#4
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).

pixstreet


pixstreet


Αndré


Timos-Welt

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

Αndré


Αndré


pixstreet


afri-explore

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?

Αndré

Quote from: afri-explore on February 05, 2012, 12:05:57 AM
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

nowordneeded

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.

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

Αndré

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