To 愛君如夢:
以下的修改, 提供您參考:
#
#-----[ OPEN ]-----
#
includes/functions_post.php
#
#-----[ FIND ]-----
#
代碼: 選擇全部
// BEGIN: FLASH PAINT MOD
$post_flashpaint = (empty($fp_data)) ? 0 : 1;
$sql = ($mode != "editpost") ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, post_flashpaint) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '$user_ip', $bbcode_on, $html_on, $smilies_on, $attach_sig, $post_flashpaint)" : "UPDATE " . POSTS_TABLE . " SET post_username = '$post_username', enable_bbcode = $bbcode_on, enable_html = $html_on, enable_smilies = $smilies_on, post_flashpaint = $post_flashpaint, enable_sig = $attach_sig" . $edited_sql . " WHERE post_id = $post_id";
// END: FLASH PAINT MOD if (!$db->sql_query($sql, BEGIN_TRANSACTION))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
#
#-----[ REPLACE WITH ]-----
#
代碼: 選擇全部
// BEGIN: FLASH PAINT MOD
$post_flashpaint = (empty($fp_data)) ? 0 : 1;
$sql = ($mode != "editpost") ? "INSERT INTO " . POSTS_TABLE . " (topic_id, forum_id, poster_id, post_username, post_time, poster_ip, enable_bbcode, enable_html, enable_smilies, enable_sig, post_flashpaint) VALUES ($topic_id, $forum_id, " . $userdata['user_id'] . ", '$post_username', $current_time, '$user_ip', $bbcode_on, $html_on, $smilies_on, $attach_sig, $post_flashpaint)" : "UPDATE " . POSTS_TABLE . " SET post_username = '$post_username', enable_bbcode = $bbcode_on, enable_html = $html_on, enable_smilies = $smilies_on, post_flashpaint = $post_flashpaint, enable_sig = $attach_sig" . $edited_sql . " WHERE post_id = $post_id";
// END: FLASH PAINT MOD
if (!$db->sql_query($sql, BEGIN_TRANSACTION))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
#
#-----[ SAVE & CLOSE ]-----
#
#EoM