TẠO HIỂN THỊ TỔNG SỐ BÀI VIẾT VÀ COMMENT TRONG BLOG

Cách tạo tiện ích:
- Đăng nhập vào blog.
- Vào "Bố cục". Trong bảng "Bố cục" bấm "Thêm tiện ích" [1] (nên chọn vị trí "Thêm tiện ích" ở cột sidebar) - xem ảnh dưới.

<script style="text/javascript"> function showpostcount(json) { document.write('<left>TỔNG SỐ BÀI VIẾT: <b>' + parseInt(json.feed.openSearch$totalResults.$t,10) + '</b></center>');}</script> <script src=" LINK /feeds/posts/default?alt=json-in-script&callback=showpostcount"></script> <p> <script style="text/javascript"></script> <script style="text/javascript"> function numberOfComments(json) { document.write('<left>TỔNG SỐ COMMENT: <b>' + json.feed.openSearch$totalResults.$t + '</b></center>');}</script> <script src="LINK /feeds/comments/default?alt=json-in-script&callback=numberOfComments"></script>
- Thay LINK thành link blog của các bạn.
- Bấm "Lưu" [3] (ảnh trên) và dùng chuột kéo thả - di chuyển tiện ích vừa tạo đến vị trí thích hợp nếu cần thiết.
- Bước cuối cùng bấm "Lưu sắp xếp" [4] (ảnh dưới) để hoàn tất và trở lại trang chủ xem kết quả.

Mở rộng tiện ích:
- Các bạn có thể sử dụng tiện ích này để theo dõi số bài viết và comment của một blog bất kỳ bằng cách: thay link blog cần theo dõi vào vị trí tương ứng.Chúc các bạn thành công!
TẠO HIỂN THỊ TỔNG SỐ BÀI VIẾT VÀ COMMENT TRONG BLOG
Reviewed by nguyen
on
8:17 PM
Rating:
Reviewed by nguyen
on
8:17 PM
Rating:



No comments:
Note: Only a member of this blog may post a comment.