Расширение:SlackNotifications
Slack Notifications Статус релиза: стабильный |
|
---|---|
![]() |
|
Реализация | User interface, Notify |
Описание | Sends notifications of actions in MediaWiki like adding, removing or deleting an article into Slack channel |
Автор(ы) | Aleksi Postari (kulttuuritalk) |
Последняя версия | 1.14 (2019-07-03) |
MediaWiki | 1.25+ |
PHP | 5.2+ |
Изменения БД | Нет |
Лицензия | MIT License |
Загрузка | Download snapshot Note: |
|
|
Переведите расширение SlackNotifications если оно доступно на translatewiki.net | |
Проверьте использование и версию. |
The SlackNotifications sends notifications of actions in MediaWiki like adding, removing or deleting an article into Slack channel.
Installation
- Download и распакуйте файл(ы) в папку с названием
SlackNotifications
в вашей папкеextensions/
.
- Добавьте следующий строки в конец файла LocalSettings.php:
require_once "$IP/extensions/SlackNotifications/SlackNotifications.php"; // Required. Your Slack incoming webhook URL. Read more from here: https://api.slack.com/incoming-webhooks $wgSlackIncomingWebhookUrl = ""; // Required. Name the message will appear be sent from. $wgSlackFromName = "Wiki"; // URL into your MediaWiki installation with the trailing /. $wgWikiUrl = "http://your_wiki_url/"; // Wiki script name. Leave this to default one if you do not have URL rewriting enabled. $wgWikiUrlEnding = "index.php?title="; // What method will be used to send the data to Slack server. By default this is "curl" which only works if you have the curl extension enabled. This can be: "curl" or "file_get_contents". Default: "curl". $wgSlackSendMethod = "curl";
- Готово – Перейдите на страницу Special:Version на своей вики, чтобы удостовериться в том, что расширение успешно установлено.
Configuration parameters
Please read the project README file for more configuration options.