Airplane Pictures home

Home » Forums » Site-related » Checkbox to select today's date

Checkbox to select today's date

Simeon Lüthi 

Full member
Joined in May 2014
Posts: 13
Posted 14 January 2017 - 00:25 CET

I don't know if it has been requested before, but I didn't find it in the recent topics. Wouldn't it be cool to have a checkbox next to the date selection to select today's date. Saves some time when uploading pictures of the same day or the previous' day spotting trip :)

Glid3r 

Member
Joined in April 2015
Posts: 8
Posted 14 January 2017 - 14:13 CET

Or simply get it out of the exif data of the photo:

exif_data['DateTimeOriginal']

Simeon Lüthi 

Full member
Joined in May 2014
Posts: 13
Posted 16 January 2017 - 10:18 CET

Wait where would I enter "exif_data['DateTimeOriginal']" on the upload page? Thanks!

Glid3r 

Member
Joined in April 2015
Posts: 8
Posted 16 January 2017 - 16:53 CET

It can only be done for the administrator to include this on the backend of their website :)

Simeon Lüthi 

Full member
Joined in May 2014
Posts: 13
Posted 17 January 2017 - 18:49 CET

Yeah that's why I'd be cool for us to have that checkbox since we aren't admins ;-)

Andre Nordheim 

Full member
Joined in September 2013
Posts: 184
Posted 18 January 2017 - 04:34 CET

Adding boxes and options isn't as easy as it seems as it requires code changes to the site. A lot of people also decide to not include exif setting when photos are exported so the automatic option isn't very viable either.

I never mind the extra 5 seconds it takes to select the date when uploading.

Glid3r 

Member
Joined in April 2015
Posts: 8
Posted 18 January 2017 - 10:33 CET

@André,

It's as simple as it seems:

Simple if statement should declare if the exif date is filled in yes or no.

public function getphotodate($img)

{

$exif = exif_read_data($img,'IFD0');

if(isset($exif['DateTimeOriginal']))

{

$date = $exif['DateTimeOriginal'];

return $date;

}

}

Jump to the top

Log in to post in the forum.

Terms and Conditions | About | FAQ | Photo Use | Privacy Policy | Online 1798 (17 members)
© 2006-2024 Airplane-Pictures.net | E-mail us: Team@Airplane-Pictures.net
All photos are copyright © to their respective photographers and may not be used without permission.