Community Software 24

Let me help to build your community! Future oriented!

 
    Connect with Facebook

BLOG claiming for Technorati

January 20, 2010 by Torsten Wesolek   Comments (0)

, , , ,

As you will know, Technorati is for BLOGS as important as google for search.
Therefore I wanted to claim my Blog (Elgg System) for technorati.
Claiming your BLOG will help you to increase the number of visitors. You can place your blog in up to 20 categories (type in tags) and you can give a blog description.

For claiming your blog you will get a claim code. This code you have to insert at one of your post. You can delete this Post later or simply remove the code from the post.

See here for a more detailed tutorial .

My problem and the problem of many other users was a message like this:

"... Unfortunately, we have encountered a problem reading your site's data...."

The feed was readable with several feedreaders, but a check with Feedvalidator showed an incomplete permalink. This feed therefore was invalid. (Some small other issues where shown, but the where not breaking the feed.)

Actually I did a small change, and as a result my claim code was found.

file: /views/rss/object/default.php

 

<item>
 <guid isPermaLink='true'><?php
$permalink = $vars['entity']->getURL();
if (!strstr($permalink,'http://')) {
$permalink = 'http://' . $_SERVER["HTTP_HOST"] . $permalink;
}
echo htmlspecialchars($permalink);
 ?></guid>
 <pubDate><?php echo date("r",$vars['entity']->time_created) ?></pubDate>
 <link><?php echo htmlspecialchars($permalink); ?></link>
 <title><![CDATA[<?php echo $title; ?>]]></title>

 

<item>
 <guid isPermaLink='true'><?php
$permalink = $vars['entity']->getURL();
if (!strstr($permalink,'http://')) {
$permalink = 'http://' . $_SERVER["HTTP_HOST"] . $permalink;
}
echo htmlspecialchars($permalink);
 ?></guid>
 <pubDate><?php echo date("r",$vars['entity']->time_created) ?></pubDate>
 <link><?php echo htmlspecialchars($permalink); ?></link>
 <title><![CDATA[<?php echo $title; ?>]]></title>

...      

 

The problem was the relative link. Now, if getURL() ist delivering a relative link, this is extended to a full URL.