CASA News RSS feed?

Information from and to the site administrators.

Moderator: Alastair

Post Reply
Message
Author
Eriorg
Posts: 77
Joined: Sat Jul 11, 2009 2:59 pm

CASA News RSS feed?

#1 Post by Eriorg » Thu Sep 23, 2010 3:56 pm

(I hope I'm posting this in the good forum section: I don't know what's the difference between "Site feedback & announcements" and "CASA 2.0", now that the site is CASA 2.0...)

Is there an RSS feed for the "News" from the main page of the CASA site? I can't see it, at least...

Also, if there is (or when there will be) a RSS feed, it might be a good idea to add it to Planet IF, because relatively many people from the IF community will then see it.

User avatar
Gunness
Site Admin
Posts: 1826
Joined: Tue Dec 07, 2004 7:04 pm
Location: Copenhagen, Denmark
Contact:

Re: CASA News RSS feed?

#2 Post by Gunness » Thu Sep 23, 2010 8:49 pm

Eriorg wrote:(I hope I'm posting this in the good forum section: I don't know what's the difference between "Site feedback & announcements" and "CASA 2.0", now that the site is CASA 2.0...)
The major difference is that the 2.0 section is for admins only, so it's mostly for development stuff, coding and such. But it might be useful to rename it to a more appropriate name.

There is no RSS feed at the moment, but I've received several suggestions indicating that it might be a viable project.
So... do people normally use a tool to create the feed or is it better to do it by hand? If the former, any suggestion as to which of the many tools to choose?

Mr Creosote
Posts: 966
Joined: Tue Sep 22, 2009 9:23 am
Contact:

Re: CASA News RSS feed?

#3 Post by Mr Creosote » Thu Sep 23, 2010 9:25 pm

Tool? We've got a scripted site here - we just need to add a hook to the news posting which generates such a 'feed' (which is really just a simple XML based markup). Alternatively, we can have a dedicated script which outputs RSS compliant markup.

dave
Posts: 606
Joined: Tue Aug 21, 2007 10:20 pm

Re: CASA News RSS feed?

#4 Post by dave » Thu Sep 23, 2010 11:03 pm

Great minds think alike, I was musing this just last night.

We could do with at least two feeds: one for the forum (there's standard modules for this) and one for the main site. The other choice is Atom vs RSS (most browsers support both).

Mr Creosote
Posts: 966
Joined: Tue Sep 22, 2009 9:23 am
Contact:

Re: CASA News RSS feed?

#5 Post by Mr Creosote » Fri Sep 24, 2010 10:29 am

Jacob, just decide what you want on three counts:
- Feed format (RSS 1, RSS 2, Atom)
- Pre-generated static file versus dynamically generated on every call
- What to include: just the 'post' or also the games lists

User avatar
Gunness
Site Admin
Posts: 1826
Joined: Tue Dec 07, 2004 7:04 pm
Location: Copenhagen, Denmark
Contact:

Re: CASA News RSS feed?

#6 Post by Gunness » Fri Sep 24, 2010 12:50 pm

Mr Creosote wrote:Jacob, just decide what you want on three counts:
As indicated above, my knowledge in this area is somewhat limited, so feel free to correct me where I'm wrong.

>Feed format (RSS 1, RSS 2, Atom)
My initial choice would be Atom, but I'm sure some of you have a firmer basis to form a list of pros and cons on.

>Pre-generated static file versus dynamically generated on every call
Given the site's structure and update frequency, I'd say that a pre-generated file would suffice.

>What to include: just the 'post' or also the games lists
Much of the time, the post will be fairly brief or of a chatty nature, so my guess is that the games list will be the more interesting one?

User avatar
Samwise
Posts: 87
Joined: Mon May 17, 2010 1:23 pm
Contact:

Re: CASA News RSS feed?

#7 Post by Samwise » Sat Sep 25, 2010 8:09 pm

Jacob,

Further to the conversation we had in PM about RSS feeds a while ago, the latest version of phpBB comes with Atom feeds available as standard. They just need enabling in the ACP under the Feeds menu, if you want to supply a feed for the forums.

HTH,

Sam.

User avatar
Gunness
Site Admin
Posts: 1826
Joined: Tue Dec 07, 2004 7:04 pm
Location: Copenhagen, Denmark
Contact:

Re: CASA News RSS feed?

#8 Post by Gunness » Sun Sep 26, 2010 3:12 pm

THanks for the heads-up - I hadn't noticed. There are a heap of settings so I've pretty much used the standard settings for now.

Incidentally we've also selected Atom for our news section feed. It's almost ready; the last details are being worked on.

Eriorg
Posts: 77
Joined: Sat Jul 11, 2009 2:59 pm

Re: CASA News RSS feed?

#9 Post by Eriorg » Mon Sep 27, 2010 3:27 pm

I've seen that the RSS feed is now here, and it seems to work! Congratulations! :thumb:

Now you'll just have to e-mail the Planet-IF maintainer and wait.

User avatar
Gunness
Site Admin
Posts: 1826
Joined: Tue Dec 07, 2004 7:04 pm
Location: Copenhagen, Denmark
Contact:

Re: CASA News RSS feed?

#10 Post by Gunness » Tue Oct 05, 2010 12:04 pm

And it's listed there now :) Would probably like a few pics to freshen up the news section. If anybody has ideas, let me know.

Eriorg
Posts: 77
Joined: Sat Jul 11, 2009 2:59 pm

Re: CASA News RSS feed?

#11 Post by Eriorg » Tue Oct 05, 2010 12:48 pm

Gunness wrote:And it's listed there now :)
Great! :D

User avatar
Gunness
Site Admin
Posts: 1826
Joined: Tue Dec 07, 2004 7:04 pm
Location: Copenhagen, Denmark
Contact:

Re: CASA News RSS feed?

#12 Post by Gunness » Mon Nov 15, 2010 9:43 pm

Is this still updating properly? My latest news entry in the feed is from Oct. 17th.

Mr Creosote
Posts: 966
Joined: Tue Sep 22, 2009 9:23 am
Contact:

Re: CASA News RSS feed?

#13 Post by Mr Creosote » Mon Nov 15, 2010 10:52 pm

The problem here is that unlike WWW browsers, feed readers are actually serious about expecting well-formed XML. One parsing function in our code (nl2p) isn't sensitive enough of its context. If there are too many line breaks in a list, it'll break the XML structure. Since I haven't written that function, I've simply added some code which removes the erronous tags again afterwards (at least the ones which appeared so far - not guaranteed to be a complete list). This should be enough as a quick fix. Should something like this happen again, this is where to look.

Post Reply