Intense Debate Comments plugin

Plugin details

Add quick and easy comments to your app with IntenseDebate

Websitehttp://github.com/GavinM/intense_debate_comments Repositorygit://github.com/GavinM/intense_debate_comments.git Author Gavin Morrice Tags comment LicenseMIT

Documentation

Install the plugin:
ruby script/plugin install git://github.com/GavinM/intense_debate_comments.git

Suppose you want to add comments to the bottom of each post of your blog

In application_controller.rb set the following: ID_ACCT_NO = '... 32 digit code provided by IntenseDebate...'

In your view, just add: <%= id_comments @post %>

If, on your home-page, you want to show a short preview of each post and a comments-count displaying the number of comments on each, you can add:

<%- for post in @posts do -%>
    <%= id_comments_link post %>
<%- end -%>


Extra Opts Example
============================
Here are some extra options you can specify:

<%= id_comments @post, :acct_no => '... enter no here...', :url => post_url(post, :page_no => 1), :title => "Title Of This Post" %>


and...

<%- for post in @posts do -%>
    <%= id_comments_link post, :acct_no => '... enter no here...', :url => post_url(post, :page_no => 1) %>
<%- end -%>


The acct_no option overrides the ID_ACCT_NO constant in application_controller.rb should you need to specify a different acct no.

The url option is the url of the post or page. This is url Intense Debate will link to in rss feeds and on IntenseDebate.com. The default is the current page's url.

The title option is the title of the post or page. This is the title that will be displayed in rss feeds and on IntenseDebate.com. The default value is the title of the current page.

Further Documentation

There is currently no advanced documentation for this plugin.

New documentation

Edit plugin | (0 older versions) | Last edited by: hardway, about 1 year ago