blogBuddies News

Saturday, November 27, 2004

LiveJournal bug

Ya, thats right. I am having a HARD time figuring out this bug. I know the string is being constructed correctly (it echos out correctly) and the method of processing the feed works (its the same as I use for blogger).

It works on my system but not on the server (uses exact same file and database).


echo "<h3>LiveJournal</h3>";
if (mysql_num_rows($result) == 0)
die ("This user has no friends using LiveJournal.");

for ($i = 0; $i < mysql_num_rows($result); $i++){
$row = mysql_fetch_row($result);

for ($j = 0; $j < mysql_num_fields($result); $j++)
{
//echo $row[$j];


$url = 'http://www.livejournal.com/users/'.$row[$j].'/data/rss/index.rss';
//echo $url;
$rss = fetch_rss($url);


echo "<div class=nav><h3><a href=",$rss->channel['link'],">", $rss->channel['title'], "</a></h3><b>",$rss->channel['description'],"</b><p>\n";
$disnum = 0;
foreach ($rss->items as $item ) {
if ($disnum < 5) {
$title = $item[title];
$url = $item[link];
//$desc = $item[content][encoded];
$desc = $item[description];
//$summ = $item[summary];
echo "<div><a href=$url>$title</a><br>$desc</div><p> \n";
$disnum++;
}
}
echo "</div>";
}
}

Thursday, November 25, 2004

blogBuddies 0.3

blogBuddies is now in its first functional release. It will work with ANY Blogger blog. LiveJournal support will be added later. Also, registration and management sub-systems are in development. If you would like an account now, email me.

Incidentally, I have just created this blog, which will announce all blogBuddies news. Add "blogbuddiesnews" (without the quotes) to your blogBuddies.