Configurable related posts gadget blogger blog

Last day we have know a way to show "Related posts" in a smartest way. That smartest related posts gadget have some less feature. Actually configuration of that hack is quite difficult for newbie. Such if you want to show more then 5 posts then you need to edit the "related-posts-widget-1.0.js" file. That is some critical for me like blogger. Today I am going to publish a new and updated configurable "Related posts" gadget that is easy to configure as my desire. This code can be use as a "Recent Posts" gadget. Even you can show other blogs latest posts with this gadget. Here is the code...
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script src="http://blogger-related-posts.googlecode.com/files/related-posts-widget-1.0.js" type="text/javascript"></script>
<script type="text/javascript">
relatedPostsWidget({
'containerSelector':'div.post-body'
,'relatedTitle':'Related Posts:'
,'recentTitle':'Recent Posts:'
,'loadingText':'loading...'
,'maxPosts':'5'
,'blogURL':'http://another_blog.com'
});</script>
Here is the configuring methods....
  • Change "Related Posts" words as your desire.
  • Delete "Recent Posts" (red line full) if you don't want to use it as a recent posts gadget.
  • Change the number 5 to more or less posts link.
  • Write other blogs address in the "another-blog.com" if you want to show other blogs posts.
  • Or delet the blogURL line (red line full) if you don't want to use this feature.
  • That all. Save the gadget and you've done.

No comments:

Post a Comment

Please help me to improve my English. Please Email me or comment below. Thanks...