Extension:SpamRegex/pl

Category:GPL licensed extensions/pl
Podręcznik rozszerzeń MediaWiki
SpamRegex
Status wydania: stabilneCategory:Stable extensions/pl
Realizacja Strona specjalna Category:Special page extensions/pl
Opis Adds a special page to filter out unwanted expressions.
Autor(zy)
Ostatnia wersja 1.9
MediaWiki 1.43+Category:Extensions with manual MediaWiki version
Zmiany w bazie danych Tak
Licencja Licencja GNU General Public License 2.0 lub nowsza
Pobieranie Category:Extensions in Wikimedia version control/pl
  • spamregex
Quarterly downloads 2 (Ranked 94th)
Public wikis using 1,117 (Ranked 252nd)
Przetłumacz rozszerzenie SpamRegex jeżeli jest dostępne na translatewiki.net
Problemy Otwarte zadania · Zgłoś błąd
Category:All extensions/pl

The SpamRegex extension creates a new page, "Special:SpamRegex", to filter out unwanted links or text. A full list of currently blocked links or text can be viewed on this same special page. The spamregexed expressions cannot be used in page content, edit summaries or page move summaries, depending on what was chosen by the user who blocked links or text.


Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie SpamRegex w folderze extensions/.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/SpamRegex
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'SpamRegex' );
    
  • Uruchom skrypt aktualizujący, który automatycznie stworzy potrzebne tabele dla tego rozszerzenia.
  • This extension uses Memcached - please check if Memcached is configured properly in Global/LocalSettings.php .
  • Ensure the spamregex user right is given to a group that exists; by default this user right is given to the staff user group (which does not exist in a default MediaWiki installation).
  • Yes Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Użycie

  1. Go to "Special:SpamRegex"
  1. Enter the phrase to be blocked into the "Phrase to block" box
  1. Supply a reason for blocking the phrase
  1. Select one or both of the available options: block phrase in page text & block phrase in summary (edit summaries, page move summaries)
  1. Press the "Block this phrase" button

Interoperability

SpamRegex also supports checking content submitted via the following extensions for spam:

Note that none of these extensions use the ContentHandler or Content classes defined in MediaWiki core, for better or for worse.

See the hooked functions in /extensions/SpamRegex/includes/backend/SpamRegexHooks.php for an idea of how to add support for another custom extension. The basic idea is simple: get the desired data from SpamRegex (call SpamRegex::fetchRegexData() with either SpamRegex::TYPE_TEXTBOX or SpamRegex::TYPE_SUMMARY as the parameter), ensure that you got something, iterate over the array and use PHP's preg_match() to detect a match. In case of a match, signal this to the consumer code by e.g. returning a boolean so that the consumer knows that the submission is spam and should not be saved.

Zobacz też

Category:Extensions by Fandom/pl Category:Extensions by ShoutWiki/pl Category:Spam management extensions/pl
Category:All extensions/pl Category:Comments::isSpam extensions/pl Category:EditFilter extensions/pl Category:Extensions by Fandom/pl Category:Extensions by ShoutWiki/pl Category:Extensions in Wikimedia version control/pl Category:Extensions with manual MediaWiki version Category:GPL licensed extensions/pl Category:LoadExtensionSchemaUpdates extensions/pl Category:MovePageCheckPermissions extensions/pl Category:ProblemReportsContentCheck extensions/pl Category:RenameUserComplete extensions/pl Category:Spam management extensions/pl Category:Special page extensions/pl Category:Stable extensions/pl