coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: webfountain on July 18, 2007, 07:29:32 PM

Title: Album Thumbnails - stop displaying filename on mouseover
Post by: webfountain on July 18, 2007, 07:29:32 PM
Hi

I'd like to be able to stop the filename being displayed by the ALT tag when moving the mouse over an album thumbnail

I'm sure it's pretty obvious but it's defeating me

Thanks

Pete
Title: Re: Album Thumbnails - stop displaying filename on mouseover
Post by: Nibbler on July 18, 2007, 07:55:01 PM
include/functions.inc.php - display_thumbnails()


                        $pic_title =$lang_display_thumbnails['filename'].$row['filename']."\n".
                                $lang_display_thumbnails['filesize'].($row['filesize'] >> 10).$lang_byte_units[1]."\n".
                                $lang_display_thumbnails['dimensions'].$row['pwidth']."x".$row['pheight']."\n".
                                $lang_display_thumbnails['date_added'].localised_date($row['ctime'], $album_date_fmt);


Adjust to suit.
Title: Re: Album Thumbnails - stop displaying filename on mouseover
Post by: webfountain on July 18, 2007, 08:05:33 PM
Nibbler

Thanks

Yes, I found that to change what is displayed when doing a mouseover on the images in an album.

What I want to do is remove the filename displayed when you do a mouseover on the thumbnail image of the album, when you are viewing all the albums in a category.

Pete
Title: Re: Album Thumbnails - stop displaying filename on mouseover
Post by: Nibbler on July 18, 2007, 08:19:49 PM
Sorry.

index.php has 2 lines like this:


                $alb_list[$alb_idx]['thumb_pic'] = "<img src=\"" . $pic_url . "\" class=\"image\" {$image_size['geom']} border=\"0\" alt=\"{$picture['filename']}\" />";


You can remove the alt tag from there.
Title: Re: Album Thumbnails - stop displaying filename on mouseover
Post by: webfountain on July 18, 2007, 08:22:41 PM
Nibbler

You are a star!

Thanks

Pete
Title: Re: Album Thumbnails - stop displaying filename on mouseover
Post by: mywedding on July 19, 2007, 12:30:01 AM
Quote from: webfountain on July 18, 2007, 08:22:41 PM
Nibbler

You are a star!

Thanks

Pete

hi nibber, well , i need diffrent information about, that , how could  i  add "descraption or keywords" info for thumbs. ,instead of filenames, when mouse over is over the thumbs. ...thx much,

my english bad, :)
Title: Re: Album Thumbnails - stop displaying filename on mouseover
Post by: Joachim Müller on July 19, 2007, 08:01:26 AM
One question per thread! Marking as solved.