############################################################## ## MOD Title: Post move instead deleting [UPDATE] ## MOD Author: oxpus < webmaster@oxpus.de > (Karsten Ude) http://www.oxpus.de ## MOD Description: Update the MOD from 1.0.3 to 1.0.4 ## MOD Version: 1.0.0 ## ## Installation Level: Easy ## Installation Time: 1 min ## Files To Edit: 1 ## includes/functions_post.php ## Included Files: n/a ## ## License: http://opensource.org/licenses/gpl-license.php GNU General Public License v2 ############################################################## ## For security purposes, please check: http://www.phpbb.com/mods/ ## for the latest version of this MOD. Although MODs are checked ## before being allowed in the MODs Database there is no guarantee ## that there are no security problems within the MOD. No support ## will be given for MODs not found within the MODs Database which ## can be found at http://www.phpbb.com/mods/ ############################################################## ## Author Notes: ## ############################################################## ## MOD History: ## ## 2007-12-05 - Version 1.0.0 ## - First release ## ############################################################## ## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD ############################################################## # #-----[ OPEN ]------------------------------------------ # includes/functions_post.php # #-----[ FIND ]------------------------------------------ # if ($mode == 'delete' && ($forum_id != (int) $board_config['delete_post_forum'])) { $sql = "UPDATE " . USERS_TABLE . " SET user_posts = user_posts $sign WHERE user_id = $user_id"; if (!$db->sql_query($sql, END_TRANSACTION)) { message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); } } # #-----[ REPLACE WITH ]------------------------------------------ # if (($mode == 'delete' && ($forum_id != (int) $board_config['delete_post_forum'])) || ($mode != 'poll_delete' && $mode != 'delete')) { $sql = "UPDATE " . USERS_TABLE . " SET user_posts = user_posts $sign WHERE user_id = $user_id"; if (!$db->sql_query($sql, END_TRANSACTION)) { message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql); } } # #-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ # # EoM