Select Blogs: Indonesian Flag Alcosmic alrevis Alrevis

Monday, October 26, 2009

Make Recent Posts and Recent Comments Widget

Recent Posts and Recent Comments Widget seem to be one of the most common widget used by the bloggers at the moment :) Recent posts used to display the latest post adjustable own number, and recents comments widget is used to display the latest comments from visitors.

Here are the steps to make them:
1. SIGN IN to Blogger.com.
2. After you enter the Dashboard page click on the Layout link.
3. Select Page Elements, Then click Add a gadget.
4. Next you select HTML / Java Script.
5. In the dialog box HTML / Java Script add code below to make a recent posts widget:

<script style="text/javascript" src="http://www.mydatanest.com/files/remba03/18732_qte7y/recentpostsalrevis.txt"></script><script style="text/javascript">var numposts = 5;var showpostdate = true;var showpostsummary = true;var numchars = 100;var standardstyling = true;</script><script src="http://yourblogURL.blogspot.com/feeds/posts/default?orderby=published&alt=json-in-script&callback=showrecentposts"></script>

In Title option you can give the title Recent Posts (optional).
6. Click save. Set the position of the gadget, then save. Try to access your blog to see the results.
7. To create a recent comments widget it was same as create recent posts widget, after the dialog box Add a Gadget appears select category HTML / Java Script!
8. After the dialog box appear HTML / Java Script copy and paste script below to create a recent comments widget!

<script style="text/javascript" src="http://www.mydatanest.com/files/remba03/18734_7xaha/recentcommentsalrevis.txt"></script><script style="text/javascript">var numcomments = 5;var showcommentdate = true;var showposttitle = true;var numchars = 100;var standardstyling = true;</script><script src="http://yourblogURL.blogspot.com/feeds/comments/default?alt=json-in-script&callback=showrecentcomments"></script>

9. Click Save!
10. Access your blog to see it :)

Note: figure 5 shows in red are the number of posts / comments are displayed. You can change the way you want!

No comments:

Post a Comment

Let me know what you think..?