Jadi, jika sang blogger "tidak sempat" membalas/merespons komentar yang masuk, daripada kesannya "cuek", minimal bisa "ngasih jempol", sebagaimana bisa dan biasa kita lakukan di Facebook.
Cara Memasang atau Menambahkan Tombol Like (Suka) di Bawah Komentar Pengunjung di Blogspot ini, tutorial dan kode-kodenya CB dapatkan di blog Duypham. Silakan dicoba.
TAHAPAN MEMASANG TOMBOL SUKA UNTUK KOMENTAR DI BLOGSPOT
Seperti biasa, login ke blogger. Di dashboard, klik menu Template > Edit HTML, dan lakukan dengan teliti tahapan berikut ini:
1. Tambahkan kode berikut ini sebelum kode/tag ]]></b:skin>.
.like-cm{margin-top:15px;width:10px;height:10px;background:url(https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjMsssUvrFPEzw1DuTlUj5L5v03hcEa4GdJIcTOcHOXWbboF5GxdLxkxPJd1vf5oqJJDnIQS9ng9JSS6UAqyKwL8-XWX6GUlmaKNsIY1jDAKiYzd18UUGHDM1M7_2DUxE7LMzqdOtW54BQ/s10/like.png) no-repeat}
2. Replace (ganti) kode (function() { dengan kode di bawah ini:
items_copy var = [];
(Function () {
(Function () {
var items = <data:post.commentJso/>;
items_copy = items;
items_copy = items;
4. Tambahkan kode berikut ini di bawah kode <data:post.commentHtml/>
5. SAVE! and... Good Luck!
<script type='text/javascript'>
likeurl var = '<data:blog.url/>';
/ / <! [CDATA [
for(i=0;i<items_copy.length;i++){a=document.getElementById('c'+items_copy[i].id);gl="'"+items_copy[i].id+"'";b=a.innerHTML+'<div class = "like-cm" onmousemove = "likecom ('+ gl +')"> class='story_text'> id="like-cm'+items_copy[i].id+'"> </ div> </ div> ', a. likecom innerHTML = b} function (i) {var a = document.getElementById ('like-cm' + i) if (a) {a.innerHTML = '<iframe style = "margin: 0 0-13px-6px" frameborder = "0" allowtransparency = "true" scrolling = "no" height = "20" src = "http://www.blogger.com/blog-post-reactions.g?options = [Like] & textcolor =% 23,666,666 # '+ likeurl + i +' "width =" 100 "> <\ / iframe> '}}
/ /]]>
</ Script>
likeurl var = '<data:blog.url/>';
/ / <! [CDATA [
for(i=0;i<items_copy.length;i++){a=document.getElementById('c'+items_copy[i].id);gl="'"+items_copy[i].id+"'";b=a.innerHTML+'<div class = "like-cm" onmousemove = "likecom ('+ gl +')"> class='story_text'> id="like-cm'+items_copy[i].id+'"> </ div> </ div> ', a. likecom innerHTML = b} function (i) {var a = document.getElementById ('like-cm' + i) if (a) {a.innerHTML = '<iframe style = "margin: 0 0-13px-6px" frameborder = "0" allowtransparency = "true" scrolling = "no" height = "20" src = "http://www.blogger.com/blog-post-reactions.g?options = [Like] & textcolor =% 23,666,666 # '+ likeurl + i +' "width =" 100 "> <\ / iframe> '}}
/ /]]>
</ Script>
5. SAVE! and... Good Luck!
0 komentar:
Posting Komentar