• 3,960 views Nov 12, 2006

    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 (”,”,”); ?>

    Name: JPF Technorati Rank WordPress Plugin [Download]
    Size: 4,99 kBytes
    FileType: .zip-File
    Edited on 03. Mar 2007 - 16:12 h
    Downloads: 606
    Free for visitors

    Tags:

  • 11 Responses

    WP_Modern_Notepad
    • 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.

    • William P. Wend Says:

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

    • 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!

    • 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.

    • Add a Technorati Rank Widget in 3 Simple Steps » Ericulous Says:

      [...] Step 1: install JPF Technorati Rank Wordpress Plugin [...]

    • 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

    • Technorati Rank Widget for WordPress Says:

      [...] 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 [...]

    • 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

    • WP Plugins DB » Blog Archive » JPF Technorati Rank Says:

      [...] Visit [...]

    • 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", ""); ?>

    • 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.

    Leave a Comment

    Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.