News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds

Started by Oldiesmann, January 20, 2005, 12:55:32 PM

Previous topic - Next topic

benderxr


Simple Machinist

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

c3lt1957

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]


LoGraYThS

Quote from: poveyjo on April 23, 2008, 02:52:27 AM
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]

Ricky.

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.


1stAngel


alexred

Quote from: Ricky. 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.
Ciao, me too need feed for single topic ...  any idea?

Ricky.

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.

jglonek

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


Ricky.

Quote from: jglonek 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

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.

mgk


jay.clark

Quote from: Oldiesmann on January 20, 2005, 12:55:32 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)

Elhcay

Quote from: xerson on August 01, 2005, 11:41:51 AM
Quote from: inthe80s on February 11, 2005, 12:46:42 PM

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 [nofollow]_MSG = t.ID [nofollow]_FIRST_MSG

into

AND m.ID [nofollow]_MSG = t.ID [nofollow]_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?

agbattery

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]

mcrat

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/

BdS

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

DAB Empire

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?

Arantor


Advertisement: