mazman13 Posted October 6, 2008 Share Posted October 6, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/127182-need-help-paginating-a-feed-with-magpierss/ Share on other sites More sharing options...
mazman13 Posted October 6, 2008 Author Share Posted October 6, 2008 I guess what I'm asking is if there is any way to do this within a forloop? Whats the best way to do this? Thanks Quote Link to comment https://forums.phpfreaks.com/topic/127182-need-help-paginating-a-feed-with-magpierss/#findComment-658085 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.