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: Removing all alt tag info  (Read 2349 times)

0 Members and 1 Guest are viewing this topic.

BryanEx

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
    • Stonebriar Farm
Removing all alt tag info
« on: October 30, 2010, 10:26:50 pm »

I'm looking to remove all image "alt tag" info from my newly installed gallery.  I've had several tries at removing this variable but so far without luck.  As the attached screen capture shows, I get picture info displayed when I mouse-over thumbs in the random images box on the main page, the thumbs view of an album's contents, and in the film strip below a displayed image.  I'm guessing that there is some type of pic_info function that must be removed in index.php, thumbs.php, & displayimage.php if I do not want this info to display but I can't seem to find it.  Any help would be appreciated...

Thanks
Bryan

gallery located at http://www.stonebriarfarm.com/photos/index.php
Logged

BryanEx

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
    • Stonebriar Farm
Re: Removing all alt tag info
« Reply #1 on: October 31, 2010, 12:54:32 pm »

Update... I've manged to remove the image information (alt tag) from both the random images and the album view pages without errors but still looking for where the alt tag is called for the film strip on displayimage.php.

In include/functions.inc.php I found
Code: [Select]
             $thumb_list[$i]['image']        = '<img src="' . $pic_url . '" class="image" ' . $image_size['geom'] . ' border="0" alt="' . $row['filename'] . '" title="' . $pic_title . '" />'; 
and changed it to
Code: [Select]
            $thumb_list[$i]['image']        = '<img src="' . $pic_url . '" class="image" ' . $image_size['geom'] . ' border="0" alt="" />';

Just the film strip to alter and all is good with my Coppermine install.

Logged

BryanEx

  • Coppermine newbie
  • Offline Offline
  • Posts: 3
    • Stonebriar Farm
Re: Removing all alt tag info
« Reply #2 on: October 31, 2010, 01:29:17 pm »

Finally got it to work.

include/functions.inc.php

Code: [Select]
            $thumb_list[$i]['image']      = '<img src="' . $pic_url . '" class="strip_image" border="0" alt="' . $row['filename'] . '" title="' . $pic_title . '" />';

changed to
Code: [Select]
            $thumb_list[$i]['image']      = '<img src="' . $pic_url . '" class="strip_image"  border="0" alt="" />';
Logged
Pages: [1]   Go Up
 

Page created in 0.03 seconds with 20 queries.