61
Mods & Plugins (Requests & Discussions) / Re: input date as additional field (Missing impossible request)
« on: January 19, 2010, 01:22:16 AM »
Messing with the code? It is almost done with 2 steps. Maybe with your help, it will be better. Check this out:
Open db_field_definition.php
Add:
$additional_image_fields['image_date2'] = array($lang['training_date2'], "input_date", 0);
Open admin/admin_functions.php
after:
case "radio":
show_radio_row($val[0], $field_name, ($value == "") ? 1 : $value);
break;
Add:
case "input_date":
break;
The problem now is the database save only the year (For example: 2010 or 1999)
Any help please?
Cruxy
Open db_field_definition.php
Add:
$additional_image_fields['image_date2'] = array($lang['training_date2'], "input_date", 0);
Open admin/admin_functions.php
after:
case "radio":
show_radio_row($val[0], $field_name, ($value == "") ? 1 : $value);
break;
Add:
case "input_date":
show_date_input_row($val[0], $field_name, $value);
break;
The problem now is the database save only the year (For example: 2010 or 1999)
Any help please?
Cruxy