Tạo Recent Comments bình luận mới cho blog
1. Đăng Nhập Vào Tài Khoản Blogger
2. Vào Edit HTML
3. Tìm kiếm thẻ </style> và thêm đoạn css sau vào trước nó, Hoặc sào sau thẻ <style>.
/* Bình Luận Mới Nhất By vungve.com */
ul.idbcomments{list-style:none;margin:0;padding:0}.idbcomments li{display:block;clear:both;overflow:hidden;list-style:none;border-bottom:0!important;word-break:break-all;padding:8px 0!important}.idbcomments li .avatarImage{float:left;margin-right:10px;position:relative;overflow:hidden}.idbcomments li img{border-radius:100%;position:relative;overflow:hidden;display:block;width:42px;height:42px}.idbcomments li a{font-weight:700}.idbcomments li span{margin-top:2px;color:#666;display:block;font-size:12px;line-height:1.4}
4. Các Bạn Vào Bố Cục => Thêm Tiện ích HTML/JAVASRIPT
<script type="text/javascript">
//<![CDATA[
// Recent Comments by vungve.com
function idbcomments(a){var e;e='<ul class="idbcomments">';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/AVvXsEi-Vks7lEx6smXEnrFyOUDL7o1jqowbaou2IdtmqzCoMBah3jsyBXa0fTS9jVNJR8PcWnkjzaS6cXVjvaAPogF1X7gClw3fGh7p3mqFzsv-RMne2f1AxCuNl7arHak0FR3EpUup3ZzdetRY/"+avatarSize+"/blogger.png":-1!=n.indexOf("blogblog.com/img/openid16-rounded.gif")?"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUsgfd6kMBBNjQHyiKVNqvau7XSDYWZt4Ez98IMAl3PIOVD6TwMcXtSqrrUqjUNGt6zY12ODXtqtY83L-HUKkaOQNGUGP8VGfIIh1jFxEVzeYUGd0VS37oGwusIlYtSfBzK2EnjQlAHJdu/"+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+="…",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="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT9fsBHPPZoPf_b-EkUrncLLN368VA1AkjqBGIFQrhvYZAgMF9i1HZr_ZkslXhYunkHnE06czCiusXCZ_oAGOcZC9Da6Yi24Pc8Bpzg8obTj1OqF9hY3GYJaUM03JqMjVS4dhFLlDE0ucE/s1600/noimage.png",hideCredits=!0,numComments=numComments||5,avatarSize=avatarSize||60,characters=characters||40,defaultAvatar=defaultAvatar||"https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjT9fsBHPPZoPf_b-EkUrncLLN368VA1AkjqBGIFQrhvYZAgMF9i1HZr_ZkslXhYunkHnE06czCiusXCZ_oAGOcZC9Da6Yi24Pc8Bpzg8obTj1OqF9hY3GYJaUM03JqMjVS4dhFLlDE0ucE/s1600/noimage.png",moreLinktext=moreLinktext||" More »",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&callback=idbcomments&max-results=7"></script>