From technorati to trackrati /1


particular of the Technorati 
API logo In a post of ten days ago, Massimo of DTCM asked to his geek audience:

I decided to insert a link to my trackbacks on technorati where before there was the trackbacks, so at the end of every post, on the bottom-right near to the links to comments that have, between parenthesis, the number of the existing comments. Problem: how can I ask to Technorati hic et nunc on my blog how many people linked my post, in the way that if I have technorati [0] anyone click and nobody lose time?

Someone of you remembere that the desire to kick off a instrument -unfortunateley killed by the spam – that track the ‘conversations’ like the trackbacks, substituing it with an external alternative service, surface in the Particle Tree’s experiment “Replacing Trackback with Blog Search“: two PHP 5 scripts demand to the ‘Google Blog Search‘ service an RSS with the informations related to a particular post, and these will be displayed using XSLT and the Lihtbox JS library in a div at the center of the page.
Going back to Technorati (that as I saw lose less post than Google Blog Search) and to the simple number of the linking posts, this post is my proposal, the:

Trackrati WordPress Plugin

How it works: it query to the Technorati CosmosQuery API receiving
in reply the number of links related to a post, that insert in the template of the blog. A cache on files reduce the number of queries to the service.
Installation: Open the filetrackrati_wp.php, and insert your Technorati API Key. Copy the folder trackrati_wp (with inside trackrati_wp.php and the empty folder tracache, that must have CHMOD 777) in the folder wp-content/plugins of WordPress, and activate from the admin menu.
Insert then <?php trackrati(); ?> in the “loop” part of the template*
where you want to display a “Trackrati (n)” link, with n as the number of the linking blogs.

You can see an example of Trackrati links in this and my italian blogs; in the next days, instead, I’ll try to expand the plugin to display- above the comments and trackbacks space – all the informations that the Cosmos API returns.

*[generally in the index.php, in divs with class=”postmetadata”, near to <?php comments_popup_link(‘No comments »’, ‘1 Comment »’, ‘% Comments »’); ?>.]

One comment:

Leave a Reply

Here's the list of topics.

Here's the months' archive.