Cara Membuat Widget Komentar Blogspot Dengan Avatar

Cara Membuat Widget Komentar Blogspot Dengan Avatar  |  Memasang Widget Recent Comment Dengan Avatar



Recent comments with avatar (image profile) seperti yang  anda lihat pada image diatas adalah widget yang sangat menarik. Widget tersebut kini menampilkan gambar avatar para komentator tentunya yang menggunakan akun google beserta dengan komen ringkas pada post yang berkaitan dalam Blogger.

Untuk memasang widget recent comment dengan avatar ini pada blog anda, sila ikut beberapa langkah di bawah.

Langkah 1

Log in blog > Dashboard > Layout > Add A Gadget. Seterusnya klik pada HTML/Javascript.

Langkah 2

Copy kode di bawah dan paste pada ruang Content HTML/Javascript (lihat langkah 1).


<style type="text/css">
#recentcomment {
width:98%;
margin-left:5px;
}
img.recentcomment-avatar {
background:#fff;
float:right;
padding:2px;
margin:2px -2px 0px 0px;
height:30px;
width:30px;
border:solid #ddd 1px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
-webkit-box-shadow: 0px 1px 0px rgba(0,0,0,0.3);
-moz-box-shadow: 1px 0px 0px rgba(0,0,0,0.3);
box-shadow: 0px 1px 0px rgba(0,0,0,0.3);
}
td div.recentcomment-content a,td div.recentcomment-content a:hover{
font-family: 'trebuchet ms';
font-size:1.00em!important;
color:#2C2929;
text-decoration:none;
}
div.recentcomment-content{
font-size:1.00em!important;
text-decoration:none;
line-height:1.45em;
letter-spacing:0.03em;
background: #fff;
padding:4px;
border:1px solid #ddd;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
-webkit-box-shadow: 0px 1px 0px rgba(0,0,0,0.3);
-moz-box-shadow: 0px 1px 0px rgba(0,0,0,0.3);
box-shadow: 0px 1px 0px rgba(0,0,0,0.3);
}
</style>

<script type="text/javascript">
ava_mode = "all";
var cm_num = 5;
var cm_desc = 13;
var homepage = "http://uvorius.blogspot.com/";

var cm_ava = new Array();
cm_ava['openid'] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgPWvMgJIzhWWVt-hFnyhhQ9PAM2yWnEPjbFou57eNoHU0oTnDFQsc9YrpesFa1kGeem3x84PVmX-a4uM47GtE50t6xkNYU3zlL1OeaOTuClO26RnQEoBUjqRMNxgeVhSAssHquXgsla4Y/s1600/Alien-smoking-icon.png";
cm_ava['livej'] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4HCwzFGTSFiIHamnyR6wAbP6HSh65whkrKHRlBj2GmKviCpE7X9UwhlU8BBq91SBk1SipC1nM5pvew7Si8DuizuVj9XCrrvQN5Ih8QyAREzFildxGlq-OXLthROvJc3IGNbdnMzfDna8/s1600/Ghost-Recon-Future-Soldier-2-icon.png";
cm_ava['wp'] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj4HCwzFGTSFiIHamnyR6wAbP6HSh65whkrKHRlBj2GmKviCpE7X9UwhlU8BBq91SBk1SipC1nM5pvew7Si8DuizuVj9XCrrvQN5Ih8QyAREzFildxGlq-OXLthROvJc3IGNbdnMzfDna8/s1600/Ghost-Recon-Future-Soldier-2-icon.png";
cm_ava['typepad'] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjpXxQuyoWjMbKGdk_cyTOe_qp_1fss6cxX1sAW87KXjUlgBzEeiMq8IvRK4aAL_1euVT3zDwpduNtOStz7q_x9S0PJeoIbcHWFhj1ZiAAjEWcVivTfDIU3aWUqAjiaQTyGtwwt7bmOo6k/s1600/monster-3-icon.png";
cm_ava['aim'] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhM4m9KDMdcGYc2gt8v_YIuywFBIiezHxEZo7NZkbrdtRwshjC5QGIZt2F6hyphenhyphenn3a2wyj2d0g8_NFQDcKnYN_vfbSAqLWgPWdciuIsj03IR1Gt7ZXEV40awQsF4EOOfzDlwaivVPpTAjpbE/s1600/monster-1-icon.png";
cm_ava['url'] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgI_A9TJb_3QQRIUvXe45FOw7VDEVVJuK-1q0otoPTCbG3JgCD9MDEIIjwRRMYELdBCdHvdNOWcGgYfXCJ2tsVCXsjgu9c3CEu8kxX2TG9cNOeVp0GiHPhXAA32DoLlK4D7hNt7p0-3LSw/s1600/monster-5-icon.png";
cm_ava['anon'] = "https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQISWpddX7VIa2aR6_Znj5VWZI4-ObVXKB9V4W0pGdUgSI_ofScptLh2NCt6q5qC8vlTkDTkBsp0x_NmLPJRg2QHn7XiIAjvo4oaYNl79rhknNSvJlaL7_V9uRnXhmk-oMDa2ch_JINDY/s1600/monster-4-icon.png";

</script>
<script src="http://filejs-irwan.googlecode.com/files/recent-comment-avatar.js" type="text/javascript"></script>

Selanjutnya klik Save.

Jangan lupa tulisan merah ganti dengan nama domain Anda




0 Komentar:

Post a Comment