JPF Technorati Rank Wordpress Plugin
November 12th, 2006 · 11 Comments · 3,879 views
I wanted to keep track of the Technorati ranking for my blog without having to constantly visit the Technorati site. I wanted something simple that I could easily integrate into my layout (I just display the text in a list of administrative options other users don't see). So, I hacked something together that does the job for me, maybe someone else is looking for the same type of thing.
I used class_http.php to grab the information from Technorati, and it caches the info for 1 day (the plugin only polls Technorati once per day, if it polled on every page load, a busy site would probably end up getting banned). The rank that is displayed is linked back to the Technorati page for the URL that is being ranked.
Installation
To install the plugin, create a directory called 'jpf_rank' in your plugins folder. Extract jpf_technorati_rank.zip and copy all of the files to the jpf_rank directory. If you've already installed any of my other ranking plugins, then you only need to copy the jpf_technorati_rank.php file to the jpf_rank directory. Go to your Manage Plugins page and activate the plugin and you're ready to go.
Configuration
To display your Technorati rank, insert the following code wherever you want to see the rank:
<?php jpf_technorati_rank(); ?>
The default settings assume you're putting this in your sidebar, so it wraps the result in <li> and </li> which will display like this: