Subject: RSS feed in static page

Posted on: 12/05/06 12:01am
By: Anonymous

I was wondering of there was any way to add an external RSS feed to a static page in a center block.
Thanks, Chris

RSS feed in static page

Posted on: 12/05/06 01:57am
By: Dirk

Try a search - this has been discussed before.

bye, Dirk

RSS feed in static page

Posted on: 04/09/06 11:12pm
By: Anonymous

I found a way, but it was a version of the rss in a javascript format.
It actually comes up pretty nice.
It may not be available for what you are wanting.
There probably is a way to get the rss to show up but it's beyond me.

RSS feed in static page

Posted on: 16/09/06 12:24am
By: tmarquez

You will have to do some coding and do a static page excuting PHP. I use PEAR RSS Parser. You can find it here:

http://pear.php.net/package/XML_RSS/

Here is an example of what my Static Page Looks like:

require_once "/server/example/public_html/XML_RSS-0.9.2/RSS.php";

$rss =& new XML_RSS("http://www.mygeeksite.net/backend/example.rdf");
$rss->parse();

$display .= "Latest Example News<br>";

foreach ($rss->getItems() as $item) {
    $title = stripslashes ($item['title']);
    $display .= "<li><a href="" . $item['link'] . "">"  .$title . "</a><br>";
   
}

echo $display;



Hope this helps.

RSS feed in static page

Posted on: 18/09/06 02:46am
By: mst3kroqs

Just thought I'd add -

Folks on hosting providers may be constrained to use the 'PEAR tree' that comes with GeekLog itself. It is located in ~public_htmlsystempear.

You use this 'local' PEAR distribution by setting the $_CONF['have_pear'] option to false in config.php.

What I ran into was that while my hosting provider had installed PEAR (it is commonly found in /usr/lib/php/pear), I was unable to download and install the XML_RSS package, and the XML_Parser package that it depends on.

What I was able to do is 'hack' these packages into the GL-provided PEAR tree, by doing the following:

1) Download the XML_RSS package from:

http://pear.php.net/package/XML_RSS

2) untar, and move RSS.php (only) to the ~/public_html/system/pear directory.

3) Download the XML_Parser package from:

http://pear.php.net/package/XML_Parser

4) Untar, and move 'Parser.php' to the ~/public_html/system/pear/XML directory.

5) Create a directory: ~/public_html/system/pear/XML/Parser

6) Move 'Simple.php' (from the 'Parser' subdirectory created when you unpacked the .tgz) to the ~/public_html/system/pear/XML/Parser directory you just created.

7) To use: require_once( $_CONF['path] . "/system/pear/RSS.php" ), and then follow the rest of tmarquez's instructions!

BTW - this is not at all how you should install PEAR packages, but these packages seemed simple enough to allow this sort of brute-force insertion method.

It would be very kewl if the GL folks included these packages in the local PEAR tree for the next version of GL.

Geeklog - Forum
https://www.geeklog.net/forum/viewtopic.php?showtopic=66832