"Hiển thị bài đăng và comment mới nhất"

Các bước để thực hiện
1. Đăng nhập vào blog
2. Tạo một HTML/Javascript
3. Bạn hãy lựa chọn tiện ích bên dưới và dán vào HTML/Javascript trên
- Code các bài viết mới nhất
<script style='text/javascript' src='http://blogergadgets.googlecode.com/files/recentpostswidgetv1.js'>
</script><script style='text/javascript'>
var numposts = 5; // số bài bạn muốn hiển thị
var showpostdate = true; // nếu không muốn hiển thị ngày đăng bạn thay TRUE thành FALSE
var showpostsummary = true;
var numchars = 100; // số từ tóm tắt nội dung bài viết
</script>
<script src='http://www.traidatmui.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts'></script>
</script><script style='text/javascript'>
var numposts = 5; // số bài bạn muốn hiển thị
var showpostdate = true; // nếu không muốn hiển thị ngày đăng bạn thay TRUE thành FALSE
var showpostsummary = true;
var numchars = 100; // số từ tóm tắt nội dung bài viết
</script>
<script src='http://www.traidatmui.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts'></script>
Hình ảnh minh họa

<script style='text/javascript' src='http://blogergadgets.googlecode.com/files/recentcommentswidgetv1.js'></script>
<script style='text/javascript'>
var a_rc=5; // số bài nhận xét bạn muốn hiển thị
var m_rc=true; // nếu không muốn hiển thị ngày đăng bạn thay TRUE thành FALSE
var n_rc=false;
var o_rc=100; // số từ tóm tắt nội dung comment
</script>
<script src='http://www.traidatmui.com/feeds/comments/default?alt=json-in-script&callback=showrecentcomments'></script>
<script style='text/javascript'>
var a_rc=5; // số bài nhận xét bạn muốn hiển thị
var m_rc=true; // nếu không muốn hiển thị ngày đăng bạn thay TRUE thành FALSE
var n_rc=false;
var o_rc=100; // số từ tóm tắt nội dung comment
</script>
<script src='http://www.traidatmui.com/feeds/comments/default?alt=json-in-script&callback=showrecentcomments'></script>
Hình ảnh minh họa

4. Save lại là xong
Tuy nhiên bạn cũng có thể thêm tiện ích trực tiếp vào blog của bạn bằng cách vào đây và làm theo hướng dẫn.
Chúc bạn thành công
0 nhận xét:
Đăng nhận xét