Wednesday, 8 April 2015

Tutorial : Top Commentators Bulanan

Thanks. Boleh jew :)


Step 1) Dashboard > Layout > Add Gadget > HTML/Javascript

Step 2) Copy dan paste code

<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=URL BLOG
&ExcludedNick1= NAMA ADMIN
&ExcludedNick2= Anonymous
&ShowHowMany=10
&ExcludeCommentsBefore=01-04-2015
&IncludeCommentsBefore=30-04-2015
&_callback=getYpipe
&_id=50b225c916b74b06779b9489abceef2a
&_render=json"
type="text/javascript"></script>


Step 3) Edit code
  • URL BLOG : Masukkan URL blog anda
  • NAMA ADMIN : Nama anda
  • 10 : Jumlah komentator
  • 01-04-2015 : Tarikh mula
  • 30-04-2015 : Tarikh akhir

Step 4) Save


p/s : Bagi saya widget nie best sebab kita boleh adjust tarikh dia. Kalau tak dapat bagitau tau :) Anyway, selamat mencuba and happy blogging ^^


Special Thanks : Blog Azhafizah

10 comments:

  1. Kak Sha pun buat tutorial pengomen terbanyak ni guna cara yg sama :)

    ReplyDelete
    Replies
    1. Owh yeke. Hehe Yang jenis nie best sikit berbanding top komentator yang lain. Kan kan kan :D

      Delete
  2. tq. sy pun tgh cari koding ni

    http://kucenmaster.blogspot.com/2015/04/bihun-goreng-special.html

    ReplyDelete
  3. codin ni mudah. t senang nak tukar ikut tarikh hihi

    ReplyDelete