disqus plugin

disqus plugin by Andreas Gohr
Add Disqus powered comments to your wiki

Last updated on 2009-07-26. Provides Syntax.
Compatible with DokuWiki 2009-12-25+.

Similar to discussion.

Tagged with discussion, embed.

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

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();
}
?>
 
plugin/disqus.txt · Last modified: 2010/02/12 14:50 by andi
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate