Reward your top commentators by displaying their names with clickable links on your blog. One of the more popular methods is by using a top commentators widget.
This time we will create yet another top commentators widget, but with a different look. We will make a cloud, just like a label cloud, except with commentators as the content.
I personally prefer this cloud version over the conventional top commentators widget, simply because it packs more commentators for the same amount of space.
What you see above is a screenshot of the widget, with 30 top commentators, arranged alphabetically. The comment counts are extracted from Blogger Sentral’s most recent 2000 comments. Comments are sourced from comments feed and processed via Yahoo Pipe. You can see the live widget in my widget showcase blog.
I believe this commentators cloud is the first of its kind, so consider yourself lucky Google sent you here :).
Okay now, enough with shameless promotion, let’s get to work:
1. Installing Commentators Cloud
- Login to your Blogger account.
- Go to Design > Page Elements.
- Click Add A Gadget.
- Enter the title of your widget e.g. Commentators Cloud.
- Copy the code below and paste it inside the content box.
- Click Save.
2. Customizing Commentators Cloud
Notice the highlighted items in the code? That’s where you need to enter your own inputs:
YourBlogUrl(code line 37)
This is your blog URL, replace http://www.bloggersentral.com with yours. Make sure you omit the slash at the end of the URL (as in .com/).
Exclusions(code line 38)
List the commentator names you want to exclude from the cloud. Separate each name with a comma, and don’t put space between them.
ShowHowMany(code line 39)
Specify how many top commentators you want to appear in the cloud.
Order(code line 40)
alphabetif you want to arrange the names alphabetically.
frequencyif you want to arrange them by frequency (with the most frequent commentators on top).
- Comment count (code line 28)
Comment count (in bracket) is displayed by default. To remove it, just delete this line of code.
3. Cloning and customizing the pipe (optional)
The cloud will work just fine even without you going through this step. However I encourage you to clone the pipe, because in doing so:
- You will be able to modify the pipe to suit your preferences.
- You cloud will be independent of my pipe. It will stay running even when something happens to my pipe.
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 your pipe in the Commentators Cloud widget, copy the ID and paste it to replace the existing id in line 42. (The ID is in your browser’s address bar when you are viewing or editing the pipe. It’s the end part the URL).