Extension:PageDisqus
Appearance
From mediawiki.org
Release status: beta |
|
|---|---|
| Description | Adds the Disqus commenting service at bottom of each page |
| Author(s) | Michael Platzer talk |
| Maintainer(s) | Sophivorus |
| Latest version | 1.0 (2022年01月18日) |
| MediaWiki | 1.25+ |
|
|
| Licence | GNU General Public License 3.0 or later |
| Download | |
| Translate the PageDisqus extension if it is available at translatewiki.net | |
The PageDisqus extension automatically integrates the Disqus commenting service to every page, right after the content area.
Installation
[edit ]- Download and move the extracted
PageDisqusfolder to yourextensions/directory.
Developers and code contributors should install the extension from Git instead, using:cdextensions/ gitclonehttps://gerrit.wikimedia.org/r/mediawiki/extensions/PageDisqus - Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'PageDisqus' ); $wgPageDisqusShortname = 'your-disqus-shortname';
- Yes Done – Navigate to
Special:Versionon your wiki to verify that the extension is successfully installed.
Configuration
[edit ]$wgPageDisqusShortname- Required! The Disqus shortname for your site. This is the identifier (or the hostname) you specify when entering your unique Disqus URL.
By default, Disqus will be shown in every page. However, you can control this with the following configuration options:
$wgPageDisqusPageWhitelist = [ 'Foo', 'Bar', 'Baz' ];- Only show in these pages$wgPageDisqusPageBlacklist = [ 'Main Page' ];- Don't show in these pages$wgPageDisqusCategoryWhitelist = [ 'Controversial', 'New' ];- Only show in these categories$wgPageDisqusCategoryBlacklist = [ 'War', 'Sex' ];- Don't show in these categories$wgPageDisqusNamespaceWhitelist = [ NS_MAIN, NS_HELP ];- Only show in these namespaces$wgPageDisqusNamespaceBlacklist = [ NS_TEMPLATE, NS_MEDIAWIKI ];- Don't show in these namespaces
See also
[edit ]- Extension:DisqusTag - Disqus anywhere a tag is inserted
- Extension:SectionDisqus - Disqus each section independently
- Disqus Comments Widget on mediawikiwidgets.org site, it uses Extension:Widgets.