Saturday, September 5, 2009

Top Authors Widget for Blogger Blogs

Blogger allows you to add and work together with multiple blog writers in your blog.
Top Author Widget for blogger
This is one of most benefited feature in blogger. Adding co-authors and get there contribution will make it easy to build lager and successful blog site.

Top authors widget is purposely made for encourage all co authors by displaying there post count along with the name.

This statics based on the least 5000 posts in your blog.

1. Find "YOURBLOG.blogspot.com" in the below code and set it with your site name and make sure not to include "http" and "www"

2. num=10 , this part is for number of co-authors ,set the number of co-authors with the exact number of your site has.


<script type="text/javascript">
function pipeCallback(obj) {
document.write('<ol>');
var i;
for (i = 0; i < obj.count ; i++)
{
var href = "'" + obj.value.items[i].link + "'";
if(obj.value.items[i].link == "")
var item ="<li>" + obj.value.items[i].title + "</li>";
else
var item = "<li>" + "<a href=" + href + ">" + obj.value.items[i].title + "</a> </li>";
document.write(item);
}
document.write('</ol>');
}
</script>
<script src="http://pipes.yahoo.com/pipes/pipe.run?_render=json&_callback=pipeCallback&_id=0914c284eb9e2a1e7e1e903896990b6f&url=http%3A%2F%2FYOURBLOG.blogspot.com&num=10" type="text/javascript"></script>
<span style="gt;Widget by <a href="http://www.tutoorials.com">Tutoorials </a></span>

0 comments:

Post a Comment