Description:
The proper date handling code copied from the new.tpl.html file
How to repeat:
Create a new custom date field and have it show on the anonymoust post form.
Suggested fix:
Have a common template for the code in post.tpl.html and new.tpl.html. As a quick fix I copied the following code from new.tpl.html to post.tpl.html:
-------------Cut---------------
{elseif $custom_fields[i].fld_type == 'date'}
{html_select_date field_array="custom_fields[`$custom_fields[i].fld_id`]" prefix='' all_extra="class=\"default\"" month_empty='' time='--' display_years=false display_days=false month_extra="id=\"custom_field_`$custom_field_id`_month\" tabindex=\"`$tabindex++`\""}
{include file="error_icon.tpl.html" field="custom_fields[$custom_field_id][Month]"}
{html_select_date field_array="custom_fields[`$custom_fields[i].fld_id`]" prefix='' all_extra="class=\"default\"" day_empty='' time='--' display_months=false display_years=false day_value_format=%02d day_extra="id=\"custom_field_`$custom_field_id`_day\" tabindex=\"`$tabindex++`\""}
{include file="error_icon.tpl.html" field="custom_fields[$custom_field_id][Day]"}
{html_select_date field_array="custom_fields[`$custom_fields[i].fld_id`]" prefix='' all_extra="class=\"default\"" year_empty='' time='--' display_months=false display_days=false start_year=-1 end_year=+2 year_extra="id=\"custom_field_`$custom_field_id`_year\" tabindex=\"`$tabindex++`\""}
{include file="error_icon.tpl.html" field="custom_fields[$custom_field_id][Year]"}
-------------Cut---------------
After line:
<textarea name="custom_fields[{$custom_fields[i].fld_id}]" rows="10" cols="60"></textarea>