forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: BryanEx on October 30, 2010, 10:26:50 pm

Title: Removing all alt tag info
Post by: BryanEx 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 (http://www.stonebriarfarm.com/photos/index.php)
Title: Re: Removing all alt tag info
Post by: BryanEx 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.

Title: Re: Removing all alt tag info
Post by: BryanEx 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="" />';