Kirjoittaja Aihe: forumin RSS-feed  (Luettu 7568 kertaa)

0 jäsentä ja 1 Vieras katselee tätä aihetta.

Poissa LassiLeevi

  • Jäsen
  • Viestejä: 218
  • Sukupuoli: Mies
forumin RSS-feed
« : 21.08.2007 - klo:10:36 »
Mistä ihmeestä tuo taas löytyy täältä. Aina siihen vahingossa törmää mutta ei sitten koskaan ku ois tarve lukuohjelmaan laitella.. :)

PS. Voiskohan tuo sijoittaa hitusen näkyvämmälle paikalle että puusilmä löytäs ;)
"A cop is a Zoo in a man,
   with a gun."
  -Hammer, Sledge

Poissa jmp

  • openSUSE Member
  • *
  • Viestejä: 4553
  • Sukupuoli: Mies
    • openSUSEa suomeksi
Ja muistakaa pitää hauskaa ;)

openSUSE Tumbleweed (x86_64)

Poissa Owdy

  • Huoltomies
  • Jäsen
  • Viestejä: 3260
Vs: forumin RSS-feed
« Vastaus #2 : 21.08.2007 - klo:19:41 »
Uusimmat 20 aihetta saat lisäämällä lukijaohjelmaasi osoitteen
http://opensuse.fi/keskustelu/index.php?type=rss;sa=news;action=.xml;limit=20
Uusimmat 20 viestiä saat lisäämällä lukijaohjelmaasi osoitteen
http://opensuse.fi/keskustelu/index.php?type=rss;sa=recent;action=.xml;limit=20

Lisäoptiot


board=X Haluamasi alueen tunnus (näkyy osoitteessa) Jätä tämä pois jos et halua rajata sitä mihinkään alueeseen.
limit=Y Tilattavien viestien määrä
sa=news näyttää uusimmat aiheet
sa=recent näyttää kaikki uusimmat viestit

Esimerkki, tilataan 10 tuoreinta viestiä alueelta 'Yleinen keskustelu': http://opensuse.fi/keskustelu/index.php?type=rss;sa=recent;board=1.0;limit=10;action=.xml

PS. Voiskohan tuo sijoittaa hitusen näkyvämmälle paikalle että puusilmä löytäs ;)
Jos käytät Firefoxia, katso selaimen osoiteriviä.
« Viimeksi muokattu: 21.08.2007 - klo:19:52 kirjoittanut Owdy »

fsu

  • Vieras
Vs: forumin RSS-feed
« Vastaus #3 : 21.08.2007 - klo:20:21 »
Kannattanee myös harkita, vaihtaako type=rss -> type=atom. Ainakin itselläni tuli artikkelin kirjoittajan nimi näkymään artikkeliin.

Poissa Owdy

  • Huoltomies
  • Jäsen
  • Viestejä: 3260
Vs: forumin RSS-feed
« Vastaus #4 : 21.08.2007 - klo:20:27 »
Niitä on muitakin, mm rss2 :)

Lainaus käyttäjältä: Oldiesmann
Now, on to the fun stuff.

All of the XML content is accessed via the ".xml" action...
Other formats can be achieved by adding one of the following to the URL:
;type=atom - Atom
;type=rdf - RDF
;type=rss - RSS 0.91
;type=rss2 - RSS 2.0

The default feed is the 5 most recent posts:
http://www.simplemachines.org/community/index.php?action=.xml

There are several "sub-actions" available to this action, specifying exactly what to display:

Recent Posts (displays the most recent posts that you can see)
"Sub-action": recent
Default: Shows 5 most recent posts
Available options:
limit=x - display the "x" most recent posts (if number is less than 5, it will display 5. If number is larger than 255, it will display 255).
board=y - display only the recent posts from board "y"
boards=x,y,z - display only the recent posts from the specified boards
c=x or c=x,y,z - display only the recent posts from boards in the specified category/categories
Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;board=72;limit=10

News (displays the first post from the most recent topics that you can see)
"Sub-action": news
Available options:
limit=x - display only "x" items
board=y - display only news topics from board "y"
boards=x,y,z - display only news topics from the specified boards
c=x or c=x,y,z - display only news topics from boards in the specified category/categories
Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=news;board=72;limit=10

Members (displays most recent members):
"Sub-action": members
Available options:
limit=x - display only the "x" most recent members
Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=members;limit=10

Profile (displays the "profile summary" data in a nice XML feed for the specified user)
"Sub-action": profile
Required option:
u=x - display the profile info for user whose ID is "x"
Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=profile;u=150

Now - you're probably wondering what you can do with this. Quite a bit actually.

You can syndicate this stuff by giving people these URLs to use on their sites (they will need to have their own RSS parser to deal with it though - CaRP is a good free one (requires PHP)). You can also use PHP's XML Parser Functions to format the output the way you want it (although you can also do this using SSI.php). There are also several free sites that will parse the feeds for you, including www.rss2javascript.com and www.feedburner.com.

You can also subscribe to these feeds through an XML reader, Firefox, Thunderbird or any other software that supports XML or RSS feeds (note - Outlook and Outlook Express do not support this...) - you will need to have either "type=rss" or "type=rss2" somewhere in the URL for it to work. If you would like to know how to set this up in Firefox or Thunderbird, let me know. Enjoy!


muoks: noi feedit vois tietysti tökätä vaikka tonne alalaitaan helposti saataville. Kun sitten taas joskus pääsee servuun käsiksi.

Poissa LassiLeevi

  • Jäsen
  • Viestejä: 218
  • Sukupuoli: Mies
Vs: forumin RSS-feed
« Vastaus #5 : 21.08.2007 - klo:22:55 »
Jos käytät Firefoxia, katso selaimen osoiteriviä.


Nonniin. Tietysti. Sanoinhan tuosta puusilmästä... :D
Sitä ku on tottunu hakemaan sitä oranssia tms. RSS-kilkettä tuolta sivulta jostain paikkaa (ylälaidasta...)
niin eihän tuota taas älynny. Mutta tuosta foxin riviltähän sen on vahingossa tosiaan hoksannut, jos sitä jaksaa kattella. Kiintoisampi lukeminen se on vielä toistaseks ollu onneks täällä sivualueella :)
"A cop is a Zoo in a man,
   with a gun."
  -Hammer, Sledge

Poissa Owdy

  • Huoltomies
  • Jäsen
  • Viestejä: 3260
Vs: forumin RSS-feed
« Vastaus #6 : 22.08.2007 - klo:14:15 »
muoks: noi feedit vois tietysti tökätä vaikka tonne alalaitaan helposti saataville.
Lisätty

Poissa Owdy

  • Huoltomies
  • Jäsen
  • Viestejä: 3260
Vs: forumin RSS-feed
« Vastaus #7 : 10.09.2007 - klo:22:06 »