Jump to content

扩展:AjaxShowEditors

From mediawiki.org
This page is a translated version of the page Extension:AjaxShowEditors and the translation is 57% complete.
MediaWiki扩展手册
Ajax Show Editors
发行状态: 稳定版
实现 数据库 , 用户活动 , Ajax
描述 显示谁正在编辑您正在编辑的页面。
作者 Antoine Musso, Tim Starling, Jack Phoenix
最新版本 2.0 (2020-11-13)
MediaWiki 1.43.8+
数据库更改
  • $wgAjaxShowEditorsTimeout
许可证 GNU General Public License 2.0 only
下載
前往translatewiki.net翻譯AjaxShowEditors扩展

The AjaxShowEditors extension allows you to see who is editing a page that you're editing at the same time. The extension displays a box containing other users' user names on action=edit (as well as on preview, action=submit).


安裝

  • 下载文件,并解压AjaxShowEditors文件夹到extensions/目录中。
    开发者和代码贡献人员应改从Git安装此扩展,输入:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/AjaxShowEditors
    
  • 請新增下列代码到您的LocalSettings.php 文件的底部:
    wfLoadExtension( 'AjaxShowEditors' );
    
  • 請运行更新脚本,它将自动创建此扩展所必须的数据库表。
  • Yes 完成 – 請导航至您的wiki上的Special:Version,以验证此扩展已成功安装。

配置

The extension has only one configuration variable, $wgAjaxShowEditorsTimeout; its default value is 60 (seconds); it's the timeout in seconds after which a user is considered as no longer editing the page in question.