Advanced search  

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

Pages: [1]   Go Down

Author Topic: Disable Thumbnail Alt Text  (Read 2838 times)

0 Members and 1 Guest are viewing this topic.

ibhuntin

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Disable Thumbnail Alt Text
« on: April 06, 2007, 03:15:54 pm »

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.
« Last Edit: April 09, 2007, 04:29:06 pm by Sami »
Logged

Sami

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 3686
  • BMossavari
    • My Project
Re: Disable Thumbnail Alt Text
« Reply #1 on: April 06, 2007, 06:44:56 pm »

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:
Code: [Select]
                        $thumb_list[$i]['image'] = "<img src=\"" . $pic_url . "\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$row['filename']}\" title=\"$pic_title\"/>";

to this:
Code: [Select]
                        $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
« Last Edit: April 06, 2007, 06:50:47 pm by Sami »
Logged
‍I don't answer to PM with support question
Please post your issue to related board

ibhuntin

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Disable Thumbnail Alt Text
« Reply #2 on: April 09, 2007, 02:34:35 pm »

Thanks!  Worked like a charm.  I just added generic ALT text for validation. 
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.