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: Hide file extension in thumbnail Alt tag information cpg1.3  (Read 3126 times)

0 Members and 1 Guest are viewing this topic.

spa2036

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
Hide file extension in thumbnail Alt tag information cpg1.3
« on: January 03, 2006, 09:52:11 pm »

HAPPY NEW YEAR to all of you.

I need to hide the filename extension in the ALT tag when you hover over a thumbnail.
I would also like to hide the additional information shown in this tag. I think next option will work:

file functions.inc.php
change this code:
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 next code:
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);
;

Please correct me if I am wrong. Unfortunately I can not find a way to hide the filename information.

Thanks in advance for your support.

Regards, Rob
Logged
Thanks for sharing this wonderful program

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Hide file extension in thumbnail Alt tag information cpg1.3
« Reply #1 on: January 03, 2006, 09:58:59 pm »

If you don't want anything, just use
Code: [Select]
$pic_title = '';
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

spa2036

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 16
Re: Hide file extension in thumbnail Alt tag information cpg1.3
« Reply #2 on: January 03, 2006, 10:01:57 pm »

The only thing I want to be displayed is the filename without extension.

Is this possible?
Logged
Thanks for sharing this wonderful program
Pages: [1]   Go Up
 

Page created in 0.026 seconds with 21 queries.