Cara membuat recent coment di Blog

Cara membuat recent coment di Blog

masterjahil.blogspot.com, kali ini saya akan membagikan tutorial tips bagaimana caranya membuat recent coment di blog, pemasangan recent coment ini tenyata juga akan membantu pengunjung blog anda tentang artikel manakah yang banyak mendapatkan sorotan dengan ditampilkannya berbagai koment tersebut, untuk membuat nya lansung saja kita ke TKP,

  • Login akun blog anda, dan pada Dasboard blog klik Tata Letak
  • Buat Gadged baru dan pilih Html/JavaScrip 
 
  • Copy dan pastekan kode Html berikut pada menu Html tadi
<style scoped='' type="text/css">
ul.arlinacomments{list-style:none;margin:0;padding:0}.arlinacomments li{display:block;clear:both;overflow:hidden;list-style:none;border-bottom:0!important;word-break:break-all}.arlinacomments li .avatarImage{float:left;margin-right:10px;position:relative;overflow:hidden}.arlinacomments li img{position:relative;overflow:hidden;display:block;width:42px;height:42px}.arlinacomments li a{font-weight:700}.arlinacomments li span{margin-top:2px;color:#666;display:block;font-size:12px;line-height:1.4}
</style>
<script type="text/javascript">
//<![CDATA[
// Recent Comments
function arlinacomments(a){var e;e='<ul class="arlinacomments">';for(var t=0;numComments>t;t++){var r,o,n,i;if(t==a.feed.entry.length)break;e+="<li>";for(var d=a.feed.entry[t],s=0;s<d.link.length;s++)"alternate"==d.link[s].rel&&(r=d.link[s].href);for(var l=0;l<d.author.length;l++)o=d.author[l].name.$t,n=d.author[l].gd$image.src;n=-1!=n.indexOf("/s1600/")?n.replace("/s1600/","/s"+avatarSize+"-c/"):-1!=n.indexOf("/s220/")?n.replace("/s220/","/s"+avatarSize+"-c/"):-1!=n.indexOf("/s512-c/")&&0!=n.indexOf("http:")?"http:"+n.replace("/s512-c/","/s"+avatarSize+"-c/"):-1!=n.indexOf("blogblog.com/img/b16-rounded.gif")?"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgWwMtjO071f2fS3i074WClmtvbJZjlVvwZGYKpGsXDyaq22t6iUWb9oOTm_AS8YuY7pMmZqQL44xqunJ1TH5DQsCdkDJ5-_TOACPriR2p9mWzkPxwcOz3c1SqG18DSKtytsoXBXb2EXdVm/"+avatarSize+"/blogger.png":-1!=n.indexOf("blogblog.com/img/openid16-rounded.gif")?"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiWcnl6VYiiC5ELHD5KAL7kvyEMSAC0gVe4q2bhuAFv9VA3WzZAZevw7nZinngUOEHbtRWPvMNl8LQkx9nonr19MLJ7Ho1s3jao2Ukpaxpr65LXKYFrOPqCJNJS5YIwyjb7v9EHvFGbAl2q/"+avatarSize+"/openid.png":-1!=n.indexOf("blogblog.com/img/blank.gif")?-1!=defaultAvatar.indexOf("gravatar.com")?defaultAvatar+"&s="+avatarSize:defaultAvatar:n,1==showAvatar&&(i=1==roundAvatar?"avatarRound":"",e+='<div class="avatarImage '+i+'"><img class="'+i+'" src="'+n+'" alt="'+o+'" width="'+avatarSize+'" height="'+avatarSize+'"/></div>'),e+='<a href="'+r+'">'+o+"</a>";var A=d.content.$t,v=A.replace(/(<([^>]+)>)/gi,"");""!=v&&v.length>characters?(v=v.substring(0,characters),v+="&hellip;",1==showMorelink&&(v+='<a href="'+r+'">'+moreLinktext+"</a>")):v=v,e+="<span>"+v+"</span>",e+="</li>"}e+="</ul>";var c="";0==hideCredits&&(c="display:block;"),e+="",document.write(e)}var numComments=7,showAvatar=!0,avatarSize=42,roundAvatar=!0,characters=40,showMorelink=!1,defaultAvatar="http://2.bp.blogspot.com/-XjxrXKBPQqs/VYcGtLWPGUI/AAAAAAAAKaQ/5jr871JIwds/s1600/default-avatar.jpg",hideCredits=!0,numComments=numComments||5,avatarSize=avatarSize||60,characters=characters||40,defaultAvatar=defaultAvatar||"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhkWTXNkUBHFGCPTkDKrfJwX06_yAQBueshSxpG-ykLEcm_kEHeL_GOgASz_Ya9VelOcPAjYFo-7xUPZn-U50YwVKgcM9yStZVde4D_G5PeNpZhfU2Z7GgOAWL5M0hdo-BT1kBQXQuoOk-N/s1600/default-avatar.jpg",moreLinktext=moreLinktext||" More &raquo;",showAvatar="undefined"==typeof showAvatar?!0:showAvatar,showMorelink="undefined"==typeof showMorelink?!1:showMorelink,roundAvatar="undefined"==typeof roundAvatar?!0:roundAvatar,hideCredits="undefined"==typeof hideCredits?!1:roundAvatar;
//]]>
</script>
<script type="text/javascript" src="/feeds/comments/default?alt=json&amp;callback=arlinacomments&amp;max-results=7"></script>
  •  Dan klik Simpan
Demikianlah tutorial singkat tentang bagaimana cara membuat recent coment di blog, dan jangan lupa untuk meninggalkan komentar anda! 
Artikel Selanjutnya Artikel Sebelumnya
1 Komentar : Pejalan Wisata
  • juni arfian
    juni arfian 14 Oktober 2016 pukul 00.15

    tanks gan infonya

Tambahkan Komentar
Comment url