Extension:Deleteuser

Deleteuser is an extension for deleting users from database.

Installation

 * 1) Download the ExtensionFunctions.php
 * 2) Copy the ExtensionFunctions.php to the same directory as your LocalSettings.php file, e.g. YourWikiSite/wiki/
 * 3) Make /extensions/Deleteuser directory in your MediaWiki folder.
 * 4) Copy all three extension files to that new directory.
 * 5) Add this line in LocalSettings.php: require_once("extensions/Deleteuser/SpecialDeleteuser.php");
 * 6) If you have Makesysop extension, add these lines to LocalSettings.php: $wgGroupPermissions['steward']['deleteuser'] = true; and $wgGroupPermissions['bureaucrat']['deleteuser'] = false;

Localization
The file SpecialDeleteuser.i18n.php contains arrays for localized versions. For example, a German version could be added that reads as follows $wgDeleteuserMessages['de'] = array(       'deleteuser'       => 'Benutzerlöschung',        'deleteusername'   => 'Benutzername:',        'deleteusersubmit' => 'Löschen',        'deleteusererrordoesnotexist' => 'Ein Benutzer "$1" existiert nicht',        'deleteusererrorinvalid'      => 'Der Benutzername "$1" ist ungültig',        'deleteusersuccess'           => 'Der Benutzer "$1" (mit $2 Einträgen) wurde gelöscht.',        'deleteuserlogpage'     => 'Benutzerlöschungs-Logbuch',        'deleteuserlogpagetext' => 'Hier ist eine Liste der letzten gelöschten Benutzer.',        'deleteuserlogentry'    => '', # Don't translate this        'deleteuserlog'         => 'Gelöscht wurde der Benutzer "$1" (mit $2 Einträgen)',

Using
Enter special page Special:Deleteuser, type username and press Delete.

Changelog and known bugs
Bugs * The extension does not work in my environment: -MediaWiki 1.6.8 with page access restriction patch -PHP: 4.3.4 with MySQL: 4.0.18 -Extensions Tasks 0.51 and EmbedURL * For me, it doesn't work either. It seems to use ExtensionFunctions.PHP which is not supported after 1.6 see here [mwusers.com] Even after installing it, it didn't work. 8-(
 * 27 October 2006 - published first version of extension.


 * There is a bug in the DeleteuserSQL module, in the call to the delete functions. The "$uid" variable is the local instance and need to be changed to the class variable, as below:

$dbw->delete( 'user', array ( 'user_id' => $this->uid ), $fname ); $dbw->delete( 'user_groups', array ( 'ug_user' => $this->uid ), $fname );

How it works?
This extension does these SQL querries: DELETE FROM `user_groups` WHERE ug_user = here user ID; DELETE FROM `user` WHERE user_id = here user ID;

Links

 * Extension:Renameuser


 * Deleteuser code (zip)
 * Contact with author
 * Author's userpage