Giter VIP home page Giter VIP logo

intense_debate_comments's Introduction

NOTE: This Rails 2 plugin is no longer maintained

IntenseDebateComments

Add quick and easy comments to your app with IntenseDebate.

If you haven't already heard of/seen IntenseDebate check out the comments on any of the tips at handy rails tips

Benefits of using IntenseDebate:

  • Saves loads of time as you don't have to write your own system for accommodating comments
  • Users can respond to individual comments so it feels more like a thread-based forum than simply consecutive comments
  • Commenters can be notified of any extra comments being posted - great for brining traffic back to your site
  • Built-in spam filter
  • You can easily moderate comments
  • Gravatar, OpenID and FacebookConnect are supported
  • The form is fully customizable. Just upload your own custom stylesheet on the ID website

You can set up an account for your own site free at intenseDebate.com

Simple Example

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.

Still trying working on improving this plugin with the guys from IntenseDebate.

Copyright (c) 2009 Gavin Morrice, released under the MIT license

intense_debate_comments's People

Contributors

bodacious avatar

Stargazers

Amir Tocker avatar Christian Rojas avatar  avatar Marston A. avatar Dmitry Naumov avatar Dave Shenk avatar  avatar Andrei Andreev avatar Kevin Triplett avatar Ivan Storck avatar

Watchers

 avatar James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.