Filename alt tag removal Filename alt tag removal
 

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

Filename alt tag removal

Started by smartwebs, June 09, 2006, 02:59:16 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

smartwebs

Hi

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

Thank you
M

Gizmo

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!
Did you read the manual first???? Taking 2 minutes to backup your files can save you hours of wondering what you screwed up.
Billy Bullock - BullsEyePhotos Blog of Indecision

Stramm


smartwebs

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
M