This is an old revision of the document!
Table of Contents
disqus plugin
Compatible with DokuWiki
2009-12-25, 2010-11-07, Rincewind, Adora Belle, Weatherwax, Binky
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Similar to discussion, duoshuo-dokuwiki, miniblog
This plugin integrates a threaded comment system provided by the online service Disqus. JavaScript is required to see the comments inline, when no JavaScript is available a link to the Disqus page is provided.
Download and Installation
Download and install the plugin using the Plugin Manager using the download link given above. Refer to Plugins on how to install plugins manually.
Changes
- Version upped (2016-11-30 18:23)
- Merge pull request #15 from fa-ribeiro/master (2016-08-09 11:53)
- make argument optional on _disqus method for backward compatibility (2016-08-09 11:50)
- Version upped (2016-08-09 09:36)
- Merge pull request #14 from fa-ribeiro/master (2016-08-09 09:35)
- escapes user input in the render method (2016-08-08 23:06)
- escapes user input (2016-08-08 21:49)
- add support for inline shortname definition (2016-08-08 16:12)
Configuration
The plugin can be configured through the Config Manager. You need to register a short name at Disqus and set it in the shortname
option. For local testing enable the devel
option.
Syntax and Usage
Simply add the following macro where you want to have the comment form and the comments displayed:
~~DISQUS~~
Adding comments to every page
If you want Disqus comments on all pages in your wiki, it is easier to just call the plugin from your template. Add the following code in your template's main.php
where you want the comments to appear:
<?php if($ACT == 'show'){ $disqus = &plugin_load('syntax','disqus'); echo $disqus->_disqus(); } ?>
Discussion
It just gives my pages errors.
Works for me with DokuWiki 2010-11-07. — Rik Blok 2011/02/27 07:11
Works for me with 2012-10-13 “Adora Belle” – Oscar M. Lage 2012/11/10 13:09
Works for me with 2011-05-25a “Rincewind” – Aleksandr Selivanov 2013/07/21 21:00
Works for me with 2013-05-10 “Weatherwax” – Aleksandr Selivanov 2013/09/14 17:11