23
Top Commentator Widget For Blogger
Here is the code (original pipe and codes provided by BloggerSentral, date limit feature by Pehpot’s husband, edited by moi, long-winded [but NOT boring!] story HERE) that you can use to display the top commentators of your Blogger blog and give some some love to people who love you the most. The features?
- It ACCURATELY displays the top commentators from the last FIVE THOUSAND (5000) comments of your blog.
- You are allowed to exclude THREE commentators of your choice (Anonymous is already excluded).
- You can set the number of names to display on your sidebar and commentators’ links are linked to URL provided.
- You can set the date for inclusion and exclusion (i.e. you want the list to show ONLY the top commentators for the whole month of January).
- Go to Layout and click Add a Gadget.
- Choose HTML/JavaScript.
- Copy and paste the below codes on the HTML/JavaScript gadget.
- Edit the following parts of the code above to reflect your own settings (ONLY the below settings, nothing more):
- Don’t forget to type in an appropriate title in the gadget box, i.e. Top Commentators or They Love Me Most, whatever floats your boat.
- Hit the delicious orange SAVE button.
<script type="text/javascript">
function getYpipe(feed) {
document.write('<ol>');
var i;
for (i = 0; i < feed.count ; i++)
{
var href = "'" + feed.value.items[i].link + "'";
if(feed.value.items[i].link == "")
var item ="<li>" + feed.value.items[i].title + "</li>";
else
var item = "<li>" + "<a href="+ href + '" target="_blank">' + feed.value.items[i].title + "</a> </li>";
document.write(item);
}
document.write('</ol>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?
YourBlogUrl=http://YOURBLOGNAME.blogspot.com
&ExcludedNick1=NAME1
&ExcludedNick2=NAME2
&ExcludedNick3=NAME3
&ShowHowMany=10
&ExcludeCommentsBefore=SET START DATE HERE (i.e. 01-01-2010)
&IncludeCommentsBefore=SET END DATE HERE (i.e. 01-31-2010)
&_callback=getYpipe
&_id=932ec72eca30a5b8a83365f4eb4349cd
&_render=json"
type="text/javascript"></script>
<center><a href="http://wahmaholic.com/2010/02/top-commentator-widget-for-blogger/">GET YOUR OWN TOP COMMENTATOR WIDGET!</a></center>
HOW TO COPY CODE: Click on the “view plain” text in the upper left corner of the code box ABOVE (see screenshot below). A window will pop up. Just Hit Ctrl+A and Ctrl+C to copy the entirety of the codes.
YourBlogUrl=http://YOURBLOGNAME.blogspot.com
&ExcludedNick1=1ST name to exclude
&ExcludedNick2=2ND name to exclude
&ExcludedNick3=3RD name to exclude
&ShowHowMany=Number of people to show in the list, i.e. 10. Default is 10.
&ExcludeCommentsBefore=Start date
&IncludeCommentsBefore=End date
That’s it! Easy-peasy, huh? And yes, this widget IS as ACCURATE as it can get, all thanks to Greenlava and Pehpot’s husband. I cannot thank you both enough! You’re a love! I know I have just given you readers the biggest headache of all with my tutorial, so for any questions, feel free to comment below!







weeeeeehh galing!! matry nga to pag nagpacontest ako hahah
go!
sasali ka?? lol nmn. mkta ko pa lng contest nio parang di ko kkkayanin sarili kong contest eh hahaha
i’ve used this one na marce in her and History and I plan to install this one in all my blogs:)
buti ka pa naumpisahan mo na.. ako kelan kaya.. waaaaaaah. i need more time kulang ang 24 hrs a day hahaah
ay meron din pala nito dito. balikan ko ito after ng contest, para mainstall ko na rin sa blogger ko
I think now the comments at your blogs and Pehpot are even more
Thanks for the codes dear!You’re a heaven sent!Installed them at my site kaya lang kasali ang name ko–pano yun?
question, ano un ipapalit dito?
1ST name
2ND name
3RD name
o wala na?
yung name ng gusto mong wag maisama sa list. normally, it would be the name of the author as it would make no sense if you include your name on the top commentator’s list.
ay you are there pala. heheh. for blogspot lang talaga sya noh, di pwde pagmay sariling domain? pero sa blogger pa rin?
pwede sya actually. i think pehpot’s using it in one of her blogs on blogger na may own domain
haha ayun lumabas na. may mali lang pala akong ginawa. salamat. :)
Sis, patulong naman bakit walang lumalabas ng commentor sa site ko tama ba gawa ko? o dapat ba mag-antay pa ako ng bagong comment bago sa mag appear?
thanks!
YourBlogUrl=http://livinglifetodfullest.blogspot.com/
&ExcludedNick1=Levy to exclude
&ExcludedNick2=Levy to exclude
&ExcludedNick3=Levy to exclude
&ShowHowMany=10
&ExcludeCommentsBefore=SET START DATE HERE (i.e. 01-01-2010)
&IncludeCommentsBefore=SET END DATE HERE (i.e. 12-31-2010)
try replacing your code above with this:
YourBlogUrl=http://livinglifetodfullest.blogspot.com/
&ExcludedNick1=Levy
&ShowHowMany=10
alisin mo na yung mga hindi mo need na parameters (like the date limit) if you are not planning to use it. lemme know how it goes.
sis, ito yung html code ng Top Commentator, wala pa din nagbago tinanggal ko na yung date at ibang di kailangan.. what seems to be the problem kaya? huhuhu!
function getYpipe(feed) {
document.write(”);
var i;
for (i = 0; i < feed.count ; i++)
{
var href = "'" + feed.value.items[i].link + "'";
if(feed.value.items[i].link == "")
var item ="” + feed.value.items[i].title + “”;
else
var item = “” + “‘ + feed.value.items[i].title + “ “;
document.write(item);
}
document.write(”);
}
GET YOUR OWN TOP COMMENTATOR WIDGET!
YourBlogUrl=http://livinglifetodfullest.blogspot.com/
&ExcludedNick1=Levy
&ExcludedNick2=Levy
&ExcludedNick3=Lev
&ShowHowMany=10
&_callback=getYpipe
&_id=932ec72eca30a5b8a83365f4eb4349cd
&_render=json”
type=”text/javascript”>
GET YOUR OWN TOP COMMENTATOR WIDGET!
i’ll send you the codes sa email. i already edited it to fit your blog. lemme know.
Thanks for sharing this. I had a hard time trying to find the right code for it and I am so happy to find yours. Will share your link in my post and got you linked in my blog too.
hi mel! it’s good to know you found this useful
thanks for this.. i needed this buti na lang nakita ko, i want to feature my top commenters monthly kaya pa-grab =)
sureness fab mommy :)
Hi Kaye, sowi I am not techy hehehe, dapat ba kasama yung numbers?
what numbers mommy rose? hihi. lutang ako. haha!
Thanks but can you tell that where can I find sites having top commentator widgets
thanks for sharing this code; have installed it in all my six blogs :-)
hi! just have followed ur site… tried installing this widget to mine but i don’t what seems to be d problem… it didn’t work… :(
hi k, been trying to get a top commentator widget but still not successful. can you help me out. sinunod ko naman yung mga nakasulat. thanks
thank you k .i figured out how to do this already. got mine now.
I am using it now. Pero I wonder kung bakit parang nasa center yung mga names
I try to install now. I hope it will be successful. Thanks for this post!
grabeh, i’m looking for these codes… last week pa ata.
buti na lang meron ka!
thanks a bunch!