Artkel Populer Berdasarkan Jumlah Komentar Blogger
Cara membuat Artkel Populer Berdasarkan Jumlah Komentar di Blogger Blogspot ini sangat mudah. Caranya sebagai berikut:
Cara membuat Artkel Populer Berdasarkan Jumlah Komentar di Blogger Blogspot ini sangat mudah. Caranya sebagai berikut:
1. Klik Tata Letak (Layout)
2. Klik Tambah Javascript / HTML
3. Masukkan kode berikut:
<!-- Popular posts with comment count Start -->
<script type="text/javascript">
function getYpipePP(feed) {
document.write('<ol style="">');
var i;
for (i = 0; i < feed.count ; i++)
{
var href = "'" + feed.value.items[i].link + "'";
var pTitle = feed.value.items[i].title;
var pComment = " \(" + feed.value.items[i].commentcount + "\)";
var pList = "<li>" + "<a href="+ href + '" target="_blank">' + pTitle;
document.write(pList);
document.write(pComment); //to remove comment count delete this line
document.write('</a></li>');
}
document.write('</ol>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?
YourBlogUrl=http://www.alkhoirot.net
&ShowHowMany=10
&_id=390e906036f48772b2ed4b5d837af4cd
&_callback=getYpipePP
&_render=json"
type="text/javascript"></script>
<!-- Popular posts with comment count End -->
4. Pada kalimat: Your Blog URL -> ganti dengan alamat blog anda
5 Klik Simpan. Selesai.
1. Klik Tata Letak (Layout)
2. Klik Tambah Javascript / HTML
3. Masukkan kode berikut:
<!-- Popular posts with comment count Start -->
<script type="text/javascript">
function getYpipePP(feed) {
document.write('<ol style="">');
var i;
for (i = 0; i < feed.count ; i++)
{
var href = "'" + feed.value.items[i].link + "'";
var pTitle = feed.value.items[i].title;
var pComment = " \(" + feed.value.items[i].commentcount + "\)";
var pList = "<li>" + "<a href="+ href + '" target="_blank">' + pTitle;
document.write(pList);
document.write(pComment); //to remove comment count delete this line
document.write('</a></li>');
}
document.write('</ol>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?
YourBlogUrl=http://www.alkhoirot.net
&ShowHowMany=10
&_id=390e906036f48772b2ed4b5d837af4cd
&_callback=getYpipePP
&_render=json"
type="text/javascript"></script>
<!-- Popular posts with comment count End -->
4. Pada kalimat: Your Blog URL -> ganti dengan alamat blog anda
5 Klik Simpan. Selesai.