Page 1 of 1

Sort of a cross post

Posted: 20 May 2008, 22:06
by Aikidoka
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.

Thank you for this i

Posted: 20 May 2008, 23:02
by Jan
Thank you for this info...

Jan

Probably should also

Posted: 21 May 2008, 20:24
by Aikidoka
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).'"';