Open main menu

Extension:SlackNotifications/oc

This page is a translated version of the page Extension:SlackNotifications and the translation is 17% complete.
Other languages:
English • ‎español • ‎occitan • ‎sicilianu • ‎русский • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
Slack Notifications
Release status: stable
Slack mediawiki.jpg
Implementation User interface, Notify
Description Sends notifications of actions in MediaWiki like adding, removing or deleting an article into Slack channel
Author(s) Aleksi Postari (kulttuuritalk)
Latest version 1.14 (2019-07-03)
MediaWiki 1.25+
PHP 5.2+
Database changes No
License MIT License
Download

  • $wgSlackIncomingWebhookUrl
  • $wgSlackFromName
  • $wgSlackSendMethod
  • $wgWikiUrl
  • $wgWikiUrlEnding
Translate the SlackNotifications extension if it is available at translatewiki.net
Check usage and version matrix.

The SlackNotifications sends notifications of actions in MediaWiki like adding, removing or deleting an article into Slack channel.

Installacion

  • Telecargar and place the file(s) in a directory called SlackNotifications in your extensions/ folder.
  • Add the following code at the bottom of your 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";
    
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Paramètres de configuracion

Please read the project README file for more configuration options.