If been trying your software a bit and wondered whether it could be possible to change the information, which is displayed in the hovering tooltips over a thumbnail? I don't know anything about PHP codeing but I found this thread mentioning this code to hide the tooltips
<?php /* Plugin Name: Personal Plugin Version: 1.0 Description: Personal Plugin Plugin URI: http://piwigo.org Author: Author URI: */ add_event_handler('loc_end_index_thumbnails', 'change_thumbnail_title'); function change_thumbnail_title($tpl_thumbnails_var) { foreach (array_keys($tpl_thumbnails_var) as $id) { $tpl_thumbnails_var[$id]['TN_TITLE'] = null; } return $tpl_thumbnails_var; } ?>
With my little ability for logical thinking I guess that
$tpl_thumbnails_var[$id]['TN_TITLE'] = null;
means something like NO information is fetched. Could it be possible to call a language variable instead, and how would the code have to be changed.
Thx
Gardenflow
Offline
would easier if you tell us exactly what you what as tooltip
Offline
I would like to display the text 'click for further info', but dependent of the chosen language. If a language variable is written in the language part of the local files editor, it would be displayed accordingly, right?
Offline
right :)
so use this
<?php /* Plugin Name: Personal Plugin Version: 1.0 */ add_event_handler('loc_end_index_thumbnails', 'change_thumbnail_title'); function change_thumbnail_title($tpl_thumbnails_var) { foreach (array_keys($tpl_thumbnails_var) as $id) { $tpl_thumbnails_var[$id]['TN_TITLE'] = l10n('Click for further info'); } return $tpl_thumbnails_var; } ?>
('l10n' means 'localization')
Offline
OK and many thanks for your quick info.
Offline
Hi,
many thanks for this idea.
$tpl_thumbnails_var[$id]['TN_TITLE'] = l10n('Click for further info');
or
$tpl_thumbnails_var[$id]['TN_TITLE'] = null;
But is it possible to show the remark / description of an image (photo)?
Thank you already for a response.
John
Offline
Hi :-)
Have you see [extension by Tomka] Thumbnail Tooltip
Offline
ddtddt wrote:
Hi :-)
Have you see "[extension by sarybe] Thumbnail Tooltip"
Yes indeed, I saw the extension. But I have an error with "[extension by sarybe] Thumbnail Tooltip":
Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; Thumbnail_Tooltip_IMG has a deprecated constructor in /mypage/bilder/plugins/ThumbnailTooltip/include/class.inc.php on line 3
Warning: Cannot modify header information - headers already sent by (output started at /mypage/plugins/ThumbnailTooltip/include/class.inc.php:3) in /mypage/bilder/include/page_header.php on line 101
flop25 says:
That just your server badly cconfigured in development mode and not in production mode, displaying coding advices.
But I do not know what's to do.
Any help or other ideas?
Addendum: for a solution see: http://piwigo.org/forum/viewtopic.php?id=26585
Last edited by John.B (2016-05-14 09:21:38)
Offline