Disable Thumbnail Alt Text Disable Thumbnail Alt Text
 

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

Disable Thumbnail Alt Text

Started by ibhuntin, April 06, 2007, 03:15:54 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ibhuntin

I am using Coppermine on a site of mine and would like to disable the alt text on the thumbnails so that the file name, size and other information do not show when the mouse is hovered over the image.  Can anyone tell me if there is a way to do this through the configuration or admin tools (I have looked but not found one) or where in the files/directory I can go to find the code that establishes the alt text? 

Thanks in advance.

Sami

#1
It's not recommended to change core files at all,
BTW you can edit {gallery-root}/include/functions.inc.php file & change display_thumbnails function (around line #1706)

change this:

                        $thumb_list[$i]['image'] = "<img src=\"" . $pic_url . "\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$row['filename']}\" title=\"$pic_title\"/>";


to this:

                        $thumb_list[$i]['image'] = "<img src=\"" . $pic_url . "\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"\" title=\"\"/>";


keep in mind that you should have alt attribute for html validation
‍I don't answer to PM with support question
Please post your issue to related board

ibhuntin

Thanks!  Worked like a charm.  I just added generic ALT text for validation.