Update 24 Dec 2009: I’ve just realized that the Blogger emits the maximum of only 200 comments per feed, even when I specified 1000 comments (using max-results=1000 query parameter). It wasn’t so when I wrote this tutorial back in June.
Anyway I’ve got the pipe fixed.
For readers who cloned my pipe, please re-clone. And for those who use my pipe as it is, you don’t have to do anything. The updated pipe will truly reflect your blog’s latest 1000 comments.
Improve traffic to your site by encouraging readers to leave comments on your blog. And what better way to motivate them to comment than to have their names displayed on your blog. Top Commentators widget will display the list of people who commented the most. Each name is linked to the commentator’s Blogger profile or web site.
See a live example here in my widget showcase blog.
If normal list like that doesn’t whet your appetite, try a cloud version, with Top commentators Cloud.
I. Installing Top Commentators widget:
- Login to your Blogger account.
- Go to Design > Page Elements.
- Click Add A Gadget.
- Copy the code below and paste it inside the window.
- Enter the title of your widget e.g. Top Commentators.
- Click Save.
II. Customizing Top Commentators widget
Notice the highlighted items in the code? That’s where you need to enter your own input:
YourBlogUrl–this is your blog URL, replace http://www.bloggersentral.com with yours. Remember: Do not include the trailing slash (i.e. .com/). This widget works for both blogspot and custom domain.
ExcludedNick2–add up to two commentator nicknames that you want to exclude from the top ten list. You may want to put your nickname in here. The nickname Anonymous is already included in exclusion list, so you don’t need to add it here.
ShowHowMany–specify how many people on the list, the default is 10.
This widget utilizes Yahoo! Pipes to extract and process the data from your blog’s latest 1000 comments, via comments feed .
III. Customizing the pipe (optional)
If you want further customize the widget output, you need to edit the (Yahoo) pipe itself. Follow the steps below:
- Go to my Yahoo! pipe here.
- Log in to your Yahoo! account.
- Create a clone by clicking the Clone button.
- Click edit source to edit it in anyway you like.
- When you’re done editing and saving, test run it by clicking Run Pipe button to confirm the output of the pipe.
- To use the pipe in the Top Commentator widget, you need to copy the id and paste it to replace the existing id in line 24. (To get the id, look in your browser’s address bar. The id is the end part the URL when you are viewing or editing the pipe.)