how can i disable the alt text on an image? how can i disable the alt text on an image?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

how can i disable the alt text on an image?

Started by bit bit spears, February 19, 2004, 05:50:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

bit bit spears

(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:

Joachim Müller

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

bit bit spears


bit bit spears

gaugau

it worked on the thumbnails of albums

but

didn't work on the lastuploaded pictures...

Joachim Müller

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