Advanced search  

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]

Pages: [1]   Go Down

Author Topic: How can I remove/change alt information on thumbs page in eyeball?  (Read 4442 times)

0 Members and 1 Guest are viewing this topic.

spanishben

  • Coppermine newbie
  • Offline Offline
  • Posts: 7

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
« Last Edit: October 02, 2004, 05:42:03 pm by TranzNDance »
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: How can I remove/change alt information on thumbs page in eyeball?
« Reply #1 on: October 02, 2004, 11:33:01 am »

It is in functions.inc.php.

Find;

Code: [Select]
$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;

Code: [Select]
$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.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: How can I remove/change alt information on thumbs page in eyeball?
« Reply #2 on: October 02, 2004, 01:02:41 pm »

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

Logged

spanishben

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: How can I remove/change alt information on thumbs page in eyeball?
« Reply #3 on: October 02, 2004, 09:55:50 pm »

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
Logged

Casper

  • VIP
  • Coppermine addict
  • ***
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 5231
Re: How can I remove/change alt information on thumbs page in eyeball?
« Reply #4 on: October 03, 2004, 01:56:40 pm »

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

Code: [Select]
alt=\"{$picture['filename']}\"
To;

Code: [Select]
alt=\"\"
And we have a 1 question per thread rule, please don't ask any more on this thread.
Logged
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: How can I remove/change alt information on thumbs page in eyeball?
« Reply #5 on: October 03, 2004, 07:23:08 pm »

Thanks Casper, No more than one question on one thread from now on I promise!
Great software by the way, and support, really great.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.