just because I can

so I was reading this thread, and it inspired me (due to my boredom) to write the next best thing: an RSS feed.

viola: http://woogley.net/misc/jgo.php

an RSS feed that lists the last 10 recently updated topics.

nifty. :-X

Nifty’s the word.

Cas :slight_smile:

ah been waiting for this feature for a long time, good work, could you possibly make it the last 20?
10 looks a bit small on my firefox rss feeed :slight_smile:

the reason it was 10 is because that was the maximum number I could get without recording items :stuck_out_tongue_winking_eye: (the feed is pulling from here)

I just set up a quick database, so the feed will now show up to 50 of the most recent messages… :stuck_out_tongue:

Its certainly ingenious, but wouldn’t the database only work if the RSS feed queried the board at a faster rate than people posted messages? Are you polling for the most recent posts at scheduled time intervals?

Alan. :slight_smile:

/Edit I think this form does do rss anyway.

feed://192.18.37.44/forums/index.php?action=.xml;sa=news;type=rss

Nuts, wrong. This second one works though.

http://192.18.37.44/forums/index.php?action=.xml;sa=news;type=rss

for the databse to keep up, the script would have to query the board AT LEAST once per 10 posts. the database is only updated when someone checks it, but most RSS readers I know check every 15-30mins by default :stuck_out_tongue:

so the moral of the story is, tell all your friends to subscribe to it so the database doesn’t fall behind! :stuck_out_tongue:

edit: yeah the board does do RSS, but only 5 items… :confused:

edit2: what does that feed do? it doesnt even show this topic, which was one of the last 5 posted o_O

Your right, something a bit odd there. I haven’t figured it out.

Edit: Oh I should have used ‘recent’ rather than ‘news’. And you’re right I only get 5 results

Edit2: 20 results I hope:

http://www.java-gaming.org/forums/index.php?type=rss;action=.xml;sa=recent;limit=20

good compromise though. I could have my feed read off of THAT feed and cache the results up to 50, that way my script wouldn’t become cripple of the JGO html is ever changed… :stuck_out_tongue:

or even better, if I could find the right GET variable that makes that RSS feed show more than 5 items =o

it’s limit=20

Alan :slight_smile:

sweet! of course, that makes my script completely useless :slight_smile:

but hey, still got what I wanted =x

http://www.java-gaming.org/forums/index.php?type=rss;action=.xml;sa=recent;limit=50

ty alan =o

Yeah, sorry about that. It’s still a nifty script. Maybe it could be used to aggregate data from multiple feeds on a given topic (or something).

Best Regards
Alan :slight_smile:

nah, only made it to kill boredom :wink:

for those who are curious how I was doing it, feast your eyes… :stuck_out_tongue:

it’d be nice if you could choose which boards you want cos there are some boards i just don’t read or need,

maybe have something that generates a personalised link for you something like http://woogley.net/misc/jgo.php?boards=general,lwjgl,showcase;
forgive the php if its wrong ;D just an example

also if there was only one entery for each topic, instead for one for each reply

good idea kapta. in fact, that’s already built in as well :wink:

for example, if you wanted posts only from “general discussions” (which happens to be board ID #9), you can use:

http://192.18.37.44/forums/index.php?action=.xml;sa=recent;type=rss2;limit=50;board=9.0

don’t know if you can specify multiple boards in one feed though.

check this out for more information