Extension:AvbDisqus

Description
Enables easy addition of Disqus comments to a MediaWiki pages.

See demo-picture there: http://devwiki.beloblotskiy.com/images/4/42/Extensions-AvbDisqus.png

AvbDisqus is MediaWiki tag extension which adds Disqus comments into wiki site.

Extension code
Extension body is written on PHP. Create file

and put this code into it.

Extension code (avbdisqus.php):

And one more step - add the lines below at the end of your LocalSettings.php

Customization
Change value of $wgAvbDisqusWebsiteName in LocalSettings.php: insert your disqus website name instead of YOUR_DISQUS_WEBSITE_NAME. (Website name is in your Disqus Comments Basic Settings.)

Usage
Insert  tag where you want to see Disqus Comments form. Don't write anything between  and  : AvbDisqus extension ignores this text (in this version). Maybe in future I'll use this text to pass some arguments to extension.

My practice

 * Put code below into certain MediaWiki discussion page (in this example - Talk:MyPage).




 * Put  at the end of article (this is example for MyPage article). AvbDisqus add Disqus special JavaScript code at the end of page to replace link with   ending with number of comments. So, you will see:


 * Discuss this article (0 Comments)

Example can be found there: http://devwiki.beloblotskiy.com/index.php5/AvbDisqus_(MediaWiki_extension)