On Tue, Feb 21, 2012 at 10:25:53PM -0500, Mel Chua wrote:
> * This is undoubtedly a stupidly simple question, but I don't know,
> off the top of my head, how to automatically pull in data from the 3
> latest planet posts and the 3 next events
> (http://teachingopensource.org/index.php/Main_Page does, but it's
> mediawiki transclude magic). I assume it's "put PHP in here
> somewhere" and imagine that if I google "how to parse feeds" I'll be
> able to figure out the Planet stuff, but being pointed to the right
> doc/tutorial will save a lot of time. And the events part stumps me
> -- maybe we need to actually stick them into something (gcal?) that
> actually generates a calendar feed, then yank that?

So we'll have to write some PHP code to make this work, yeah.

For the planet feed, you'll want something that can parse RSS feeds.

Events you could either use gcal and find code that parses vCal
formatted files, or you could just list them on the wiki page and use
the MediaWiki API to pull that data. Second one is easier to code I'm
pretty sure, unless there's an actually decent vCal PHP library out
there.

-- 
Ian Weller <[email protected]>

Attachment: pgp0YKNKpn6Pr.pgp
Description: PGP signature

_______________________________________________
tos mailing list
[email protected]
http://lists.teachingopensource.org/mailman/listinfo/tos

Reply via email to