coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: smartwebs on June 09, 2006, 02:59:16 PM

Title: Filename alt tag removal
Post by: smartwebs on June 09, 2006, 02:59:16 PM
Hi

Can I turn off the Filename/Date/Image size/Dimensions, alt tag that appears when we mouseover a thumbnail?

Thank you
Title: Re: Filename alt tag removaljavascript:void(0);
Post by: Gizmo on June 09, 2006, 05:50:49 PM
I searched for a solution and couldn't find one (too bad) so this is the only way I could get it to work. First, make a backup of functions.inc.php then search for this string in TWO places

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


and replace with

$thumb_list[$i]['image'] = "<img src=\"" . $pic_url . "\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$row['filename']}\" />";


Upload to your include/ directory. Remember... make a backup of functions.inc.php first!

Cheers,

Billy

PS. If there is a better solution for this, I'd like to hear about it. Thanks!
Title: Re: Filename alt tag removal
Post by: Stramm on June 09, 2006, 05:57:12 PM
for me the search (restricted to only my posts) spits out eg.
http://forum.coppermine-gallery.net/index.php?topic=31277.0
http://forum.coppermine-gallery.net/index.php?topic=28786.0
Title: Re: Filename alt tag removal
Post by: smartwebs on June 12, 2006, 06:24:25 PM
Thanks one and all.

I have finally sorted this using one of Stramm's suggestions. I remember that this solution worked before in version 1.31

But thanks again for your invaluable help