Extension:Create User Page

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.png
CreateUserPage

Release status:Extension status stable

ImplementationTemplate:Extension#type User activity
DescriptionTemplate:Extension#description The Create User Page extension checks on login whether the user has a user page and, if not, creates it.
Author(s)Template:Extension#username Cindy Cicalese (cindy.cicalesetalk)
Latest versionTemplate:Extension#version 1.2 (2017-10-29)
Compatibility policyCompatibility#mediawiki_extensions master
MediaWikiTemplate:Extension#mediawiki 1.27+
PHPTemplate:Extension#php 5.5+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license MIT License
Download
ParametersTemplate:Extension#parameters
  • $wgCreateUserPage_PageContent
  • $wgCreateUserPage_OnLogin
Hooks usedTemplate:Extension#hook
UserLoginCompleteManual:Hooks/UserLoginComplete
OutputPageParserOutputManual:Hooks/OutputPageParserOutput

Translate the Create User Page extension if it is available at translatewiki.net

Check usage and version matrix.

IssuesPhabricator

Open tasks · Report a bug

The Create User Page extension checks whether the user has a user page and, if not, creates it with the content as specified in $wgCreateUserPage_PageContent. The check is done when the user logs in if $wgCreateUserPage_OnLogin is set to true (the default), otherwise the check is done on every page load.

Installation[edit]

  • Download and place the file(s) in a directory called CreateUserPage in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    wfLoadExtension( 'CreateUserPage' );
    
  • Configure as required
  • YesY Done - Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parameters[edit]

Flag Default Description
$wgCreateUserPage_PageContent {{User}} The content to put on the user page when it is created.
$wgCreateUserPage_OnLogin true Check for the existence of the user page whenever the user logs in if true. If false, check on every page load.

Version History[edit]

Version 1.2
  • Added $wgCreateUserPage_OnLogin
Version 1.1.1
  • Really corrected user page creation to use wikitext instead of text (affects MediaWiki 1.29+)
Version 1.1
  • Corrected user page creation to use wikitext instead of text (affects MediaWiki 1.29+)
Version 1.0
  • Initial version