Removing all alt tag info Removing all alt tag info
 

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

Removing all alt tag info

Started by BryanEx, October 30, 2010, 10:26:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

BryanEx

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

BryanEx

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
             $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
            $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.


BryanEx

Finally got it to work.

include/functions.inc.php


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


changed to

            $thumb_list[$i]['image']      = '<img src="' . $pic_url . '" class="strip_image"  border="0" alt="" />';