Advertisement:

Author Topic: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds  (Read 717016 times)

Offline benderxr

  • Newbie
  • *
  • Posts: 1
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #280 on: August 23, 2008, 10:59:41 AM »
Is there any way of making a feed to show whos online??

Offline Simple Machinist

  • Jr. Member
  • **
  • Posts: 130
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #281 on: September 20, 2008, 07:14:59 AM »
I would like for the RSS feed for my site to show the author's name. Is there some code that will add that functionilty to the feed?

Someone has sugessted editing the News.php in the Sources folder, btu I am not sure which line to edit and what to add.

Many thanks.... 

Offline c3lt1957

  • Semi-Newbie
  • *
  • Posts: 10
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #282 on: October 30, 2008, 01:57:24 AM »
Hi Oldiesmann,

Thanks for the info on the news feed, but I'm wondering is it possible to have an RSS Feed post forum news, including member stats, into the news fader on my own forum ?

This would be very handy for all the lazy old gits that can't be bothered to scroll down through the list of topics etc and it would save me from having to continually update the news message boxes.

Any advice would be great !

Taffy  :)
[nofollow]
« Last Edit: December 15, 2008, 02:26:10 AM by c3lt1957 »

Offline dWhite

  • Jr. Member
  • **
  • Posts: 173
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #283 on: November 01, 2008, 10:51:08 AM »
Awesome! Thanks for this Oldies! :D

Offline LoGraYThS

  • Newbie
  • *
  • Posts: 9
  • Gender: Male
    • Pearl Jam Mexico
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #284 on: November 21, 2008, 05:53:51 PM »
Hi,  Back on page 5 of this thread, Carla asked the following:

"Is there a way to create an RSS feed of a single topic?. For example this one that we're reading. Can it be downloaded it as an RSS feed?. I wrote the URL and the XML option at the end but I keep getting the whole forum RSS feed.

Best regards,
Carla"

Someone else asked it again later in the thread, but I haven't seen any answers.   is there a way to do this?

I tried topic=x, but that didn't seem to work. 

Any ideas?

Many thanks

No ideas for only feeding topics?

Or is it not possible?
hxxp:pearljamexico.net [nonactive]

hxxp:endorfineando.blogspot.com [nonactive]

Offline Ricky.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,094
    • Indian Linux Forums
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #285 on: December 13, 2008, 05:33:39 PM »
Well, I went into the same need and reading all stuff, I think feed for single topic is not available. Can be good addition to RSS feature of smf.


Offline 1stAngel

  • Semi-Newbie
  • *
  • Posts: 62
  • Gender: Female
  • Founder 1stAngel Arts Magazine and Manager on FAA
    • 1stangelmagazine on Facebook
    • 1stangel on LinkedIn
    • @1stAngel on Twitter
    • 1stAngel Arts Magazine
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #286 on: December 15, 2008, 01:04:52 PM »
THANK YOU!!!  This article was so useful :)

Offline alexred

  • Semi-Newbie
  • *
  • Posts: 33
    • Joomla.it
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #287 on: December 16, 2008, 05:57:57 AM »
Well, I went into the same need and reading all stuff, I think feed for single topic is not available. Can be good addition to RSS feature of smf.
Ciao, me too need feed for single topic ...  any idea?
Admin forum.joomla.it

Offline Ricky.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,094
    • Indian Linux Forums
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #288 on: December 16, 2008, 06:32:32 AM »
As said, feed for single topic not available as of yet.
Feed for single topic means that it should give update of recent reply made on that topic. Its not there.

Offline jglonek

  • Semi-Newbie
  • *
  • Posts: 19
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #289 on: December 16, 2008, 01:02:43 PM »
Alright, this question as it probably seems.. I know I can add options at the end of the URL to change the feed settings.

But, if I go to Google Reader and put in say, http://www.gadvoutpost.com/home.php?action=.xml;sa=news;board=19;limit=10 [nofollow]

Google Reader doesn't have a clue what I want to do.

But if I put in "www.gadvoutpost.com [nofollow]" into Google Reader, it finds a feed fine and starts working.

Problem is, that feed is the default display last 5 posts thing.

Where in the actual PHP files can I go to change what the default RSS feed is that is being picked up when someone enters "www.gadvoutpost.com [nofollow]" as the feed address? I want to set it to look at only 2 boards, and show news only.
« Last Edit: December 16, 2008, 01:05:06 PM by jglonek »

Offline jglonek

  • Semi-Newbie
  • *
  • Posts: 19
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #290 on: December 24, 2008, 11:58:02 AM »
Anyone have any ideas for this? :(

Offline Ricky.

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 4,094
    • Indian Linux Forums
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #291 on: December 29, 2008, 12:48:03 AM »
Alright, this question as it probably seems.. I know I can add options at the end of the URL to change the feed settings.

But, if I go to Google Reader and put in say, http://www.gadvoutpost.com/home.php?action=.xml;sa=news;board=19;limit=10

Google Reader doesn't have a clue what I want to do.

But if I put in "www.gadvoutpost.com" into Google Reader, it finds a feed fine and starts working.

Problem is, that feed is the default display last 5 posts thing.

Where in the actual PHP files can I go to change what the default RSS feed is that is being picked up when someone enters "www.gadvoutpost.com" as the feed address? I want to set it to look at only 2 boards, and show news only.
Edit your index.template.php  of the theme which you are using.

Offline mgk

  • Semi-Newbie
  • *
  • Posts: 16
  • Gender: Male
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #292 on: December 29, 2008, 02:24:34 PM »
Is RSS2 easy enough to work with or is it a lot of nothing?

Offline jay.clark

  • Semi-Newbie
  • *
  • Posts: 96
  • Gender: Male
  • Retired and loving it
    • ExReps - A community for former Tech Reps
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #293 on: January 29, 2009, 11:09:55 PM »
One of the best features in SMF is its news feeds. However, many people aren't aware of how many options there are, or that this is even available. So, here's a list of available options and what they do...

I kinda lucked out and found this post after considerable searching around.

Is there anything in the admin documentation that talks about using this feature, or is this post the only guide available?
SMF 1.11- SMF 2.0 RC2/RC3 - - RSS Feed Poster 2.2,RSS Feeder 1.1.4, Downloads System Pro 1.0.17.1, SMF Classifieds 1.3.5, SMF Gallery Pro 3.0.2, SimpleDesk - Integrated Helpdesk for Simple Machines Forum 1.0 Felidae, Aeva Media 1.1b, Ultimate Profile     0.9, Google Analytics Code 1.1, Twitter and Facebook Publisher mod 2.4, Stop Spammer 2.3.7, SMF Links 2.2, Site map 2.1.2, AjaxChat Integration 3.2.1, Ad Management 2.3.6

SMF (Donated) SMF Links (donated) - Ad Manager (donated) - phpMyChat (donated)

Offline Elhcay

  • Semi-Newbie
  • *
  • Posts: 12
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #294 on: February 27, 2009, 10:32:31 AM »

I actually want the most recently updated topics, not the posts themselves.  I guess I could do that by ignoring duplicate topics.  That is I actually got a response from the server for the appropriate board.

I found an answer on that.
Find News.php go to the function getXmlNews($rss)

then change

AND m.ID_MSG = t.ID_FIRST_MSG

into

AND m.ID_MSG = t.ID_LAST_MSG

This will sort on the last post of the topic and not the first. So the topic with the most recent post will be shown at top.

Is there a way to link to the last post rather than the first page of the topic using this mod?

Offline agbattery

  • Newbie
  • *
  • Posts: 7
  • Gender: Male
    • Accessory Genie
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #295 on: March 23, 2009, 03:59:07 PM »
Great info!
OEM hxxp:www.accessorygenie.com/batteries-c-1.html [nonactive], hxxp:www.accessorygenie.com/battery-chargers-c-2.html [nonactive], hxxp:www.accessorygenie.com/ac-adapters-c-3.html [nonactive], hxxp:www.accessorygenie.com/memory-cards-c-4.html [nonactive], hxxp:www.accessorygenie.com/gps-c-102.html [nonactive], hxxp:www.accessorygenie.com/radar-detectors-c-103.html [nonactive], and other hxxp:www.accessorygenie.com [nonactive]

Offline mcrat

  • Semi-Newbie
  • *
  • Posts: 26
    • Soldiers of the Wasteland - The premier hardcore gaming guild
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #296 on: March 26, 2009, 11:14:23 AM »
By using type=atom instead of type=rss we can see the members name in the source of the file listed as -

<author>
   <name>Mcrat</name>
</author>

The question is.. how do we display the author's name? Is there some simple way of doing it, or is some custom php required that can possibly pull the info out of that tag? Just looking for a direction on where to look.

Edit - Nevermind, found how to use the info how I wanted with SimplePie. This link did the trick - http://simplepie.org/wiki/reference/simplepie_author/get_name

And for anyone who's interested in what I'm trying to do, I'm following a tutorial from net.tutsplus.com, making a scroller to display recent posts.

I haven't done any major editing yet, basically just using their source material but it didn't quite have all the info I needed for forum use. My test page is up and running here if you want to take a look :) - http://www.sotwguild.com/scrollertest/
« Last Edit: March 26, 2009, 11:32:42 AM by mcrat »

Offline BdS

  • Semi-Newbie
  • *
  • Posts: 24
I also want to change the info that my RSS shows. I want two things:

  • Show author of the message in the RSS.
  • RSS show last messages. I want appear the last topics with answer, not the last messages, because is possible that the last three message in the forum be in one topic, and then, the rss show three times the same topic.

I have 1.1.8 version, anyone can help me? thanks you

Offline DAB Empire

  • Jr. Member
  • **
  • Posts: 240
  • Gender: Male
  • EliteRides.com
    • Night Clubs
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #298 on: October 07, 2009, 01:07:46 PM »
I have a client wanting to use the RSS to display the latest posts in a category for classifieds and display those on the front of the forum.  See www.accurateshooter.com/forums and it's in the iframe on the right.

They don't want it to go to the latest reply within the thread, just to the top of the thread itself.  How can I accomplish this?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 72,346
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #299 on: October 07, 2009, 01:15:35 PM »
So what input are they using for their rss2html.php page?