Pixelpost

Authentic Photoblog Flavour


Go Back   Pixelpost Forum > DEVELOPMENT > Hacks and Modifications

Post Reply
 
Thread Tools
  #21  
Old 05-10-2007, 04:59 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Quote:
Camerafabrikant: SONY
Cameramodel: DSC-P32
Belichting: 1/60 sec
Diafragma: f 2.8
Brandpuntsafstand: 5 mm
ISO: 400
Opnamedatum: Mar 28, 2007 - 07:39
Flitser: Uit
This is what I see when uploading the squirrel picture. So either I explained it wrong, or you implemented it wrong
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #22  
Old 05-10-2007, 07:00 PM
witty's Avatar
witty Offline
pp veteran
 
Join Date: Mar 2007
Posts: 72
Hi,

Well, that's good news, but still not working for me. I downloaded a "fresh" copy of functions_exif.php, then added:

Code:
function replace_exif_tags ($language_full, $image_exif, $tpl)
{
global $cfgrow;
And replaced the $capture_date line as suggested. But I'm getting the same results. I'll dig a little deeper.


-Witty
__________________
Reply With Quote
  #23  
Old 05-16-2007, 04:27 PM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Ok, open functions_exif.php, goto line 77 (or nearby) where the $capture_date statement is.

Replace that line with:

PHP Code:
$exif_result['DateTimeOriginalSubIFD'] = trim(str_replace('-',':',$exif_result['DateTimeOriginalSubIFD']));
$exif_result['DateTimeOriginalSubIFD'] = str_replace(' ',':',$exif_result['DateTimeOriginalSubIFD']);
$ftime explode(":"$exif_result['DateTimeOriginalSubIFD']);
$unxTimestamp mktime($ftime[3],$ftime[4],$ftime[5],$ftime[1],$ftime[2],$ftime[0]);
$capture_date date($cfgrow['dateformat'],$unxTimestamp); 
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #24  
Old 05-16-2007, 05:21 PM
witty's Avatar
witty Offline
pp veteran
 
Join Date: Mar 2007
Posts: 72
Hi,

Thanks schonhose... works perfectly.


-Witty
__________________
Reply With Quote
  #25  
Old 05-24-2007, 07:33 PM
rst Offline
forum loafer
 
Join Date: May 2007
Posts: 1
I now use version 1.6 of PP and I'd be very interested to know how to modify PP to have exif date like your's.

Thanks,
Reply With Quote
  #26  
Old 05-25-2007, 04:49 AM
Dennis's Avatar
Dennis+ Offline
Team Pixelpost
 
Join Date: Jul 2006
Posts: 2,394
Send a message via MSN to Dennis
Well read about three posts up and voila, there it is.
__________________
My photoblog, powered by PixelPost 1.9 dev SVN | My Pixelpost Addons | My Cool Photoblog profile
Reply With Quote
  #27  
Old 08-27-2007, 09:06 PM
quilmore Offline
forum loafer
 
Join Date: Feb 2006
Posts: 13
Quote:
Originally Posted by Dennis View Post
Ok, open functions_exif.php, goto line 77 (or nearby) where the $capture_date statement is.

Replace that line with:

PHP Code:
$exif_result['DateTimeOriginalSubIFD'] = trim(str_replace('-',':',$exif_result['DateTimeOriginalSubIFD']));
$exif_result['DateTimeOriginalSubIFD'] = str_replace(' ',':',$exif_result['DateTimeOriginalSubIFD']);
$ftime explode(":"$exif_result['DateTimeOriginalSubIFD']);
$unxTimestamp mktime($ftime[3],$ftime[4],$ftime[5],$ftime[1],$ftime[2],$ftime[0]);
$capture_date date($cfgrow['dateformat'],$unxTimestamp); 
if I do as you recomended my date and time disappears
what I'm missing? something or some variables should be added somewherelese?
thanks for all support
Reply With Quote
  #28  
Old 09-03-2007, 01:31 AM
Zenigata Offline
pp regular
 
Join Date: Jul 2007
Location: Italy
Posts: 40
Send a message via MSN to Zenigata
Quote:
Originally Posted by quilmore View Post
if I do as you recomended my date and time disappears
what I'm missing? something or some variables should be added somewherelese?
thanks for all support
Yes:

Go to the function replace_exif_tags ($language_full, $image_exif, $tpl). Place the following line right after the {


PHP Code:
global $cfgrow
Reply With Quote
  #29  
Old 06-08-2008, 08:56 PM
witty's Avatar
witty Offline
pp veteran
 
Join Date: Mar 2007
Posts: 72
Hi,

I was curious if someone could tell me how these instructions may need to be changed to be compatible with version 1.7. Perhaps we can make this an add-on... "Pretty Date Format"?


-Witty
__________________
Reply With Quote
Post Reply


Thread Tools




All times are GMT. The time now is 04:51 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd. | Style Design: d3 designs