franklouwers / radiant-comments forked from artofmission/radiant-comments
- Source
- Commits
- Network (26)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
tree 1cbe17a570c20703e3f241d96838a45e90ab3698
parent 2a01762d781ab9b3a0c028c6e73fec46a256025d
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Tue Sep 02 06:39:18 -0700 2008 | |
| |
CHANGELOG | Wed Sep 03 17:49:49 -0700 2008 | |
| |
MIT-LICENSE | Mon May 05 12:13:47 -0700 2008 | |
| |
README.rdoc | Wed Sep 24 07:54:26 -0700 2008 | |
| |
Rakefile | Thu Oct 09 22:27:09 -0700 2008 | |
| |
TODO | Tue Sep 23 09:40:30 -0700 2008 | |
| |
app/ | Wed Apr 01 23:37:11 -0700 2009 | |
| |
autotest/ | Wed Jul 23 12:43:27 -0700 2008 | |
| |
comments_extension.rb | Wed Jan 07 12:16:04 -0800 2009 | |
| |
db/ | Fri Oct 03 08:02:06 -0700 2008 | |
| |
lib/ | Mon Oct 13 10:49:30 -0700 2008 | |
| |
public/ | Tue Sep 02 06:39:18 -0700 2008 | |
| |
spec/ | Thu Oct 09 22:27:09 -0700 2008 | |
| |
test/ | Thu Jul 24 10:41:04 -0700 2008 |
Radiant Comments Extension
Adds blog-like comment functionality to Radiant.
Patches
This software "works for me", but it may not work for you, depending on your particular environment or setup. Feel free to modify it in any way. If you do make changes that would be useful to others, please send a patch to ryan at artofmission (dot you-know-what), and I will see that it gets applied.
Dependencies
- Requires Radiant 0.6.7 or greater.
- Requires will_paginate Rails plugin (github.com/mislav/will_paginate/tree/master)
- Requires fastercsv 1.2.3 or greater.
Installation
To copy the supporting files to your public directory, run:
rake radiant:extensions:comments:update
Usage
Remember to run the migration. This WILL delete any snippets named ‘comment’, ‘comments’ and ‘comment_form’ if these exist.
rake radiant:extensions:comments:migrate
To enable spam protection, you will need to set your Akismet or Mollom key and url in the Radiant config.
To enable the Akismet protection, get yourself an account at akismet.com/personal/ for your personal blog or at akismet.com/commercial/ for your commercial sites. Then set your personal key and url in the Radiant::Config.
For example:
script/console production Radiant::Config['comments.akismet_key'] = "6a009ca6ab4e" Radiant::Config['comments.akismet_url'] = "yoursite.com" exit
To enable Mollom protection, get yourself an account at mollom.com/user/register, add your site and set the public and private key pair in the Radiant::Config.
script/console production Radiant::Config['comments.mollom_privatekey'] = "deadbeef012345" Radiant::Config['comments.mollom_publickey'] = "c00fee012345" exit
If both services are configured, this plugin will use the Akismet service. Unset the akismet_key if you want to use Mollom.
To customize the CSV fields you can add an initializer like this:
Comment.class_eval do
def export_columns(format = nil)
%w[approved? author author_email content referrer]
end
end
In your layout:
<r:snippet name="comments" />
Snippets
The snippets "comments", "comment" and "comment_form" are created by the migration. These can be found under snippets, and can be customised after your needs. Check out the 002 migration to see what they default to.
Caveats
- Relative urls will not work on comment pages if they fail validation, since the page gets re-rendered at a (probably) different level of the hierarchy. Always use absolute urls and you won’t have any issues.
Contributors
- Jim Gay of www.saturnflyer.com, sponsored by ignitesocialmedia.com/.
- Michael Hale of halethegeek.com/, sponsored by ignitesocialmedia.com/.
- Nathaniel Talbott of terralien.com/, sponsored by ignitesocialmedia.com/.
- John Croisant
- Jon Leighton
- Witter Cheng
- Keith Bingman
- Sean Cribbs
- Ryan Heneise
- Frank Louwers (thanks to Jan De Poorter for the Mollom ruby lib)
If you contribute, go ahead and add your name to the list!
