coppermine-gallery.com/forum

Support => Older/other versions => cpg1.2 Standalone Support => Topic started by: bit bit spears on February 19, 2004, 05:50:53 AM

Title: how can i disable the alt text on an image?
Post by: bit bit spears on February 19, 2004, 05:50:53 AM
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Ftangiblebrit.com%2Fi%2Fpreview.dll%2Ftmp%2Fdur%2Fhrs%2F795%2F9283475.jpg&hash=375de794b28c9d7c9cd88447eee860f210c6bc68)

I have searched everywhere and haven't found where to remove this text. I found how to remove it off of an intermediate image, but how do i remove it off of a thumbnail, and a HiRes/Fullsize image? :wink:
Title: how can i disable the alt text on an image?
Post by: Joachim Müller on February 19, 2004, 07:39:13 AM
to remove the tooltip that is displayed when hovering with the mouse over an image (title attribute of the html-tag <img>), edit displayimage.php and findecho "<a href=\"javascript: window.close()\"><img src=\"" . path2url($picname) . "\" $imagesize[3] class=\"image\" border=\"0\" alt=\"\" title=\"$picfile\n" . $lang_fullsize_popup['click_to_close'] . "\"/></a><br />\n";Replace withecho "<a href=\"javascript: window.close()\"><img src=\"" . path2url($picname) . "\" $imagesize[3] class=\"image\" border=\"0\" alt=\"\" title=\"" . $lang_fullsize_popup['click_to_close'] . "\"/></a><br />\n";
To replace the tooltip on the thumbnails, edit include/functions.inc.php and findtitle=\"$pic_title\"> (exists 2 times). Replace withtitle=\"\">

GauGau
Title: how can i disable the alt text on an image?
Post by: bit bit spears on February 20, 2004, 02:39:25 AM
thanks gaugau
Title: how can i disable the alt text on an image?
Post by: bit bit spears on February 20, 2004, 03:06:54 AM
gaugau

it worked on the thumbnails of albums

but

didn't work on the lastuploaded pictures...
Title: how can i disable the alt text on an image?
Post by: Joachim Müller on February 20, 2004, 01:24:06 PM
do a search on the coppermine code for "title=" and manipulate it accordingly (that's what I did to answer your posting). Maybe I haven't looked into all locations where "title=" appears...

GauGau