Jump to content

Need help paginating a feed with MagpieRSS


mazman13

Recommended Posts

Does anyone know how to paginate a feed with MagpieRSS?

 

Here is my code right now:

 

$url = "http://www.michaelzavala.com/feed.xml";
$rss = fetch_rss($url);
$nb=1;
foreach ($rss->items as $item ) {
$title = $item[title];
$guid  = $item[guid];
$de = $item[description];
$pubdate = $item[pubdate];
echo "<p style=\"margin-bottom:0px;\"><strong><a href=\"$guid\">$title</a></strong><br /><span style=\"font-size:10px;color:#666666;\">$pubdate</span><br />$de</p>";
	echo"<p style=\"margin-top:0px;margin-bottom:10px;\"><object type=\"application/x-shockwave-flash\" data=\"audio/player.swf\" id=\"audioplayer$nb\" width=\"290\" height=\"24\">
		<param name=\"movie\" value=\"audio/player.swf\">
		<param name=\"FlashVars\" value=\"playerID=$nb&bg=0xf8f8f8&leftbg=0x13619A&lefticon=0x000000&rightbg=0x000000&rightbghover=0x666666&righticon=0xffffff&righticonhover=0x000000&text=0x666666&slider=0x666666&track=0xFFFFFF&border=0x666666&loader=0x9FFFB8&loop=no&autostart=no&soundFile=$guid\">
		<param name=\"quality\" value=\"high\">

		<param name=\"menu\" value=\"false\">
		<param name=\"wmode\" value=\"transparent\">
		</object><br /></p>";
		$nb++;
}

There is a about 200 hundred or so of these, so I was trying to make it load faster.

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.