JPF Technorati Rank WordPress Plugin

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:
{note that I’m not running the plugin anymore, so it’s not displaying here}
If you’d like it formatted differently, here are the available parameters:

  • $before = what you want to appear before the rank number. The default is ‘<li>Technorati: ‘.
  • $blog = the URL to get the rank for. By default, the ‘home’ setting that you set in your WordPress general settings page is used. You can enter a different one if you prefer (eg. http://sojoe.info/downloads).
  • $after = what you want to appear after the rank number. The default is ‘</li>’.

Examples
If you just want to display the rank number inline with other text, like this: {not displaying anymore}, use the following:

<?php jpf_technorati_rank (”,”,”); ?>

Download JPF Technorati Rank WordPress Plugin

Posted: 06 November 12
Under: Wordpress
Viewed: 4,168 views

14 Responses to “JPF Technorati Rank WordPress Plugin”

  1. Joe says:

    Version 1.0.1 is now available. It does two things:
    1. Typing your own URL in didn’t work, should now be fixed
    2. If you want more than one URL rank on your site, you’ll have to disable the cache. To do this, in the jpf_technorati_rank.php file delete line 21 (has a comment following it saying you should delete that line), and uncomment the following line by deleting the two slashes. This will disable the cache so you should be able to call multiple times with different URIs. Let me know if you have any issues.

  2. Thank you for this plugin. Like you I have been looking for a simple way to keep track of my rank. Thanks!

  3. Lara says:

    Hi! This is EXACTLY the kind of plugin I was looking for. However, I’m running into some problems with 2.1! It displays in the sidebar, yet I receive this tiny PHP error above it:
    Technorati Rank:
    Warning: Missing argument 1 for getfromurl() in /home/blogwhat/public_html/test3/wp-content/plugins/class_http.php on line 137

    Thanks!

  4. Joe says:

    Lara, looks like it’s not getting the URL properly. Are you putting a special URL, or just leaving it empty? If it’s empty, try putting the following between the parenthesis (don’t copy and paste, I haven’t figured out how to disable the smart quotes on this site yet):

    
    '<li>', 'http://www.blogwhatdesign.com/', '</li>'
    

    If you were putting a URL in, delete everything between the parenthesis and see how that goes.

  5. [...] Step 1: install JPF Technorati Rank WordPress Plugin [...]

  6. Genkisan says:

    Thanks for the the plugin, i like it for its simplicity :)

    I styled it to look like those 80×15 badges ;)
    See Add a Technorati Rank Widget in 3 Simple Steps

  7. [...] off your Technorati rank to your visitors? You can create one for your WordPress blog by using the JPF Technorati Rank plugin and the technorati widget image by Eric. Read add a Technorati Rank Widget in 3 Simple Steps for [...]

  8. steve says:

    Hi Joe,

    I’m having the same problem as Lara:

    Warning: Missing argument 1 for getfromurl() in /home/test/public_html/wp-content/plugins/jpf_rank/class_http.php on line 137

    Any ideas?

    Thanks,

    –Steve

  9. Joe says:

    I’m guessing something changed in WP 2.1 that’s causing this to mess up. Try including the address for your blog and see if it works. Here’s what the code looks like for my site:
    <?php jpf_technorati_rank("", "sojoe.info", ""); ?>

  10. jessie says:

    i noticed a certain problem in technorati rankings these past few days. i have already uploaded 2 more posts to my blog and yet it doesn’t show in my technorati profile… ur plugin looks great. this could solve my problem regarding the determination of rank in technorati without going back and forth their website.

  11. [...] önce buraya giriyoruz ve plugin’i indiriyoruz. wp-content/plugin alt?na [...]

  12. I want to show my affection for your kindness giving support to men and women who require guidance on this one niche. Your very own dedication to passing the solution around had become pretty helpful and has continually empowered others much like me to realize their desired goals. Your warm and friendly help and advice denotes this much to me and substantially more to my office colleagues. Thank you; from everyone of us.

Leave a Reply