Thursday, November 27, 2008

Top Posts Widget by PostRank

I was having trouble finding the code for the top posts widget by PostRank so I've included it, along with instructions, below:

  1. Go to PostRank and enter your RSS feed address into the Analyze box at the top of the site. You'll likely get an error that this URL has never been entered before, just wait a few minutes for it to build an index and try again.
  2. On the Feed Detail page, click the RSS looking button on the right.


  3. Note the unique hash that pops up, circled above.
  4. Go to the following URL, replacing {YOUR HASH} with your actual hash:
    http://api.postrank.com/v2/feed/{YOUR HASH}/info?format=xml&appkey=postrank.com/example
  5. On the page that loads, note your unique feed id, which comes up right after your hash and before your URL.



  6. Use the following code, replacing {FEED ID} with your actual feed id, 'year' with the time period you would like (year, month, week, day), and 10 with the number of records to return:
<div id="aidewidget"></div> <script type="text/javascript" src="http://api.aiderss.com/static/top_posts.js"> </script> <script type="text/javascript"> new AideWidget('aidewidget', {FEED ID}, 'year', 10); </script> <br></div>

2 comments:

  1. Hi Sean -- thanks for posting the tutorial!

    We did take down the widget code a little while ago when we launched the new website. Mainly the reason for that was because we upgraded how analysis was done on the site, but including the widget in the site relaunch project would bloated it too much, so we decided to split the projects. Plus the widget was just due for a facelift.

    In good news, the devs are working on that now, and it's scheduled to be released within the next week or two. They've added some really cool stuff to it, so I'm looking forward to seeing what folks think. :)
    ReplyDelete
  2. PostRank has relaunched their popular posts / top posts widget . It is a must use feature.

    It works for all sorts of blogging system

    If you have used my popular posts widget with postrank feed before, you might want to upgrade to it !

    http://itblood.blogspot.com/2008/12/postrank-top-posts-widget-relaunch.html

    http://itblood.blogspot.com
    ReplyDelete