How can I remove/change alt information on thumbs page in eyeball? How can I remove/change alt information on thumbs page in eyeball?
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

How can I remove/change alt information on thumbs page in eyeball?

Started by spanishben, October 02, 2004, 10:29:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

spanishben

Hi,

I'm modifying the eyeball theme and want to change the alt information (filename, filesize, dimensions, date added etc.) that appears when you hover a thumbnail int he album thumbs page. I would either like to remove this info or change it to just display the image title instaed. I have seached theme.php, thumbnails.php and looked around this forum but can't find the answer or the code to fiddle with.
ANy help much appreciated.
Thanks,
Ben

Casper

It is in functions.inc.php.

Find;

$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);


To just display the file name, change it to;

$pic_title =$lang_display_thumbnails['filename'].$row['filename'];



NOTE;  You will have to do this twice, to do the same for the filmstrip as well.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

spanishben

Thanks very much for such a speedy response! I would never have found that!
Works perfectly.
I also discovered that by changing:

$pic_title =$lang_display_thumbnails['filename'].$row['filename'];

to

$pic_title =$lang_display_thumbnails['title'].$row['title'];

I get the actual picture title as the thumb alt instead, which is even better!

Thanks,
Ben


spanishben

Sorry to come back again. I have also noticed that the thumbs for albums on the index page also have the filename as the alt text - e.g. "summer.jpg" (I have no categories, just albums directly on the index page). I would also like to change this so that it shows either the image title or nothing instead for this alt text. I have returned to functions.inc.php and tried replacing every instance of 'filename' for 'title', but can't get the alt text to change. Do you know which code I have to change for this?
Many thanks,
Ben

Casper

Open index.php, find and change the 2 instances of;

alt=\"{$picture['filename']}\"

To;

alt=\"\"

And we have a 1 question per thread rule, please don't ask any more on this thread.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

spanishben

Thanks Casper, No more than one question on one thread from now on I promise!
Great software by the way, and support, really great.