雖然不太建議移掉這個檢查\r
不過真的須要的話還是可以做這樣的修改\r
posting_body.tpl
尋找\r
代碼: 選擇全部
if (document.post.message.value.length < 2) {
formErrors = "{L_EMPTY_MESSAGE}";
}
改為\r
代碼: 選擇全部
if (document.post.message.value.length < 2)
{
if (document.post.fp_data)
{
if (document.post.fp_data.length < 1)
{
formErrors = "{L_EMPTY_MESSAGE}";
}
}
else
{
formErrors = "{L_EMPTY_MESSAGE}";
}
}
posting.php
尋找\r
代碼: 選擇全部
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $poll_title, $poll_options, $poll_length);
改為\r
代碼: 選擇全部
prepare_post($mode, $post_data, $bbcode_on, $html_on, $smilies_on, $error_msg, $username, $bbcode_uid, $subject, $message, $fp_data, $poll_title, $poll_options, $poll_length);
funtions_post.php
尋找\r
代碼: 選擇全部
function prepare_post(&$mode, &$post_data, &$bbcode_on, &$html_on, &$smilies_on, &$error_msg, &$username, &$bbcode_uid, &$subject, &$message, &$poll_title, &$poll_options, &$poll_length)
改為\r
代碼: 選擇全部
function prepare_post(&$mode, &$post_data, &$bbcode_on, &$html_on, &$smilies_on, &$error_msg, &$username, &$bbcode_uid, &$subject, &$message, &$fp_data, &$poll_title, &$poll_options, &$poll_length)
尋找\r
代碼: 選擇全部
// Check message
if (!empty($message))
改為\r
代碼: 選擇全部
// Check message
if (!empty($message) || !empty($fp_data))