WordPress.org

Support

Support » Plugins and Hacks » Hacks » [Resolved] [Plugin: NextGEN Gallery] Get files to import from folder with the creation date

[Resolved] [Plugin: NextGEN Gallery] Get files to import from folder with the creation date

  • hey,
    So I’m importing some files that need their creation dates (an exif tag)
    I tried modifying the add_images function in /admin/functions.php with the code:
    // save it to the database
    $image = $picture;
    $exif = exif_read_data($image, 0, true);

    $dto = $exif[‘EXIF’][‘DateTimeOriginal’];

    $dt = explode(‘ ‘,$dto);
    $ds = str_replace(‘:’, ‘-‘, $dt[0]);
    $da = $ds.’ ‘.$dt[1];
    if ($da) {
    $imagedate = $da;
    }

    $pic_id = nggdb::add_image( $galleryID, $picture, ”, $alttext, $imagedate );

    It still imports the files with what much be the current date and time, any ideas?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] [Plugin: NextGEN Gallery] Get files to import from folder with the creation date’ is closed to new replies.