Filename alt tag removal Filename alt tag removal
 

News:

CPG Release 1.6.28
added submissions from {406man}
cleaned up a few PHP (8.4) deprecations
fixed PHP deprecation in calendar
removed security vulnerability
(please upgrade when possible)

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