Forum

Questions and discussions

Change start date for 'Image date taken'

Discuss template's customization

Change start date for 'Image date taken'

Postby kevindotw » Mon Aug 25, 2014 10:25 am

When editing images the year for ‘date taken’ starts at 2009.
How do I change this to start at 1980?

I’ve looked through the code and googled for the smarty function_html_select_date tried all the suggestions and can’t get anything to work. I’m probably not changing all the code that is required to make the change.

Any ideas?
kevindotw
 
Posts: 1
Joined: Wed Aug 20, 2014 8:22 pm

Re: Change start date for 'Image date taken'

Postby admin » Wed Aug 27, 2014 6:00 am

This is a date of the publication on the site - not a date of the photo's creation. You are able to enlarge the period. But anyway it cannot be earlier than 01/01/1970 (date of Unix creating).
I advice you to use 'description' or 'category' properties for 1980 date.

You should edit the file:
/admin/function/upload.php

function admin_date($data,$field)

Code: Select all
for($j=date("Y")-5;$j<date("Y")+15;$j++)
admin
Site Admin
 
Posts: 1458
Joined: Sun Mar 07, 2010 5:55 pm


Return to Design & Templates

Who is online

Users browsing this forum: No registered users and 2 guests

cron
  Photo Store Script

Professional php photo stock script and WordPress plug-in for photographers and video producers.

  Support
  CMSaccount Inc.