Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: how can i disable the alt text on an image?  (Read 2622 times)

0 Members and 1 Guest are viewing this topic.

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
how can i disable the alt text on an image?
« on: February 19, 2004, 05:50:53 am »

(https://forum.coppermine-gallery.net/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:
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
how can i disable the alt text on an image?
« Reply #1 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 find
Code: [Select]
echo "<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 with
Code: [Select]
echo "<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 find
Code: [Select]
title=\"$pic_title\"> (exists 2 times). Replace with
Code: [Select]
title=\"\">

GauGau
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
how can i disable the alt text on an image?
« Reply #2 on: February 20, 2004, 02:39:25 am »

thanks gaugau
Logged

bit bit spears

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 240
    • TangibleBrit.com
how can i disable the alt text on an image?
« Reply #3 on: February 20, 2004, 03:06:54 am »

gaugau

it worked on the thumbnails of albums

but

didn't work on the lastuploaded pictures...
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
how can i disable the alt text on an image?
« Reply #4 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
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 14 queries.