![]() Release status: beta |
|
---|---|
![]() |
|
Description | Adds the Disqus commenting service at bottom of each page |
Author(s) | Michael Platzertalk |
Maintainer(s) | Sophivorus |
Latest version | 1.0 (2022-01-18) |
MediaWiki | 1.25+ |
License | GPL |
Download | Download extension Git [?]: |
Parameters
|
|
Hooks used
|
|
Quarterly downloads | 3 (Ranked 167th) |
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
- Download and place the file(s) in a directory called
PageDisqus
in yourextensions/
folder. - Add the following code at the bottom of your LocalSettings.php
wfLoadExtension( 'PageDisqus' ); $wgPageDisqusShortname = 'your-disqus-shortname';
file: Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
Configuration
$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
- 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.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.