Advanced search  

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

Pages: [1]   Go Down

Author Topic: date photo taken under thumbnail for 1.5.x  (Read 2106 times)

0 Members and 1 Guest are viewing this topic.

nasiri

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
    • Nasiri Web Media Development
date photo taken under thumbnail for 1.5.x
« on: January 11, 2011, 02:01:06 pm »

Hello CPG Team,

i am sitting now some hours to change the Date under Thumbnails...
Have u got some information about how to change to exif date taken ???
didn't found while i was searching here.

thank you
Logged
Nasiri Media
Web Development in Münster / Germany

http://www.nasiri.com

nasiri

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
    • Nasiri Web Media Development
Re: date photo taken under thumbnail for 1.5.x
« Reply #1 on: January 11, 2011, 05:50:10 pm »

by the way i have used this code for displayimage.php :

Code: [Select]
    $metadata_path = file_exists($path_to_orig_pic) ? $path_to_orig_pic : $path_to_pic;
   
    if ($CONFIG['read_exif_data']) {
   
        $exif = exif_parse_file($metadata_path, $CURRENT_PIC_DATA['pid']);
   
    if (isset($exif) && is_array($exif)) {
array_walk($exif, 'sanitize_data');
        $info = array_merge($info,$exif);
    }

    preg_match_all('/\d+/', $info['Aufnahmedatum'], $temp);
if (isset($temp[0][2])) {
    $info['Aufnahmedatum'] = "am ".$temp[0][2].".".$temp[0][1].".".$temp[0][0]." um ".$temp[0][3].":".$temp[0][4]." Uhr";
}
}
Logged
Nasiri Media
Web Development in Münster / Germany

http://www.nasiri.com

nasiri

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
    • Nasiri Web Media Development
Re: date photo taken under thumbnail for 1.5.x
« Reply #2 on: January 13, 2011, 12:08:44 am »

i found out that i have to make the changes in functions.inc.php ...
but which line

I have already used a user3 to store the exifdate like '2004-07-16 20:22:23'
i just need to localised_date the user3

but where ?!?

any help from admins ?
Logged
Nasiri Media
Web Development in Münster / Germany

http://www.nasiri.com

nasiri

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 36
    • Nasiri Web Media Development
Re: date photo taken under thumbnail for 1.5.x
« Reply #3 on: January 13, 2011, 05:56:23 pm »

at least tell me how to display an userfield under the thumbnailarea ... :(
Logged
Nasiri Media
Web Development in Münster / Germany

http://www.nasiri.com

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: date photo taken under thumbnail for 1.5.x
« Reply #4 on: January 18, 2011, 02:35:17 pm »

Honestly, I don't know what you try to accomplish.

change the Date under Thumbnails
change to exif date taken
Exif data won't be displayed below thumbnails. Please describe what exactly you want to change how. Please also post a link to your gallery.
Logged
Pages: [1]   Go Up
 

Page created in 0.063 seconds with 20 queries.