Well, I'm still having some trouble with that script. I tried plugging in Weedpacket's example but it didn't work for me. Would you guys be willing to take another stab at it? Here's the full code:
<?php
/************************************************************************/
/* Block-Favourite_Weblogs */
/* */
/* Copyright (c) 2004-2005 by Shahin Sheidaei */
/* publlished : March 28 2005 */
/* [url]http://www.sheida.com[/url] */
/* */
/* A simple block to show the updated blogs by blogrolling.com */
/* */
/************************************************************************/
//replace the value of $url with your own link from the code generator
//for more information about $url visit [url]www.blogrolling.com[/url]
$url = "http://rpc.bloglines.com/blogroll?html=1&id=[myID]&target=_blank";
$num=1;
$blogroll = '';
if($my_blogroll = @fopen($url, "r")){
while(!feof($my_blogroll)){
$blogroll .= fgets($my_blogroll, 255);
}
preg_match_all("/(<a[^>]*>.*<\/a>)(\*)?/", $blogroll, $matches);
for ($i=0; $i<count($matches[0]) - 1; $i++) {
$content .= "<strong><big>·</big></strong> " . $matches[1][$i];
if ($matches[2][$i] == '*') {
$content .= '<img src="http://www.rightreadingroom.com/images/blogrolling.gif" alt="Updated!" hspace="5" />';
}
$content .= "</br>\n";
}
$content .= "</br>\n";
$content .= 'Powered by : <a target="_blank" href="http://www.bloglines.com//">Bloglines</a>';
}else{
$content .= 'Powered by : <a target="_blank" href="http://www.rightreadingroom.com/">Sorry</a>';
$content .= "BlogRolling is currently inaccessible.";
}
?>
It's originally Sheida's code for Blogrolling.com. But I'm customizing it for my Bloglines blogroll.
Strangely, most of the default blocks for phpNuke seem to rely on some kind of quasy list format (not real ordered lists). That's why I was trying to avoid going down that road originally. But I've created some additional blocks of my own now using real list format and have found that...
<ul style="margin-left: 1.5em; display: disc; line-height: 1.5em;">
gets them looking pretty good.
So, I'd like to try a real UL list in this script with that formatting, if possible. Like to take a stab at it?