For whom it may concern, here is my new code for having del.icio.us favorites into your pages, as I did.

It uses an rss library (here : magpierss) instead of Matthews Dusty's domxml classes whose problems are :

  • uses web app were there was no use for just getting
  • is not cache and del.icio.us' bandwitdh friendly
  • not unicode friendly(àéùô caratères accentués and kana were iso-like "é")
  • ask you to put you password on you .php page (BAAAAAAD)
  • asks a LOT of dependencies (xmldom, curl, ... ), not very good about security or hosting
my code can catch hreflang in the suggested maneer by Joshua down there (even if [fr] was more lisible because at the beginning of our tags... but he is working on it !). It is a little bit more sophisticated instead of my planet composer, but still modifiable by php novices.

I would like in near future finishing my xbel parser, and find out a solution for the favicon caching of firefox :( le malheur des uns, etc...)

So... here it is. Yes, the code is awful. And again, EXCUSE MY BAD FRENCH !

<?php
require_once('rss_fetch.inc');// appel à magpierss
if (
$_flux = fetch_rss('http://del.icio.us/rss/dascritch'))
{
    echo
'<ul>';
    foreach(
$_flux->items as $item)
    {
        
$_sub=explode(' ',$item['dc']['subject']);
        
$hreflang='';
        
$tags=array();
        foreach(
$_sub as $_tag)
        {
            if (
strstr($_tag,'lang:'))
            {
// nous avons un tag linguistique
                
$hreflang.=($hreflang===''?'':'|').substr($_tag,5);
            } else {
// tag normal
                
array_push($tags,$_tag);
            }
        }
        echo
"<li><b><a href=\"{$item['link']}\"".($hreflang===''?'':" hreflang=\"$hreflang\"").">{$item['title']}</a></b><br />{$item['description']}<br />";
        echo
"<small style=\"cursor:help\" title=\"{$post['time']}\">";
        foreach (
$tags as $tag)
        {
            echo
": : <a href=\"http://del.icio.us/dascritch/$tag\">$tag</a> ";
        }
        echo
" : :</small><br />&nbsp;</li> ";
    }
    echo
'</ul>';
} else {
    echo
"oops !!!! we had a problem...";
}
?>
From: me
To: Joshua Schachter

Hello.

i like to use del.icio.us because it permits me to "blog" indirectly even at work. I want to redesign completely the page dascritch.ath.cx/liens-delicious.php in my website (moving from your webapp to rss, more server friendly for you, easely cachable and more simple to share code for friends). I decided to use keywords for indicating the site language;, and parsing it (later) to put it in a special <A> parameter (named hreflang, it is puting [en] in my website with small css strick).

I found out that the most simple was to put them between [ ]
Example : [en] for english , [fr] for french.
but for multiple langages (as in www.ruskeys.net both english and russian), I saw other blog using hreflang using pipe for separating : [en|ru].

but if i enter : [en|ru] design histoire musique tech, del.icio.us will put [en design histoire musique ru] tech. Same problem if i use a coma [en,ru]

Is it obiviously a bug ?

Response from: Joshua Schachter

Hi!

Unfortunately, the spec for hreflang appears to allow only one language: w3.org/TR/REC-html40/struct/links.html#adef-hreflang

Anyway, I have taken out the "|" and "," splitters.

I recommend you use multiple tags like: lang:en lang:ru

I will be adding support for foreign language delicious soon, using this method!