Project

cackle

0.0
No commit activity in last 3 years
No release in over 3 years
Sync cackle's comments with local database and render with page for SEO optimization.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

>= 0
~> 4.0.0
 Project Readme

Cackle.me integration

Simple Rails plugin implements synchronization of Cackle.me comments.

Cackle.me is a real-time comment system with the ability to login via popular social networks such as Google+, Facebook, Twitter, LinkedIn, Vkontakte, Odnoklassniki, Mail.ru and many others.

Storing in local database make comments visible to search robots.

Installation

Add to Gemfile

gem 'cackle', github: 'iRet/cackle'

Generate and run migration

rails g cackle:migration
rake db:migrate

Copy views to app/views for customization (optional)

rails g cackle:views

Create config file config/cackle.yml See http://cackle.me/help/comment-sync to find your keys

site_id:         12345          # Site ID
site_api_key:    blah-blah-blah # Account API Key
account_api_key: blah-blah-blah # Site API Key

Helper methods

Insert comments widget

cackle_comments

Recent comments widget

cackle_recent_comments

You can easily specify ammount of comments to show and other params. For example:

cackle_recent_comments 10, avatar_size: 32, text_size: 150, title_size: 40 

Rake tasks

First time import. Warning clears all comments in base.

rake cackle:import

Syncronize changes. Should be called every 5 minutes by cron.

rake cackle:fetch

License

This project rocks and uses MIT-LICENSE.