Announcement

  •  » Extensions
  •  » [Thumbnail Tooltip] ability to hide tooltip

#1 2015-05-26 14:09:38

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

[Thumbnail Tooltip] ability to hide tooltip

Hello sarybe,

[extension by sarybe] Thumbnail Tooltip offers the option to "Display the title of the picture : no", but it doesn't really work. The best I can do is to have only the photo title as tooltip. Here is a fix:

Code:

[pierrick@pierrick-desktop] ~/public_html/piwigo/dev/trunk/plugins/ThumbnailTooltip/include
$ svn diff
Index: class.inc.php
===================================================================
--- class.inc.php       (revision 31175)
+++ class.inc.php       (working copy)
@@ -35,8 +35,8 @@
        );
-       if ($params['display_name']==true) {
-      foreach($tpl_var as $cle=>$valeur) {
+    foreach($tpl_var as $cle=>$valeur) {
+      if ($params['display_name']==true) {
         $query = "
                  SELECT name, hit, comment, author, rating_score, CONCAT(width, 'x', height) AS dimensions, filesize FROM ".IMAGES_TABLE."
                  WHERE id = ".(int)$tpl_var[$cle]['id']."
@@ -91,6 +91,10 @@
 
         $tpl_var[$cle]['TN_TITLE'] = $title;
       }
+      else
+      {
+        $tpl_var[$cle]['TN_TITLE'] = null;
+      }
     }
     return $tpl_var;

Are you OK? May I commit it?

Offline

 

#2 2015-05-26 14:46:49

sarybe
Member
2014-03-08
11

Re: [Thumbnail Tooltip] ability to hide tooltip

Hi Pierrick,

No problem for change. Basically I did not delete the original tooltip (the title = ""), just remove the changes made by the extension. If you think it is better to completely disable tooltips, so why not :)

So you do the mods or should I do?

Last edited by sarybe (2015-05-27 11:43:57)

Offline

 

#3 2015-05-26 15:12:29

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [Thumbnail Tooltip] ability to hide tooltip

OK, I just commited my change in [Subversion] r31176. You can update your copy and if it's fine for you, you can release a new version of your plugin :-)

Offline

 

#4 2015-05-27 11:12:48

sarybe
Member
2014-03-08
11

Re: [Thumbnail Tooltip] ability to hide tooltip

Stupid question, but how do we to get back it login/password for the svn when we forgot them?

Offline

 

#5 2015-05-27 13:03:55

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13791

Re: [Thumbnail Tooltip] ability to hide tooltip

Email sent with new password :-)

Offline

 
  •  » Extensions
  •  » [Thumbnail Tooltip] ability to hide tooltip

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact