Extension:User Merge and Delete

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
User Merge and Delete

Release status: stable

Implementation Special page, User identity
Description Merges references from one user to another user in the Wiki database - will also delete old users following merge
Author(s) Tim Laqua, Thomas Gries (maintainer)
Last version 1.6.31 (2011-06-24)
MediaWiki 1.13+

trunk

Database changes no
License No license specified
Download Download snapshot
Subversion [Help]

Browse source code
View code changes

Added rights

usermerge

Hooks used
DeleteAccount

MergeAccountFromTo

Check usage (experimental)
Bugs: list open list all report

User Merge and Delete extension allows wiki users with the usermerge permission (Bureaucrat by default) to merge one Wiki user's account with another Wiki user's account.

Contents


The extension allows to

  • merge (refer contributions, texts, watchlists) of a first account A to a second account B
  • delete the first account A after the merge (option box)

Limitations

  • you cannot delete a user A without having merged the user A to B
  • you cannot merge your own account (logged-in user)

Extras

  • if you omit the "New User" field, then the extension auto-populates the New User as "Anonymous" (user_id 0), and ask you to confirm a merge to Anonymous. This is used for user deletion: you first empty (merge to user 0) contributions of a user A, and then delete the user A.
  • the extension creates a User Merge log and logs all User Merge extension activity.[1]

[edit] Installation

Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

  • Download and extract the extension to your extensions folder
  • Add the following code to your LocalSettings.php (at the bottom)
require_once( "$IP/extensions/UserMerge/UserMerge.php" );
$wgGroupPermissions['bureaucrat']['usermerge'] = true;
 
# optional - default is array( 'sysop' )
$wgUserMergeProtectedGroups = array( 'groupname' );
Note: The change to group-based merge protection ($wgUserMergeProtectedGroups) in v1.5, r30872.
Note: The addition of the 'usermerge' permission in 1.2 - this must be explicitly granted as shown above.

[edit] Usage

  • follow Installation Instructions
  • a new Special Page Special:UserMerge with the title Merge and Delete Users is created
  • unmergeable users can be defined (examples):
# Allow all users to be merged (by default, the 'sysop' group is unmergeable)
$wgUserMergeProtectedGroups = array();
 
# Disallow merging of the users in the 'sysop' or 'awesomeusers' groups
# N.B. check the distributed "install.settings" for the correct array name
$wgUserMergeUnmergeable = array( 'sysop', 'awesomeusers' );


[edit] references

  1. since version 1.2
Language: English  • Português do Brasil
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox