PDA

View Full Version : Publish photo with exif date set by default


chiaraweb
06-20-2007, 11:15 AM
Hi Dear
I'm new on this forum but I use pixelpost from many months (years? :rolleyes: ) I upgraded my blog to 1.6 installed autoresize add-on (that's fine!!) and adjust a little part of code to obtain right exif data from my older photos.

Now that exif works fine, I need an help to understand if I can modify some code to set in "add image" the exif data by default (exifa radio button selected by default).

I'm looking at new_image.php but I'm not so intelligent to know where I can set radio-button by default :confused:

Sorry for my english that is not my first language!

My photoblog (in progress) is here
http://www.inmyplace.it/blog

Many thanks to all :D

Dkozikowski
06-20-2007, 11:23 AM
find the following in new_image.php


if($_POST['autodate']=='') $selected_autodate[2] = 1;


replace with


if($_POST['autodate']=='') $selected_autodate[3] = 1;


That should do it.

chiaraweb
06-20-2007, 11:27 AM
Fine! modify works correct!
Many Many Thanks

Have a nice day ;-)
Chiara

Dkozikowski
06-20-2007, 11:39 AM
Thank you. You too.

Cheers