Mar
10th

Technorati Rank WordPress Plugin Version 2 Released!

Hot on the heels of the first Technorati Rank Plugin, I’ve redesigned the output content to make it CSS driven (below is a screenshot, you can interact with the one in my site’s sidebar):

Technorati Rank WordPress Plugin Version 2

This one was quite a bit more challenging to produce but the output is much nicer. First, I utilized what I’ve been learning on Bittbox to make each of the output buttons on the image in Illustrator.

The next step was utilizing styles to actually build someone of an image map except that there’s actually no map! It’s pretty cool, actually. You can set the overall div background and then create each of the ‘hotspots’ utilizing absolute positioning and CSS. View the output CSS.

I also added a link to Technorati’s new WTF page and the site’s RSS address. I hope you like it! I think it’s a vast improvement from the first version! There’s an i link in the bottom right that promotes the plugin as well.

Current Technorati Rank WordPress Plugin Version 2.0.4

RSS feed | Trackback URI

23 Comments »

Comment by no imageengtech (SezWho)
2007-03-10 14:40:01

Isn’t bittbox awesome?

Man, that site is an inspiration.

Rate this:
2.9
Comment by no imageDouglas Karr (SezWho)
2007-03-10 14:42:52

It sure is! I had been looking for Illustrator assistance for quite some time. I don’t use it enough to do be fantastic at it, so a site like Bittbox saves me a LOT of time!
Rate this:
2.9
 
 
Comment by no imageSteven Hodson (SezWho)
2007-03-10 15:41:54

I tried to install the newest and greatest following your directions to the “letter” :)

but I got the following error

Fatal error: Cannot instantiate non-existent class: simplexmlelement in /home/winex4/public_html/wp-content/plugins/technorati-rank/technorati-rank.php on line 64

any suggestions?

Rate this:
2.9
Comment by no imageDouglas Karr (SezWho)
2007-03-10 17:18:41

Hi Steven,

That’s an error when SimpleXML is initiated, which is part of PHP5. Does your server have PHP5?

Regards,
Doug

Rate this:
2.9
Comment by no imageSteven Hodson (SezWho)
2007-03-10 17:40:24

that will teach me to check first .. apparently Lunarpages is running 4.4.4 of PHP

Guess I’ll have to check out the other version or hang tough and see if they upgrade to 5.0

Rate this:
2.9
Comment by no imageDouglas Karr (SezWho)
2007-03-10 17:43:43

I hope they do! But I also hope your host upgrades. PHP5 really brings some much better performance improvements, as well as some better tools for consuming APIs. I utilize Jumpline, you’ll see a link in my sponsor list on my home page. I also believe Dotster has some good VDS hosting with the latest and greatest.
Rate this:
2.9
(Comments wont nest below this level)
 
 
Comment by no imageBittBox (SezWho)
2007-03-11 01:16:59

Doug,
I’m having the same problem
I called my host and they said my server has PHP 4 and PHP 5, but if i want to run a file using PHP 5, the script has to have .php5 file extension.

So… I changed the file extensions, and it disappears from the plugins in wordpress.

Any Ideas?

Rate this:
2.9
Comment by no imageDouglas Karr (SezWho)
2007-03-11 10:10:43

Wow - I am not sure at all, BittBox. Let me take a look at what Samanthon had done to convert the first version to PHP4.

I’m really surprised at how many hosts there are out there that don’t have the latest and greatest!

Rate this:
2.9
(Comments wont nest below this level)
Comment by no imageSaman Sadeghi (SezWho)
2007-03-11 19:08:55

I was going to ask what version this ran too!
Rate this:
2.9
 
 
 
 
 
Comment by no imageBittBox (SezWho)
2007-03-10 16:15:37

Awesome Plugin, Excellent styling! Thanks Doug, and great work. I never even knew about the first one, but this is going in my sidebar pronto.

It’s REALLY Rewarding to see that my Illustrator tips helped you make your buttons!!!!!

thanks again,

~BittBox

Rate this:
2.9
Comment by no imageDouglas Karr (SezWho)
2007-03-10 17:38:39

Thank-you, BittBox! I think I’ve got a good eye for style, but I never seem to get it right most of the time. Being able to actually download your samples and dissect them is what makes the difference. I’m able to actually execute on those ideas now. :)

I’m toying with some thoughts on my blog’s header and background next.

Rate this:
2.9
 
 
Comment by no imageXial (SezWho)
2007-03-13 05:43:23

Well, Doug, it seems that the version 2 plugin hates me. I get error messages:

Warning: fopen(/technorati-rank.html) [function.fopen]: failed to open stream: Permission denied in /…./wp-content/plugins/technorati-rank/technorati-rank.php on line 121
Warning: fwrite(): supplied argument is not a valid stream resource in /…./wp-content/plugins/technorati-rank/technorati-rank.php on line 122
Warning: fclose(): supplied argument is not a valid stream resource in /…./wp-content/plugins/technorati-rank/technorati-rank.php on line 123

Despite the error messages, it also shows my Technorati rank (~26.5k :D). I’m not knowledgeable enough about PHP to know why it’s crying over that one file.
Interestingly enough, on our server, we use SuPHP, so everything runs as us (so chmod requirements no longer require world-writable files, and php scripts will not execute if chmod’ed too high, for example).

All php for this subdomain runs as php5.

Any ideas?

Rate this:
2.9
Comment by no imageDouglas Karr (SezWho)
2007-03-13 07:21:03

Do you have a wp-content/cache directory Xial? I thought it would be a good idea to utilize the same cache directory as WP-Cache. In hindsight, perhaps it was not a good idea! That line is definitely to write to the cache file.
Rate this:
2.9
Comment by no imageXial (SezWho)
2007-03-14 08:18:38

I certainly do, Doug. I’ve been running WP-Cache for quite a while. :)

I was a little curious, too, as to why it’d complain about this, since I do have the necessary directory, but I’m guessing it’s something else altogether.

Rate this:
2.9
 
Comment by no imageXial (SezWho)
2007-03-14 08:21:23

Interesting bit of info to add:

$ pwd
/..../wp-content/cache
$ ls -l tech*
-rw-r--r-- 1 meeeeeeee meeeeeeee 1.1K Mar 12 11:47 technorati-rank.html

It still returns the errors.

Rate this:
2.9
 
 
Comment by no imagemodifoo (SezWho)
2007-04-09 03:59:08

Just want to chime in with having the same error. Site runs php5, and the button displays.
I tried commenting out lines 121-123, and the plug works fine. Can I put it live, or will the lack of those lines cause trouble in the longer run?
Rate this:
2.9
 
 
Comment by no imageRichard Curry (SezWho)
2007-03-22 09:19:46

I’m getting the same errors as above, I also thought it was my cache dir but I have one and also made sure write rights were correct.
In the side bar it will show the plugin (with rank) but with those errors above it.
Rate this:
2.9
Comment by no imageDouglas Karr (SezWho)
2007-03-22 09:41:23

Hi Richard,

Can you check to see that you have PHP version 5+ and CURL is enabled? You can do this by building a page on your site with <?php phpinfo(); ?> in a page. Then open that page. The top of the page will have your version of PHP and you can do a search for CURL to ensure it’s enabled.

Thanks!
Doug

Rate this:
2.9
Comment by no imageXial (SezWho)
2007-03-23 05:30:36

Well, Doug, I double-checked my PHP version.
I am running PHP5, and cURL is compiled in (one of my usual three requests to my host, for things to be compiled into PHP).

Everything else works fine, but I’m not entirely sure why this plugin is choking, unless it’s the version of cURL compiled in to PHP (We’re at 7.15.4, and latest appears to be 7.16.1). However, I don’t want to pester my host to compile php5 again just for that, if I can help it. <:3

Rate this:
2.9
Comment by no imageDouglas Karr (SezWho)
2007-03-23 06:46:46

I’m going to take a deeper look this weekend. It’s running without any problems on a few sites - so it’s one of 3 things: 1. Cache, 2. cURL or 3. PHP Version.

I can utilize older PHP 4 functionality to pull and parse the XML but it may slow it down quite a bit - I’m going to test this weekend. I appreciate all the input. “Houston, we have a problem!”.

Rate this:
2.9
(Comments wont nest below this level)
 
 
 
 
Comment by no imageDouglas Karr (SezWho)
2007-04-01 13:25:16

Just a note: Technorati has launched an Authority Plugin.

Also - for all of those who are having problems with this plugin, I’d really encourage you to move to a new host :). I’ve got a 12 month free special with my host at the bottom of my About page.

Rate this:
2.9
 
Comment by no imageDean (SezWho)
2007-04-05 15:06:44

Hi Doug,

Great work on the plugin. It worked ‘out of the box’ on Jumpline and is now installed on my blog.

Rate this:
2.9
 
Comment by no imageDouglas Karr (SezWho)
2007-04-22 12:16:23

I’ve received quite a few requests that there have been errors writing or reading from the cache file. I actually identified an issue where I was pushing and pulling the cache file to the root directory. I’ve modified version 2.0.4 so that it writes to a cache subdirectory within the plugin’s directory.

Please let me know how it runs! (Still needs SimpleXML and cURL!)

Rate this:
2.9
 
Name (required)
E-mail (required - never shown publicly)
URI
Your Comment (smaller size | larger size)
You may use <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> in your comment.

My Comment Policy: I moderate comments. Please be patient:

  • Spam will happily be destroyed.
  • Use your real name, not some keywords. Otherwise it will be destroyed.
  • Mean comments aren't necessary. If I don't post them I will reply personally to let you know why.
  • Lewd comments will be edited, I don't want my readers leaving because of offensive content.
Great debate, criticism and colorful commentary is always appreciated and approved!