Tutorial : Letak Top Commentor kat Blog


As-Salam

Nak tahu  tak sapa pengkomen terhebat kat blog u all??

Meh kita try tutorial ini.

1. Pi Dashboard -->Layout-->Add a Gadjet-->Html

2. Copy code kat bawah ni dan paste ke Html
<center><script type="text/javascript">
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 ="<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('</ul>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?
YourBlogUrl=http://www.kisahemasputih.com&ExcludedNick1=Emas Putih&ExcludedNick2=anonymous
&ShowHowMany=10&_callback=getYpipe
&_id=23022d7836bf2dd3c10a329feb9be26a
&_render=json"
type="text/javascript"></script></center>

3. Tukar code yang berwarna :
merah : Url blog
Hijau : Nama Profile Blog
Oren : Berapa bilangan top commentor yang korang nak tengok 

4. Save.

Mudahkan? Selamat Mencuba.

4 comments