Open main menu

Extension:TimezoneSelector


Other languages:
Deutsch • ‎English • ‎español • ‎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

  • $wgTimezoneSelectorExcludeSpecialPages
  • $wgTimezoneSelectorMessageOnlySpecialPages
  • $wgTimezoneSelectorTZpreference
  • $wgDefaultUserOptions['usetimezoneselector']
  • $wgDefaultUserOptions['timezoneselectormessage']
  • $wgDefaultUserOptions['timezoneselectorform']
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.

Contents

InstallationEdit

  • 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";
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parametersEdit

$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 alsoEdit

LicenseEdit

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

This is referred to Extension:LanguageSelector .