Extension:UserFunctions

UserFunctions extension provides a set of dynamic parser functions that trigger on the current user. These functions can be exploited to superficially hide information from sysops. Use them with caution.

Usage

 * - Tests whether the current user is anonymous.
 * - Tests whether the current user is blocked.
 * - Tests whether the current user is a sysop.
 * - Tests whether the current user is a member of the group "group".
 * - Returns the current user's real name. If the user is not logged in, this function returns the given alternate text, or the user IP if no alternate is provided.
 * - Returns the current username. If the user is not logged in, this function returns the given alternate text, or the user IP if no alternate is provided.
 * - Returns the current user's e-mail address. If the user is not logged in, this function returns the given alternate text, or the user IP if no alternate is provided.
 * - Returns the current user's nickname. If the user has no nickname, returns the username. If the user is not logged in, this function returns the given alternate text, or the user IP if no alternate is provided.
 * - Returns the current user IP.

Installation

 * 1) Save the souce code into a file called UserFunctions.php
 * 2) Create a folder called UserFunctions in the extensions directory of your installation (.../extensions/) and move the file UserFunctions.php into it
 * 3) Add following line in  LocalSettings.php:
 * 4) Installation may now be verified at Special:Version

Version history
Author: Algorithm and others
 * Version 1.5 (October 30, 2011) added ip - Kghbln
 * Version 1.4 (September 27, 2011) added realname - Kghbln
 * Version 1.3 (February 13, 2010) added useremail - Wikinaut
 * Version 1.2 (July 25, 2008) added ifingroup - Louperivois
 * Version 1.1 (June 27, 2008) added nickname - Lexw
 * Version 1.0 (May 21, 2006) - Algorithm