Extension:TimezoneSelector

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
Deutsch • ‎English • ‎polski • ‎中文 • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
TimezoneSelector
Release status: stable
Implementation Skin, MyWiki, Special page
Description Allows to show timezone settings and change temporarily timezone setting
Author(s) Burthscehtalk
Latest version 0.3 (2013-05-05)
MediaWiki 1.18+
PHP 5.3+
Database changes No
License GPL2+
Download Template:WikimediaDownload/gerrit
Parameters

  • $wgTimezoneSelectorExcludeSpecialPages
  • $wgTimezoneSelectorMessageOnlySpecialPages
  • $wgTimezoneSelectorTZpreference
  • $wgDefaultUserOptions['usetimezoneselector']
  • $wgDefaultUserOptions['timezoneselectormessage']
  • $wgDefaultUserOptions['timezoneselectorform']
Hooks used
UserLoadOptions
UserGetDefaultOptions
GetPreferences
PageHistoryBeforeList
SpecialPageBeforeExecute
InfoAction
ImageOpenShowImageInlineBefore
SkinTemplateOutputPageBeforeExec
Translate the TimezoneSelector extension if it is available at translatewiki.net
Check usage and version matrix.

The TimezoneSelector extension allows to show timezone settings and change temporarily timezone setting.

Installation

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

Configuration parameters

$wgTimezoneSelectorExcludeSpecialPages
List of special pages which is excluded for adding TimezoneSelector form.
$wgTimezoneSelectorMessageOnlySpecialPages
List of special pages where the form changing temporarily timezone setting.
$wgTimezoneSelectorTZpreference
This have timecorrection of user's preference. Do not modify this.
$wgDefaultUserOptions ['usetimezoneselector']
Whether user uses TimezoneSelector. This should be set 0 or 1.
$wgDefaultUserOptions['timezoneselectormessage']
Whether user uses description of timezone settings and length of the description. This should be set 'no', 'short' or 'long'.
$wgDefaultUserOptions['timezoneselectorform']
Whether user uses select form of timezone. This should be set 0 or 1.

See also

License

This uses the codes from MediaWiki. Please see MediaWiki contributors list.

This is referred to Extension:LanguageSelector .