Disable Thumbnail Alt Text Disable Thumbnail Alt Text
 

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]

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.