Release status: stable
|Description||The extension helps wiki administrators to keep track of inactive users, send warning emails and block accounts.|
|Compatibility policy||For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.|
|Translate the BlockInactive extension if it is available at translatewiki.net|
The extension is intended to help wiki administrators to keep track of inactive users, send warning emails to such users and then automatically block their account if no action were taken in time.
It's possible to configure number of days since last login to be considered as inactivity, number of days since last login to actually block a user account and setup a schedule for warning messages to be sent prior to blocking.
This extension was created for WikiWorks.
- Download and place the file(s) in a directory called
- Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'BlockInactive' );
- Run the update script which will automatically create the necessary database tables that this extension needs.
- Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
$wgBlockInactiveThreshold(default: 210) - Number of days since the last login to start considering user as inactive and begin sending reminders
$wgBlockInactiveDaysBlock(default: 270) - Number of days since the last login to actually block the user
$wgBlockInactiveWarningDaysLeft(default: 30, 5) - Schedule in form of days left before blocking to send warning emails on
Configure cron to run
maintenance/blockinactive.php script @daily
blockinactive- allows to view the
Special:BlockInactivepage, by default is granted to sysop and bureaucrat groups.