Page 1 of 1

I like the image tit

Posted: 20 May 2008, 21:58
by Aikidoka
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 mod_phocagallery_random_image.php

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 yo for this in

Posted: 20 May 2008, 23:06
by Jan
thank yo for this info...

Jan

Probably should also

Posted: 21 May 2008, 20:21
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_object->title.'" href="'. J
Route::_($image_object->link).'"';


Replace with
.'<a class="'.$button->methodname.'" href="'. JRoute::_($image_object->link).'"'
;