View Single Post

  #4 (permalink)  
Old 20-12-2007, 02:05 PM
Big D Big D is offline
Frontpage User
 
Join Date: Dec 2007
Posts: 24
Nominated 0 Times in 0 Posts
TOTW/F/M Award(s): 0
Big D will become famous soon enough
Default MagpieRSS

Forbairt, thank you for your reply.

I've just posted a message in the General chat section to explain that I've had to learn on the hoof since I lost my webmaster of 10 years, so there are still gaping holes in my knowledge.

However, it looks as though Magpierss has already been placed on my site for a feed set up by my former webmaster.

I notice there are 4 rss files in the directory:

rss.php
rss_cache.inc
rss_fetch.inc
rss_parse.inc

and the rss.php file reads as follows:

<?php
require_once 'rss_fetch.inc';
$url = 'http://news.bbc.co.uk/rss/newsonline_uk_edition/northern_ireland/rss091.xml';
$rss = fetch_rss($url);
$id=0;
echo "Site: ", $rss->channel['title'], "<br>\n";
foreach ($rss->items as $item ) {
if($id=="5") {
echo "</td><td><p>\n";
}
if($id=="10") {
echo "</td><td><p>\n";
}
if($id=="15") {
break;
}
$id++;
$title = $item[title];
$url = $item[link];
$description = $item[description];
echo "<a href=$url>$title</a><br>$description</li><br>\n";
}
?>

What I can't figure out is what code I should put in the page on which I would like the feed to appear, i.e. how do I activate the feed on a given web page?
Reply With Quote