Rozšíření:Hromadné zprávy
![]() Stav rozšíření: stabilní |
|
---|---|
![]() |
|
Zavádění | Speciální stránka , API |
Popis | Umožňuje uživatelům jednoduše odeslat správu uživatelům na seznamu. |
Napsal(i) | Kunal Mehta, wctaiwan |
Nejnovější verze | 0.4.0 (2016-12-06) |
Zásady kompatibility | Vydání snímků následuje MediaWiki. Hlavní vývojová větev není zpětně kompatibilní. |
MediaWiki | 1.25+, use REL1_X branches for your version of MediaWiki |
Licence | GNU General Public License 2.0 nebo pozdější |
Zdrojový kód | |
|
|
|
|
Přeložte rozšíření MassMessage, používá-li lokalizaci z translatewiki.net | |
Vagrant role | massmessage |
Problémy | Otevřené úkoly · Nahlásit chybu |
Rozšíření Hromadné zprávy umožňuje uživatelům odeslat zprávu určeným uživatelům najednou pomocí speciální stránky Speciální:Hromadná zpráva. Pro nápovědu, jak používat toto rozšíření se podívejte zde: Help:Extension:MassMessage . API dokumentaci můžete nalézt w Extension:MassMessage/API .
Instalace
- Stáhněte soubor/y a vložte je do adresáře pojmenovaného
MassMessage
ve vaší složceextensions/
. - Na konec vašeho souboru LocalSettings.php přidejte řádek s následujícím kódem:
wfLoadExtension( 'MassMessage' );
- Hotovo – Přejděte na stránku Special:Version vaší wiki, a zkontrolujte, zda bylo rozšíření úspěšně nainstalováno.
Konfigurační parametry
- Jmenné prostory, do kterých lze zprávu pomocí tohoto rozšíření odeslat
When posting messages, only post them in the specified namespaces. All talk namespaces are already whitelisted.
$wgNamespacesToPostIn = [ NS_PROJECT ];
- Namespaces to convert
:
If you want users to be able to provide a link to a User: page, but have the bot post on their User talk: page you can define that here.
$wgNamespacesToConvert = [ NS_USER => NS_USER_TALK ];
- Uživatelské jméno
What username the bot should post with. By default, this is "MediaWiki message delivery". If the user already exists, the extension will take over the account. It will be impossible for users to rename the account. You can override the default account name by specifying (for example):
$wgMassMessageAccountUsername = 'MessengerBot';
- Enable global messaging
:
Whether to enable sending messages from one wiki to another. If running on a wikifarm setup like Wikimedia, you can disable this on all wikis except one to keep the logs in one place.
$wgAllowGlobalMessaging = true;
Skript pro správce
Zprávy můžete posílat také z příkazové řádky
php sendMessages.php --pagelist <<span lang="en" dir="ltr" class="mw-content-ltr">page list file</span>> --subject <<span lang="en" dir="ltr" class="mw-content-ltr">subject file</span>> --message <<span lang="en" dir="ltr" class="mw-content-ltr">message file</span>>
where each line of <page list file>
contains a page name followed by a wiki (database) name, separated by a tab.
Uživatelská práva
massmessage
- Lets a user send out messages. By default assigned to the "sysop" user group.
Poznámky
If you are using MediaWiki 1.25 – 1.34, MassMessage requires $wgContentHandlerUseDB
to be enabled.
Extensions which integrate with this one: Echo, LiquidThreads.
Rozhraní
Toto rozšíření lze vidět na třech místech:
- Special:CreateMassMessageList, to create delivery lists.
- Wiki pages with the
MassMessageListContent
content model, which represent delivery lists. These are automatically categorised under Category:MassMessage delivery lists. - Special:MassMessage, to send a message to a delivery list.
Viz též
- Extension:MassMessageEmail - Emails users instead of posting on their talk pages.
This extension is being used on one or more Wikimedia projects. This probably means that the extension is stable and works well enough to be used by such high-traffic websites. Look for this extension's name in Wikimedia's CommonSettings.php and InitialiseSettings.php configuration files to see where it's installed. A full list of the extensions installed on a particular wiki can be seen on the wiki's Special:Version page. |