This library was written in 2013. The information described here can be (veratnet all) is deprecated. Code posted as an example of my code for job search. Chances are that now on Packagist and official extentions repository you can find new and more convenient and high-quality library for working with Akismet.
AkismetMediawiki
Mediawiki extention to check changes for spam.
Name | Default value | Possible values | Description |
---|---|---|---|
Reqiured fields | |||
$wgAkismetApiKey | - | string | The Api key, received from akismet.com. The key should be specified. |
Enable/disable functionality | |||
$wgAkismetAddDeleteReason | true | true | Adds an item "Spam (Akismet)" to the list of reasons during deleting something (a page or a section). With this item chosen, the deleted page will be sent to the Akismet server as spam. |
$wgAkismetEnableEditFilter | true | true | Enables checking just edited block. |
$wgAkismetEnableEditFilterMerged | false | true | Enables checking of the whole article with edited block. |
Managing the logic of the work (adjustment, switchers) | |||
$wgAkismetAuthorIsCreator | true | Defines the author of the article. | |
true | Author of the article is considered as the author of the page. | ||
false | Author of the article is considered as the author of the last editing. | ||
$wgAkismetOnSpamShowEditor | true | Defines the actions to be performed when detecting spam in editing. | |
true | Remain on the editing page and show the spam detection message in the heading. | ||
false | Show the standard page of spam detection. | ||
$wgAkismetOnSpamShowWikiMessage | true | Defines what message to show in case of spam detection. | |
true | Show standard message about spam detection ('spamprotectiontext'). | ||
false | Show the plugin message. |
This library sponsored and requested by Hosting company 2by2host and Aimbox.
- Find better solution and add link to here or test on last wersion Mediawiki and add this to official extentions repository.
The MIT License (MIT).