posting_editor.html
Code: Select all
<dl style="clear: left;">
<dt><label for="subject">{L_SUBJECT}{L_COLON}</label></dt>
<dd>
<!-- EVENT posting_editor_subject_prepend -->
<input type="text" name="subject" id="subject" size="45" maxlength="<!-- IF S_NEW_MESSAGE -->120<!-- ELSE -->124<!-- ENDIF -->" tabindex="2" value="{SUBJECT}{DRAFT_SUBJECT}" class="inputbox autowidth" />
<!-- EVENT posting_editor_subject_append -->
</dd>
<dt><label for="custom_post_date">{L_CUSTOM_POST_DATE}{L_COLON}</label></dt>
<dd>
<!-- EVENT posting_editor_custom_post_date_prepend -->
<input type="date" name="custom_post_date" id="custom_post_date" tabindex="2" value="{CUSTOM_POST_DATE}{DRAFT_CUSTOM_POST_DATE}" class="inputbox autowidth" />
<!-- EVENT posting_editor_custom_post_date_append -->
</dd>
</dl>
Code: Select all
$subject = $request->variable('subject', '', true);
$subject = (!$subject && $mode != 'post') ? $post_data['topic_title'] : $subject;
$message = $request->variable('message', '', true);
$custom_date = $request->variable('custom_post_date', '0', true);
//$newtime = create_datetime()->setDate($custom_date)->setTime(00, 00);
//$newtime = strtotime( $custom_date );
//$update_time = $newtime->getTimestamp();
//$custom_post_date = (!$custom_date) ? $current_time : $newtime; //me
not even the event functions.
can someone help me to achieve this
Thanks!