forum.coppermine-gallery.net

Support => cpg1.5 plugins => cpg1.5.x Support => cpg1.5 plugin contributions => Topic started by: Timos-Welt on January 22, 2010, 05:02:50 pm

Title: Use file title or filename as tooltip for cpg1.5.x
Post by: Timos-Welt 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.
Title: Re: Better thumb tooltip for cpg1.5.x
Post by: phill104 on January 22, 2010, 09:17:53 pm
Excellent work. ;D
Title: Re: Better thumb tooltip for cpg1.5.x
Post by: Αndré on January 23, 2010, 06:23:47 pm
Fixed typo (resulting in an error message in the plugin manager) in r7117.
Title: Re: Use file title or filename as tooltip for cpg1.5.x
Post by: Timos-Welt on January 29, 2010, 04:32:57 pm
Update to 0.5 using new plugin hook for filmstrip thumbnails.
Title: Re: Use file title or filename as tooltip for cpg1.5.x
Post by: Joachim Müller 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 (http://forum.coppermine-gallery.net/index.php/topic,63279.0.html) (dev-only thread).
Title: Re: Use file title or filename as tooltip for cpg1.5.x
Post by: pixstreet on December 07, 2010, 09:48:55 pm
Does not work with cpg 1.5.10  :-\
Title: Re: Use file title or filename as tooltip for cpg1.5.x
Post by: pixstreet on December 07, 2010, 09:52:37 pm
Shows only the first letters, even here
http://pics.timos-welt.de/ (http://pics.timos-welt.de/) ???
Title: Re: Use file title or filename as tooltip for cpg1.5.x
Post by: Αndré on December 07, 2010, 10:01:34 pm
What exactly happens?
Title: Re: Use file title or filename as tooltip for cpg1.5.x
Post by: Timos-Welt on December 08, 2010, 12:00:04 pm
Shows only one letter as tool tip instead of the full pic title.
Title: Re: Use file title or filename as tooltip for cpg1.5.x
Post by: Αndré on December 08, 2010, 12:05:12 pm
I'll have a look at that issue.
Title: Re: Use file title or filename as tooltip for cpg1.5.x
Post by: Αndré on December 08, 2010, 12:24:14 pm
Version 1.0 attached to initial post.
Title: Re: Use file title or filename as tooltip for cpg1.5.x
Post by: pixstreet on December 08, 2010, 04:13:39 pm
Excellent work  :)
Title: Re: Use file title or filename as tooltip for cpg1.5.x
Post by: afri-explore 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?
Title: Re: Use file title or filename as tooltip for cpg1.5.x
Post by: Αndré 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
Title: Re: Use file title or filename as tooltip for cpg1.5.x
Post by: nowordneeded 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 (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 (http://richardmadden.org/gallery). I installed this plugin but I want to offer the rollover styling that is on my main site. See attachment.

Title: Re: Use file title or filename as tooltip for cpg1.5.x
Post by: Αndré 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