Hello Tomka,
[extension by Tomka] 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:
[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
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 plg (2025-03-31 14:00:22)
Offline
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
Stupid question, but how do we to get back it login/password for the svn when we forgot them?
Offline
Email sent with new password :-)
Offline