Extension:LimitUserCount

LimitUserCount is a MediaWiki extension which provides the ability to limit the creation of new users based on user count.

It checks the current number of users in your Media Wiki and prevents on creating a new user if that number surpasses $maxUsersAllowed.

Motivation
When you start managing a wiki farm with tens or even hundred of wikis, and you want to control the number of registered users on each wiki without actually opening yourself each account, this extension can help you a lot.

Installation and usage
(In the above example, only 10 users will be allowed in the Wiki)
 * 1) Copy LimitUserCount.php to your Media Wiki extensions folder.
 * 2) Add the following lines at the end of LocalSettings.php:

Configuration

 * 1) $maxUsersAllowed - Defines the maximum user count allowed in the Wiki.
 * 2) The 'limitusercountmessage' message which you can alter. You can find it here - mediawiki:limitusercountmessage

To do

 * 1) Consider extra parameters in the users count - bots, admins, blocked users