forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started 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
-
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";
}
}
-
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 ?
-
at least tell me how to display an userfield under the thumbnailarea ... :(
-
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.