Extension:GlobalUserPage

Aus MediaWiki
Zur Navigation springen Zur Suche springen
MediaWiki extensions manual
Crystal Clear action run.svg
GlobalUserPage
Release status: stable
Implementation User interface
Description Enables global (shared between wikis) user pages on a wiki farm.
Author(s) Jack Phoenix, Kunal Mehta
Latest version 0.11.1 (2017-09-18; 14 months ago (2017-09-18))
MediaWiki 1.31+
PHP 5.5.9+
License GNU General Public License 3.0 or later
Download
Example ShoutWiki
Parameters
  • $wgGlobalUserPageCacheExpiry
  • $wgGlobalUserPageAPIUrl
  • $GlobalUserPageTimeout
  • $GlobalUserPageFooterKey
  • $wgGlobalUserPageDBname
Hooks used
GetPreferences
TitleIsAlwaysKnown
ArticleFromTitle
LinksUpdateComplete
PageContentInsertComplete
ArticleDeleteComplete
TitleGetEditNotices
GetDoubleUnderscoreIDs
WikiPageFactory
Translate the GlobalUserPage extension if it is available at translatewiki.net
Check usage and version matrix.
Issues Open tasks · Report a bug

The GlobalUserPage extension enables global (shared between wikis) user pages on a wiki farm.

This extension was developed by Jack Phoenix for ShoutWiki, originally based on the HelpPages extension by Kunal Mehta (the extensions no longer share any code).

User documentation[Bearbeiten]

See Help:Extension:GlobalUserPage.

Caveats[Bearbeiten]

Using this extension comes with a few security risks. You must absolutely trust the central wiki and its admins, as they can easily insert raw HTML into your wiki, opening up XSS holes and other bad things.

Installation[Bearbeiten]

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

Configuration[Bearbeiten]

$wgGlobalUserPageAPIUrl is the URL to the central wiki's api.php. This URL is internally used to fetch the global user page's text.

$wgGlobalUserPageCacheExpiry controls how long to cache the rendered HTML for; the default is 60 * 60 * 24 * 7 (one week). The HTML is usually invalidated upon editing, but this is a worst case fallback.

$wgGlobalUserPageDBname is the name of the database where global user page data is stored, i.e. usually this should be set to the same value as $wgSharedDB.

$wgGlobalUserPageFooterKey message key to add as a footer to the bottom of global user pages, or false if no footer should be added.

$wgGlobalUserPageTimeout Timeout for internal API requests, to use $wgHTTPTimeout set this to the string "default".