daqron
Forum Replies Created
-
Span — thanks. Didn’t realize you were the developer. Can you provide an example of how to use this in practice, for example in an image caption? I think the functionality has been there for a while but how to use it has eluded many of us.
Great plugin; thanks for the hard work.
Cheers,
JeremyForum: Plugins
In reply to: [Plugin: NextGEN Gallery] exif into a thickbox?[cross-posted from this topic]
I took the only 3 relevant lines of code from /admin/functions.php, slightly modified them, stuck them in gallery.php where the image caption is created.
New code added to gallery.php (in the “<!–Thumbnails–>” section):
require_once(NGGALLERY_ABSPATH . '/lib/meta.php'); $meta = array(); $pdata = new nggMeta($image->path);
Then you can append meta data to the $image->description. For example: $newdesc = $image->description . $pdata->get_date_time().
Full write-up including appending the image description and EXIF data to the caption in ThickBox is available here: https://j.modjeska.us/?p=113
I went about this in a different way and just took the only 3 relevant lines of code from /admin/functions.php, slightly modified them, stuck them in gallery.php where the image caption is created.
New code added to gallery.php (in the “<!–Thumbnails–>” section):
require_once(NGGALLERY_ABSPATH . '/lib/meta.php'); $meta = array(); $pdata = new nggMeta($image->path);
Then you can append meta data to the $image->description. For example: $newdesc = $image->description . $pdata->get_date_time().
Full write-up including appending the image description and EXIF data to the caption in ThickBox is available here: https://j.modjeska.us/?p=113