coppermine-gallery.com/forum

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: nasiri on January 11, 2011, 02:01:06 PM

Title: date photo taken under thumbnail for 1.5.x
Post by: nasiri 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
Title: Re: date photo taken under thumbnail for 1.5.x
Post by: nasiri on January 11, 2011, 05:50:10 PM
by the way i have used this code for displayimage.php :

    $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";
}
}
Title: Re: date photo taken under thumbnail for 1.5.x
Post by: nasiri 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 ?
Title: Re: date photo taken under thumbnail for 1.5.x
Post by: nasiri on January 13, 2011, 05:56:23 PM
at least tell me how to display an userfield under the thumbnailarea ... :(
Title: Re: date photo taken under thumbnail for 1.5.x
Post by: ΑndrĂ© on January 18, 2011, 02:35:17 PM
Honestly, I don't know what you try to accomplish.

Quote from: nasiri on January 11, 2011, 02:01:06 PM
change the Date under Thumbnails
Quote from: nasiri on January 11, 2011, 02:01:06 PM
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.