Sort of a cross post, but the file is different for the plugin. I like the image title as a tooltip so it appears immediately with the cursor going over the image. Here's how to do it with the random image module.
Edit phocagallery.php. The file is in plugins/content.
Find the code JHTML::_('behavior.modal', 'a.modal-button');
Add before or afterJHTML::_('behavior.tooltip');
Find the code .'<div class="phocagallery-box-file-third">' . "\n"
Replace it with .'<div class="hasTip phocagallery-box-file-third" title="'.$image_object->title.
'">' . "\n"
When I open the file with an actual editor with line number, I'll add those also.
Image title as tooltip for plugin
-
- Phoca Newbie
- Posts: 4
- Joined: 20 May 2008, 21:53
- Location: United States of America
- Jan
- Phoca Hero
- Posts: 48386
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Thank you for this i
Thank you for this info...
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Newbie
- Posts: 4
- Joined: 20 May 2008, 21:53
- Location: United States of America
Probably should also
Probably should also remove the anchor tag's title text if going to tooltips. This will keep the title from popping up over the tooltip if the user leave the mouse stationary.
Find
.'<a class="'.$button->methodname.'" title="'.$image->title.'" href="'. JRoute::
_($image->link).'"';
Replace with
.'<a class="'.$button->methodname.'" href="'. JRoute::_($image->link).'"';
Find
.'<a class="'.$button->methodname.'" title="'.$image->title.'" href="'. JRoute::
_($image->link).'"';
Replace with
.'<a class="'.$button->methodname.'" href="'. JRoute::_($image->link).'"';