Kód:
##############################################################
## MOD Title: Delete all user posts
## MOD Author: Manipe < admin@manipef1.com > (N/A) http://www.manipef1.com
## MOD Description: This deletes a user's posts when you're deleting the user from the ACP.
## MOD Version: 1.0.0
##
## Installation Level: Easy
## Installation Time: ~ 1 Minutes
## Files To Edit:
## admin/admin_users.php
##
## Included Files:
## None
##############################################################
## For Security Purposes, Please Check: http://www.phpbb.com/mods/ for the
## latest version of this MOD. Downloading this MOD from other sites could cause malicious code
## to enter into your phpBB Forum. As such, phpBB will not offer support for MOD's not offered
## in our MOD-Database, located at: http://www.phpbb.com/mods/
##############################################################
## Author Notes:
##
##
##############################################################
## MOD History:
##
##
## 2004-12-29 - Version 1.0.0
## - First version
##
##############################################################
## Before Adding This MOD To Your Forum, You Should Back Up All Files Related To This MOD
##############################################################
#
#-----[ OPEN ]------------------------------------------
#
admin/admin_users.php
#
#-----[ FIND ]------------------------------------------
#
$sql = "UPDATE " . POSTS_TABLE . "
SET poster_id = " . DELETED . ", post_username = '$username'
WHERE poster_id = $user_id";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$sql = "DELETE FROM " . POSTS_TABLE . "
WHERE poster_id = $user_id";
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM