Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (535)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  just because I can  (Read 2548 times)
0 Members and 1 Guest are viewing this topic.
Offline woogley
« Posted 2006-05-07 10:13:56 »

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.  Lips Sealed
Offline princec

JGO Kernel


Medals: 343
Projects: 3
Exp: 16 years


Eh? Who? What? ... Me?


« Reply #1 - Posted 2006-05-07 12:11:24 »

Nifty's the word.

Cas Smiley

Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #2 - Posted 2006-05-07 15:07:54 »

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 Smiley
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline woogley
« Reply #3 - Posted 2006-05-07 16:04:54 »

the reason it was 10 is because that was the maximum number I could get without recording items ;P (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.. Tongue
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #4 - Posted 2006-05-07 19:00:22 »

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.  Smiley

/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


Time flies like a bird. Fruit flies like a banana.
Offline woogley
« Reply #5 - Posted 2006-05-07 19:04:37 »

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 Tongue

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

edit: yeah the board does do RSS, but only 5 items.. :/

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

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #6 - Posted 2006-05-07 19:12:56 »

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

Time flies like a bird. Fruit flies like a banana.
Offline woogley
« Reply #7 - Posted 2006-05-07 19:21:36 »

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.. Tongue

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

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #8 - Posted 2006-05-07 19:24:45 »

it's limit=20

Alan Smiley

Time flies like a bird. Fruit flies like a banana.
Offline woogley
« Reply #9 - Posted 2006-05-07 19:27:52 »

sweet! of course, that makes my script completely useless Smiley

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
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Alan_W

JGO Knight


Medals: 8
Projects: 3


Java tames rock!


« Reply #10 - Posted 2006-05-07 19:31:13 »

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 Smiley

Time flies like a bird. Fruit flies like a banana.
Offline woogley
« Reply #11 - Posted 2006-05-07 19:36:08 »

nah, only made it to kill boredom Wink

for those who are curious how I was doing it, feast your eyes... Tongue
Offline kappa
« League of Dukes »

JGO Kernel


Medals: 74
Projects: 15


★★★★★


« Reply #12 - Posted 2006-05-07 19:37:22 »

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  Grin just an example

also if there was only one entery for each topic, instead for one for each reply
Offline woogley
« Reply #13 - Posted 2006-05-07 20:10:13 »

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
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

pw (38 views)
2014-07-24 01:59:36

Riven (39 views)
2014-07-23 21:16:32

Riven (26 views)
2014-07-23 21:07:15

Riven (28 views)
2014-07-23 20:56:16

ctomni231 (59 views)
2014-07-18 06:55:21

Zero Volt (50 views)
2014-07-17 23:47:54

danieldean (42 views)
2014-07-17 23:41:23

MustardPeter (44 views)
2014-07-16 23:30:00

Cero (60 views)
2014-07-16 00:42:17

Riven (57 views)
2014-07-14 18:02:53
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!