News:

Want to get involved in developing SMF? Why not lend a hand on our GitHub!

Main Menu

Parse external RSS feed in template header?

Started by ADoomedMarine, November 23, 2004, 04:58:28 PM

Previous topic - Next topic

ADoomedMarine

I would like to parse an RSS feed from another section (external to the forums) at the top of the forums.  Problem is most parsers I've found are either too bulky or don't cache the request, so technically I'm querying the server every refresh which has increased my load amount to the point my ISP suggests I go on a semi-dedicated server.

I didn't think of it before but when trying to track down the problem I remember about this.  So is there an internal rss parser included within SMF and if so how would I go about doing this?

Thanks.

[Unknown]

SMF doesn't have it's own caching RSS parser, but one wouldn't be *that* hard to write.

-[Unknown]

ADoomedMarine

Do you happen to know any good external programs that I could use that could do that then?  I just want to list the last 5 or so rss items.

ms_ukyankee

I use Magpie, with Infinite Penguins RSS Viewer (outputs to javascript or includes). I spent hours looking and testing for rss to javascript tools, and these were the only ones I could actually get working.

http://magpierss.sourceforge.net/

http://www.infinitepenguins.net/
SMF since 2004 <3

ADoomedMarine

I can't seem to download the RSS viewer from the infinitepenguin site.

ms_ukyankee

Quote from: ADoomedMarine on November 24, 2004, 07:36:34 AM
I can't seem to download the RSS viewer from the infinitepenguin site.

You've got mail. :)
SMF since 2004 <3

J. S.

RSS reader:


<script language=JavaScript

src="http://www.lovesms.ro/rss/please_read_my_rss_file.php?feed=http://www.lovesms.ro/forum/index.php?action=.xml;type=rss">

</script>

Advertisement: