Cách tạo recent comment cho blogspot


Bước 1 : Truy cập vào quản trị blogger -> Bố cục (layout).
Bước 2 : Nhấn vào thêm tiện ích/ Add a gatget. Một cửa sổ hiện ra bạn kéo xuống tìm và chọn HTML/JavaScript.
Bước 3 : Thêm đoạn code bên dưới vào. Và lưu lại.

<script style=text/javascript src="http://helplogger.googlecode.com/svn/trunk/recent comments widget.js"></script>
<script style=text/javascript>
var a_rc = 5;
var m_rc = false;
var n_rc = true;
var o_rc = 100;
</script> 
<script src=http://khasky.blogspot.com/feeds/comments/default?alt=json-in-script&callback=showrecentcomments></script>
<style type="text/css">
.rcw-comments a { text-transform: capitalize; 
.rcw-comments { 
border-bottom: 1px dotted; 
padding-top: 7px!important; 
padding-bottom: 7px!important; 
</style>
Lưu ý
1. Thay khasky.blogspot.com thành địa chỉ blog của bạn.
2. Các thông số bạn có thể thay đổi.
  • var a_rc = 5;  số bình luận trên Sliebar.
  • var m_rc = false; hiển thị ngày bình luận trong comment nếu bạn chọn yes.
  • var n_rc = true; hiển thị tiêu đề bài viết trong bình luận.
  • var o_rc = 100; số lượng ký tự hiển thị trong comment.
Bước 4 : Nhấn lưu/save và hưởng thành quả thôi :D .

Recent Comment