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>
[7 Feb 2006 3:39]
Bryan Alsdorf
Thanks for the report. This is now fixed and will be in our next release.
Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders. It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.
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>