06 March 2009

Make Top Post (popular article) in blogspot

Top Post statistics is that the article shows how popular that we publish, most of the top post in the value of the number of clicks or the value of the number of comments. By default WordPress widged have to show the Top Post, what with Blogspot?
certainly can, even though the standard Blogspot does not have it we can also show it. Top Post diblogspot which will be made later calculated from the number of the many comments, made this widget a certain kind of face beautiful woman blogger Amanda Fazani this woman can be as famous blogger tutorial author, Top of this widget is created with the help of Yahoo Pipes can be found in the Blogger Popular Posts / Most Commented Pipe page, more explanation visit Amanda blog here
Below is the code that can be directly used, how to install the code is very easy to live only on the input element the new page:


Below is the code that can be directly used, how to install the code is very easy to live only on the input element the new page:
<script type="text/javascript">
pipeCallback function (obj) (
document.write ( '<ol style="text-transform: capitalize;">');
var i;
for (i = 0; i <obj.count; + + i)
(
var href = " '" + obj.value.items [i]. link + "'"; 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=1cf38ae68efbe859c4ba1ee239cec099&url=http% 3A% 2F% 2Fnameblog.blogspot.com & num = 10" type = "text / javascript" > </ script>
<span style="gt; <a href="http://www.bloggerbuster.com"> Widget by Blogger Buster </ a> </ span>

What should I edit?

nameblog.blogspot.com: Replace with the name of your own blog.
num = 10: The maximum number of Top Post who want to show
For a custom domain live use www.yourdomain.com
Is the ordinal number:
In the beginning of the sequence will show the number of top posts, if the colleague does not want it to stay clear aja two code below

document.write ( '<ol style="text-transform: capitalize;">'); and document.write ( "</ ol>"); in the code above


No comments:

Post a Comment