Reddit provides a wonderful system for voting stories up and down, discussing the stories along with new ites from each subreddit a user has subscribed to appearing in their news feed. The subreddit system is ideal for building a community about a very specific topic. Because of this, I’ve decided to provide comments, discussion and discovery of articles for my blog via Reddit’s subreddit model. And here is how I did it.
Once logged in, it’s extremely easy and quick to get a subreddit set up on Reddit. While it’s all really straightforward, there is one option that you would want to make sure is set. That is setting the Type to ‘restricted: anyone can view, but only some are approved to submit link’. I chose to customize the CSS of the subreddit to match the look-and-feel of the blog. There may be some guides out there on how to do this, I simply viewed th stylesheets affecting each element I wanted to change and added an entry to reflect what I wanted. The end result was about an hour or two of playing around and testing things out. The subreddit is located at http://www.reddit.com/r/ismarc.
With the initial integration completed, readers can see how the article has been voted on by others. The tiny Reddit alien head on the left of the up and down arrows links to the discussion about the post, but we want even more pervasive integration.
There are two main endpoints that need to be used to get and display the comments for a particular post:
If you visit the comments page of any submission on Reddit, that is the full functionality I would like to provide access to. However, that requires login integration as well as cross-site POST requests for submission of data. Since it is a more involved process and has potential security implications, I’m not going to just throw something together. Instead, as I have time, I’ll work on implementing the system…unless someone else would care to put it together and let me know.