12 May 2003
Dave Sifry has opened up a Technorati interface that allows outside developers to use the Technorati data. I’ve whipped up a quick MT plugin that can get the Technorati link Cosmos for your entire blog or a specific entry and insert it into your blog pages.
Tim Appnel has taken over the maintenance and support of this plugin as of Oct 2004.
Unzip the Technorati zip file to a directory on your computer.
Open the file called technorati.config. You can set common configuration options in this file.
Open your FTP program and navigate to the directory where you have Movable Type (MT) installed.
Upload the MTPlugins directory to MT’s extlib directory in ASCII mode.
Upload technorati.pl in ASCII mode to MT’s plugins directory. If you don’t have a directory called plugins, create one inside your MT directory.
Upload technorati.config in ASCII mode to your MT directory. This file should be in the same place your mt.cfg is.
Create your cache directory. Unless you changed the location in the config file, you should create a directory called cache inside your MT directory. Set the permissions on this directory to 666. (Tip: On some hosts, you may need to set the directory permissions to 777. Try using 666 first and if you get errors about writing to a file, then use 777.)
The cache directory is where the cache files are stored. You may find that this directory ends up with a large number of files in it. If this concerns you, all of the files in the cache directory can be periodically deleted without causing any harm. Technorati will recreate any cache files it needs.
Oonce you’ve installed the Technorati plugin, you�ll have a set of new Movable Type tags. Use these in your templates to display information about who’s linking to you.
MTTechnorati
A container tag that defines what information you want to retreive from Technorati. MTTechnorati is a smart tag. What it does depends upon the context where it is used. If you use the tag inside an entry, the tag will retreive a list of incoming links to that entry. If you use it outside an entry, the tag will create a list of blogs that link to your blog, a reverse blogroll of sorts. If you want to override this behavior, you can add some attributes to the tag and tell it what URL you would like to retreive Technorati data for.
This container can have the following attributes:
MTTechnoratiLinkTitle
A tag representing the title of the blog or page that is linking to you. It supports an if_blank attribute that specifies alternate text to display if the tag is empty. The attribute can contain MT Expressions.
MTTechnoratiLinkURL
The URL of the blog that is linking to you. It supports an if_blank attribute that specifies alternate text to display if the tag is empty. The attribute can contain MT Expressions.
MTTechnoratiLinkRSS
The RSS feed for the blog that is linking to you, if it is known by Technorati. It supports an if_blank attribute that specifies alternate text to display if the tag is empty. The attribute can contain MT Expressions.
MTTechnoratiLinkInbound
The number of inbound links to the blog that is linking to you. This is not the number of links to you, but rather the number of links to them.
MTTechnoratiLinkBlogs
The number of blogs linking to the blog that is linking to you. Like MTTechnoratiLinkInbound, this is not the number of blogs linking to you. It supports an if_blank attribute that specifies alternate text to display if the tag is empty. The attribute can contain MT Expressions.
MTTechnoratiLinkPermalink
Technorati’s best guess as to the permalink URL for the blog entry that is linking to you. It supports an if_blank attribute that specifies alternate text to display if the tag is empty. The attribute can contain MT Expressions.
MTTechnoratiLinkExcerpt
An excert from the page that is linking to you. This will be blank for reverse-blogroll searches. It supports an if_blank attribute that specifies alternate text to display if the tag is empty. The attribute can contain MT Expressions.
MTTechnoratiLinkCreated
The date that Technorati first became aware of the link. This will be blank for reverse-blogroll searches. You can use MT’s date tag formatting to format this the way you would like.
MTTechnoratiVersion
The version number of the Technorati plugin.
MTTechnoratiCacheDateTime
The date and time that the plugin cache was last created. The date and time when the cache was last updated. If the cache is new, the current date and time are returned. You can use MT’s date tag formatting to format this the way you would like.
Get the last 25 sites that linked to your blog:
<ul> <MTTechnorati lastn="25"> <li><a href="<MTTechnoratiLinkURL>"><MTTechnoratiLinkTitle></a></li> </MTTechnorati> </ul> <p>Last 25 inbound links. <a href="http://technorati.com">Powered by Technorati.</a></p>
Get a list of sites that link to any given blog entry:
<MTEntries lastn="15"> <p><MTEntryTitle></p> <p>Inbound links to this entry. <a href="http://technorati.com">Powered by Technorati.</a></p> <ul> <MTTechnorati> <li><a href="<MTTechnoratiLinkURL>"><MTTechnoratiLinkTitle></a><br> <MTTechnoratiLinkExcerpt></li> </MTTechnorati> </ul> </MTEntries>
Like our other freeware, this plugin is released under the open-source MIT License. In plain English, that means you can do whatever you want with the software, including modifying it, selling it, or eating it, but we�re not responsible for anything that goes wrong.
1.1 - Jun 25, 2004
1.0 - Jul 24, 2003
0.93 - May 15, 2003
0.92 - May 14, 2003
0.91 - May 12, 2003
0.9 - May 12, 2003
* Initial release.
Excerpt: After yesterday's entry regarding Plugin and how to tweak MT, I couldn't help but do a little tweaking myself. That coupled with the comments from my review at The Weblog Review, I thought of a few things that I could do to kind of spruce up the place....
how do you the inbound links to an entry because the sample code you have is not working.
Excerpt: Technorati Plugin
I am having difficulty - I keep getting this in my MT activity log: “Can’t use string (“1”) as an ARRAY ref while “strict refs” in use at /usr/local/lib/perl5/site_perl/5.8.3/XML/Simple.pm line 231.”
But my cache is working and there is content in the cached file:
majordojo http://www.majordojo.com http://www.majordojo.com/index.rdf http://www.majordojo.com/atom.xml 4 6 2004-11-12 21:43:29 GMT 218998
4 6 1
Movalog - All things Movable Type http://sideblog.movalog.com http://www.movalog.com/index.rdf http://www.movalog.com/atom.xml 1 8 2004-11-13 09:02:40 GMT Jay Allen :: The Daily Journey http://www.jayallen.org/journey http://www.jayallen.org/journey/index.rdf 130 192 2004-11-13 05:02:42 GMT
What on earth could be the problem?
Byrne
These are the last 15 comments. Read all 53 comments here.
This discussion has been closed.
Adam Kalsey
Mobile: 916.600.2497
Email: adam AT kalsey.com
AIM or Skype: akalsey
©1999-2010 Adam Kalsey.
Content management by Movable Type.
Paulo Querido
December 5, 2003 2:23 PM
Hi again: forget my question 1., I found the anwser 5 minutes after putting it :) Quite simple, indeed. So simple and obvious that i’m feeling stupid ;) Just replaced charset=iso-8859-1 by charset=UTF-8 in meta-content tag.
So don’t waste your time seeing my test blog.
Best regards