Du hast Probleme beim Einbau oder bei der Benutzung eines Mods? In diesem Forum bist du richtig.
Forumsregeln phpBB 2.0 hat das Ende seiner Lebenszeit überschritten
phpBB 2.0 wird nicht mehr aktiv unterstützt. Insbesondere werden - auch bei Sicherheitslücken - keine Patches mehr bereitgestellt. Der Einsatz von phpBB 2.0 erfolgt daher auf eigene Gefahr. Wir empfehlen einen Umstieg auf phpBB 3.0, welches aktiv weiterentwickelt wird und für welches regelmäßig Updates zur Verfügung gestellt werden.
Ich habe den folgenden Mod installiert um beim löschen von Usern nicht nur den Account sondern auch all seine Posts zu löschen. Dadurch kommt es allerdings zu leichten Fehlern in der Datenbank welche mit dem DB Maintenance schnell zu finden und zu beheben sind. Dennoch wäre es schön wenn keine Fehler auftreten würden. Woran liegts? Und ganz nebenbei gefragt, werden von dem gelöschten User erstellte Topics eigentlich auch komplett gelöscht?!
##############################################################
## 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 = '" . str_replace("\\'", "''", addslashes($this_userdata['username'])) . "'
WHERE poster_id = $user_id";
#
#-----[ REPLACE WITH ]------------------------------------------
#
$sql = "DELETE FROM " . POSTS_TABLE . "
WHERE poster_id = $user_id";
#
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------
#
# EoM
Also wenn das alles ist, bleibt noch eine ganze Menge in der DB stehen. Die *_posts_text wird nicht angefasst. Alle Texte sind noch da, nur eben ohne User.
Falls ein Post der Topicstarter (oder der letzte im Topic) war, wird die ID nicht angepasst auf den ehemaligen zweiten in Topic. Somit ist das Topic scheinbar weg.
Gruss, Miriam. Ich schmeiß' alles hin und...
... lasse es liegen
This hack enables the administrator to delete a user and all of their postings directly from their profile. The administrator can do any of these:
1. Delete user only (their posts stay).
2. Delete user and all of the topics that that user has started (their replies to other topics stay).
3. Delete user and all of their posts.
All phpBB statistics are resynced and a report is generated detailing the changes that were made.
Grüße: Mahony
Taekwondo in Berlin
Wer fragt, ist ein Narr für fünf Minuten, wer nicht fragt, ist ein Narr für immer.
nach der anwendung des mods haben vereinzelten usern auf einmal bis zu 5000 beiträge gefehlt - woran liegt das?! oder hat das eventuell mit der datenbankoptimierung von mysqldumper zusammen, nee das kann eigentlich nich sein