Simple Machines Community Forum

Customizing SMF => Tips and Tricks => Topic started by: Oldiesmann on January 20, 2005, 12:55:32 PM

Title: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: 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...

First, make sure you've enabled the feeds:

Admin -> News and Newsletters -> Settings
Check the box next to "Enable XML/RSS News".
The "Maximum post length" value determines how many characters of a post are output in the feeds. The default value (255) is fine for now


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 (http://en.wikipedia.org/wiki/Atom_(standard))
;type=rdf - RDF (http://en.wikipedia.org/wiki/Resource_Description_Framework)
;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!

EDIT: Updated post to reflect options available in 1.1.
EDIT again: Fixed typo (";type=rss - RSS 2.0" -> ";type=rss2 - RSS 2.0" - thanks to Sarge (http://www.simplemachines.org/community/index.php?action=profile;u=48405) for pointing that out)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: johnm on January 29, 2005, 06:51:31 AM
thanks for that it really helped

and its so simple!

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: bjp on February 03, 2005, 09:49:25 AM
I have done what you say but i have tis erreor :

La page XML ne peut pas être affichée
Impossible d'afficher l'entrée XML en utilisant la feuille de style XSL. Corrigez l'erreur, puis cliquez sur le bouton Actualiser ou réessayez ultérieurement.


--------------------------------------------------------------------------------

I also ad this :
   // If RSS/XML news is enabled, indicate that an RSS feed is available
   if (!empty($modSettings['xmlnews_enable']))
      echo '
      <link rel="alternate" type="application/rss+xml" title="RSS" href="', $scripturl, '?type=rss;action=.xml;limit=20" />';

Référence à l'entité non définie 'agrave'. Erreur de traitement de la ressource http://www.forum-asie.com/smf/index.php?act...

  <time>29 Janvier 2005 &agrave; 16:37:11</time>
-------------------------^
 
http://www.forum-asie.com/smf/index.php?action=.xml;sa=members;limit=10
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: [Unknown] on February 03, 2005, 03:25:33 PM
Instead of using "&agrave;" in your time format, use the entity code - I don't remember what it is, off hand, though.

-[Unknown]
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Tangent on February 09, 2005, 02:36:43 AM
Instead of resent posts is there a way to get the same results as "Show unread posts since last visit.". I can't just set action =unread which was my first thought. sa=unread gives me something different, seems that posts are grouped by thread. I'm not sure what sa is even though.

anyway help would be cool thanks.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on February 10, 2005, 10:47:55 AM
Currently there is no XML/RSS feed for unread posts. Sorry.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: inthe80s on February 11, 2005, 12:46:42 PM
I just tried this for the most recent posts by board, but I'm not getting any results.  When I tried the example above using this board, it only gives one post.  Though when I tried it on my system (without specifying a board number) it did appear to work correctly.

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.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: [Unknown] on February 11, 2005, 06:23:33 PM
Find, News.php:

Code: [Select]
WHERE m.ID_MSG >= " . ($modSettings['maxMsgID'] - 4 * $_GET['limit']) . "
Replace:

Code: [Select]
WHERE m.ID_MSG >= " . ($modSettings['maxMsgID'] - 40 * $_GET['limit']) . "
How do I modify files? (http://www.simplemachines.org/community/index.php?topic=24110.0)

-[Unknown]
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: inthe80s on February 18, 2005, 12:25:14 PM
Find, News.php:

Code: [Select]
WHERE m.ID_MSG >= " . ($modSettings['maxMsgID'] - 4 * $_GET['limit']) . "
Replace:

Code: [Select]
WHERE m.ID_MSG >= " . ($modSettings['maxMsgID'] - 40 * $_GET['limit']) . "
[[:How do I modify files?]]

-[Unknown]

that won't do it.  I was just looking the line of code over, and it appears to work by subtracting from the message id.  I upped it to 400 and then used the limit, and that seemed to get around it.


I looked over the source for the news.php file, and it doesn't really have the kind of functionality I want.  I'll play with it at some point, and maybe write a new function for returning the most recently updated threads instead of just the most recently updated posts.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Robinski on March 03, 2005, 05:23:43 PM
is there a Way of requesting the RSS as a logged in user?

cause we have one board that is visible to all (where no one can post)
and the rest is only for authorised users

It would be nice to have somthing like
user=username
pass=password

to get info from all boards
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: mytreo on March 05, 2005, 05:21:41 PM
is there a Way of requesting the RSS as a logged in user?

Yes! If you use the live-bookmarks feature in Mozilla to get the feed then provided you're logged in it will use the stored cookie and you will see messages according to your user privileges.

* hugs Firefox *

BTW, thanks for the extra info Oldiesman, very very useful.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Robinski on March 06, 2005, 05:38:04 AM
Ill try that one .. thanx

though it still would be nice if I could do something like user=... and pass=...
so I can use every RSS reader I wouldlike
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: trikos on March 12, 2005, 04:34:46 PM
Thunderbird will not accept this one as a valid rss feed??

http://www.martinusforum.dk/forum/index.php?action=.xml;type=rss

It works with Firefox livebookmarks ???

Please help...
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: [Unknown] on March 13, 2005, 01:30:09 AM
WFM?  Try rss2 instead of rss.

-[Unknown]
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: trikos on March 13, 2005, 05:08:24 AM
I can get simplemachines.org feeds to work in thunderbird and my own feeds in firefox, but not my own feed in thunderbird. I just stick to the livebookmarks, so no problem. Just strange  8)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: DeadMetal on March 21, 2005, 03:10:39 PM
Me and my moderators are interested in a RSS feed which only shows new topics: the first message of a new topic and the board. So they can respond quickly when they notice that it has been placed in the wrong board.

Could you create a RSS(2) feed for this purpose?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: [Unknown] on March 21, 2005, 04:32:24 PM
http://www.simplemachines.org/community/index.php?board=72.0;sa=news;type=rss;action=.xml

-[Unknown]
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: eeyore on March 22, 2005, 01:08:51 PM
I`m just getting a bit confused with all this..... (lol)

Can you disply RSS feeds within a forum?

eg:
if i set up a news forum could you make it that the feed would apper under a new post ?

or do i have to set it up within the news box?

Some one mentioned using a site to convert it to java scrip.... where would i post the script?

cheers
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: woehrl on March 31, 2005, 12:50:44 PM
what must i do so that i can loggin trough the link like: ;name=bla;pw=nice ? Cause I don't use Firefox to call for the news. And the login feature of the programm doesn't work
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Zenigata on April 06, 2005, 11:45:19 AM
http://forum.zenigata.it/index.php?action=.xml;limit=20;type=rss2

The action above displays the 20 most recent posts. Is there a way to display the 20 most recent topics?

Thanks.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: nibb on May 04, 2005, 04:49:47 PM
I think the RSS output is only avaible for version 1.1 right?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: nibb on May 04, 2005, 05:28:59 PM
Well it wont work on the Thundserbird RSS, it says its not a valid url, any tips?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: [Unknown] on May 04, 2005, 07:40:12 PM
http://forum.zenigata.it/index.php?action=.xml;limit=20;type=rss2

The action above displays the 20 most recent posts. Is there a way to display the 20 most recent topics?

Use ;sa=news.  This will be the first post in each topic, not the last.

I think the RSS output is only avaible for version 1.1 right?

No, rss 0.93 and 2.0 are available in 1.0.  1.1 adds RDF and ATOM support.

Well it wont work on the Thundserbird RSS, it says its not a valid url, any tips?

In my experience, Thunderbird prefers RSS 2.0.  However, if type=rss2 fails you, try type=rss.

-[Unknown]
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: nibb on May 05, 2005, 01:19:25 AM
Not =rss or =rss2 works, it says
Its not a valid RSS channel.
Funny but if you go to the =.xml only page it shows a RSS page on the browser, but even that is not accepted. I use Spanish lenguage both for the forum and Thunderbird but i dont think that has something to do with it.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Rik© on May 08, 2005, 05:36:10 AM
Not =rss or =rss2 works, it says
Its not a valid RSS channel.
Funny but if you go to the =.xml only page it shows a RSS page on the browser, but even that is not accepted. I use Spanish lenguage both for the forum and Thunderbird but i dont think that has something to do with it.

Try a different format.... something like this:
Code: [Select]
index.php?board=3.0;sa=news;type=rss2;action=.xml
I use feed2js on one of my sites and somehow it only works this way...
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: edchapman on May 13, 2005, 01:15:15 PM
How do you get the little rss icon to show up next to the url?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: mytreo on May 20, 2005, 07:13:45 AM
Here's a little tip for advertising more RSS feeds. This will advertise the feeds from the board you are currently browsing as well as the main forum feeds. (I think Oldiesman will like this ;) ) Seems to work for me...

index.template.php

Code: [Select]
// If RSS/XML news is enabled, indicate that an RSS feed is available
if (!empty($modSettings['xmlnews_enable'])) {
echo '
<link rel="alternate" type="application/rss+xml" title="Most Recent Posts" href="', $scripturl, '?type=rss;action=.xml;limit=20" />
<link rel="alternate" type="application/rss+xml" title="News" href="', $scripturl, '?type=rss;action=.xml;sa=news" />';
// If we're in a board or topic, indicate extra RSS feeds for that board.
if (!empty($context['current_board']))
echo '
<link rel="alternate" type="application/rss+xml" title="This Board Most Recent Posts" href="', $scripturl, '?type=rss;action=.xml;sa=recent;board=', $context['current_board'], ';limit=20" />
<link rel="alternate" type="application/rss+xml" title="This Board News" href="', $scripturl, '?type=rss;action=.xml;sa=news;board=', $context['current_board'], '" />';
}

Great to hear 1.1 has more advanced RSS capabilities, maybe this little touch would be included or even configurable through admin too :)

Chris
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jbutler on May 24, 2005, 03:32:22 PM
Has anyone got this working with the Mambo bridge?

I got it running on my Mambo site, with one problem.  SMF is wrapped in Mambo, but the XML links are to the stand-alone SMF.  Can the links be adjusted to point to the wrapped SMF?

Thanks!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: culpeper on June 04, 2005, 01:35:52 AM
This works on SharpReader and My Yahoo! but not on Firefox and Thunderbird.

http://tarawa-betio.org/coulterfranken/index.php?type=rss;action=.xml;limit=20

Also at:
http://www.tarawa-betio.org/coulterfranken/

when you look at the page source you see

link rel="alternate" type="application/rss+xml" title="RSS" href="http://tarawa-betio.org/coulterfranken/index.php?type=rss;action=.xml;limit=20" />

It's missing the www before tarawa-betio.org

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: culpeper on June 04, 2005, 09:22:03 PM
The following rss feed

http://tarawa-betio.org/coulterfranken/index.php?type=rss;action=.xml;sa=recent;board=1;limit=20

Gives the following online validator error

http://www.feedvalidator.org/check.cgi?url=http%3A%2F%2Ftarawa-betio.org%2Fcoulterfranken%2Findex.php%3Ftype%3Drss%3Baction%3D.xml%3Bsa%3Drecent%3Bboard%3D1%3Blimit%3D20#l4


I suppose this is why Thunderbird and Firefox doesn't like it?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: d3v on June 11, 2005, 02:36:53 AM
My site url: www.catchmydr1ft.com/smf
RSS format that I try to use: http://www.catchmydr1ft.com/smf/index.php?action=.xml
Using SharpReader I receive:

Error parsing RSS XML: Undefined root element: xml-feed 

Link to try validation is here: http://feedvalidator.org/check?url=http%3a%2f%2fwww.catchmydr1ft.com%2fsmf%2findex.php%3faction%3d.xml

I receive the same error:
line 2, column 0: Undefined root element: xml-feed [help]

02. # <smf:xml-feed xmlns:smf="http://www.simplemachines.org/" xmlns="http://www.simplemachines.org/xml/recent" xml:lang="en-US">

RSS/XML News is enabled in the Forum Settings.

Any ideas, I'm pretty sure this is something simple that I just overlooked.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: [Unknown] on June 11, 2005, 02:40:33 AM
You're ommitting the "type=rss".

http://www.simplemachines.org/community/index.php?topic=25009.msg229536#msg229536

-[Unknown]
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: d3v on June 11, 2005, 03:13:24 AM
Thanks. Knew it was something simple.

Here's an interesting question then. My Forum name is left blank for cosmetical purposes, yet I think it's a good name to have a name for my RSS feed for users to distinguish it in their client. Is it possible to change the name of the RSS Feed while keeping the Forum's name blank.


EDIT: Actually I just read that I'm asking in the wrong forum. If possible can you please move it to the appropriate place.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: nibb on June 24, 2005, 03:35:41 AM
Well i still cannot get it to work on Thunderbird or any other reader.
I use for example the same url that Simple Machines uses for their forum wich works.
http://www.domain.com/comunidad/index.php?board=2.0;sa=news;type=rss;action=.xml

I just get invalid channel.

Is there something special i need or what?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: vipmoney on July 16, 2005, 10:20:57 AM

How can we get a RSS feed, that gives the last X posts from specific member ?

thanks !
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: xerson on August 01, 2005, 11:41:51 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.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jorgen on August 18, 2005, 12:44:14 PM
Google now supports rss in the google personilized homepage.    http://www.google.com/ig

But I cannot make http://www.simplemachines.org/community/index.php?action=.xml;type=rss2 work there.
How come?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jorgen on August 19, 2005, 05:13:27 AM
Google now supports rss in the google personilized homepage.    http://www.google.com/ig

But I cannot make http://www.simplemachines.org/community/index.php?action=.xml;type=rss2 work there.
How come?

Works now. Probably just a glitch last time I tried.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: mamboopensource on August 25, 2005, 03:53:38 AM
Would it be possible to display a RSS feed with the most recent topics for specific boards, but more than one?
I know there is the "board=" parameter, but I would like specify board numers 78, 79, 80, 81, 82, 83, 84 and 85.

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: [Unknown] on August 25, 2005, 04:19:24 AM
In 1.1, you can use boards=1,2,3,4.

-[Unknown]
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Miz on August 30, 2005, 11:25:03 AM
Hi every one. I really wanted to thak you all for this thread it really helped me out alot.

One question though... Right now my rss reads:
/index.php?type=rss;action=.xml;sa=news;limit=5

Which works fine. Displaying the topics on the main site. However it displayed the topics in the order that the toptic it self was started. Which leads to my question...

How could I write this so that I can  order those topics listed in the rss in the order of most recent post inside them?

Thanks again and any help you could offer would be greatly appreshated!
Miz
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: [Unknown] on August 30, 2005, 04:35:56 PM
That's how news works.  Try recent instead.

-[Unknown]
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: TriGrrrl on September 27, 2005, 11:11:01 AM
Is there a way that my users can get a feed for "upcoming events" from the calendar?


Thanks,

TG
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: DeadMetal on November 13, 2005, 05:12:15 AM
Quote
In 1.1, you can use boards=1,2,3,4.

-[Unknown]

... to show items from multiple boards does not work! I also used board=1,2,3,4 instead of boards=1,2,3,4 as I assume that was meant by [Unknown]

When I do board=8,4 it only shows items from 8. When I do board=4,8 it only shows items from 4.

Has this function not been implemented yet?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: LukaszP on November 14, 2005, 03:38:25 AM
Some time ago, I posted a thing on how to advertise SMF's RSS feed in certain browsers (see the Tips and Tricks topic for a link to that). However, many people are unaware that SMF even has these features. So, here's a list of available options and what they do...

First, make sure you've enabled RSS output.

Admin -> Edit Features and Options
Check the box next to "Enable XML/RSS News".
The "Maximum post length" value determines how many characters of a post are output in the feeds. The default value (255) is fine for now.

Now, on to the fun stuff.

All of the XML content is accessed via the ".xml" action... To get RSS or RSS2 out of that (not viewable in most browsers), add ";type=rss" or ";type=rss2" to that URL.

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"
Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;board=72;limit=10
Also option:
c=z  - display only the recent posts from coolapse "z"
Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;c=2;limit=10
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Azraeliitti on November 16, 2005, 08:15:01 AM
One thing is bugging me... there is no Enable RSS/XML text or checkbox in my features and options. I even used search function, opened all the mod tabs and couldn't find any match for RSS.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: houston on November 17, 2005, 10:00:34 PM
One thing is bugging me... there is no Enable RSS/XML text or checkbox in my features and options. I even used search function, opened all the mod tabs and couldn't find any match for RSS.

Niether can I locate it anywhere in 1.1 rc1
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: redone on November 22, 2005, 01:46:41 PM
To enable RSS feeds in 1.1rc:

>News and Newsletters>Settings>Enable XML/RSS news
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: houston on December 01, 2005, 03:08:22 PM
To enable RSS feeds in 1.1rc:

>News and Newsletters>Settings>Enable XML/RSS news


Thanks
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: BlackYeLL on December 04, 2005, 02:48:24 PM
Hi there, sorry for my english.

Is there still no possibilities to see member's reserved boards ?

Something like this could be great :

http://mysite/forum/index.php?type=rss;action=.xml;board=4;login=MyLogin;pass=EncryptedPass

Thank you.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on December 04, 2005, 07:57:16 PM
Not unless your RSS reader supports cookies, and you're logged in to that particular board.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: MaximusDM on December 07, 2005, 10:11:03 AM
That would be possible with .htaccess., no ?

It would be interesting to add an option to generate a feed according to various criteria chosen by the user (forums concerned, type of desired information...). This feed would be placed in a repertory protected by a file .htaccess whose user will have defined the login and password.

P.S. : sorry for my english

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: meadwench on December 09, 2005, 05:49:27 PM
::sigh:: I'm tearin' my hair out here.

- Got  >News and Newsletters>Settings>Enable XML/RSS news enabled
- got the following code in my index.template.php:
Code: [Select]
// If RSS/XML news is enabled, indicate that an RSS feed is available
if (!empty($modSettings['xmlnews_enable'])) {
echo '
<link rel="alternate" type="application/rss+xml" title="Most Recent Posts" href="', $scripturl, '?type=rss;action=.xml;limit=20" />
<link rel="alternate" type="application/rss+xml" title="News" href="', $scripturl, '?type=rss;action=.xml;sa=news" />';
// If we're in a board or topic, indicate extra RSS feeds for that board.
if (!empty($context['current_board']))
echo '
<link rel="alternate" type="application/rss+xml" title="This Board Most Recent Posts" href="', $scripturl, '?type=rss;action=.xml;sa=recent;board=', $context['current_board'], ';limit=20" />
<link rel="alternate" type="application/rss+xml" title="This Board News" href="', $scripturl, '?type=rss;action=.xml;sa=news;board=', $context['current_board'], '" />';
}

...yet *no* indication that a feed is available. The feed validated fine, I've got it loaded on the frontpage of my new Joomla site and it shows up fine. So what am I doing wrong here to get the feed info to show up on the forum page?

Forum is at http://www.gotmead.com/smf/index.php

Thanks for any input!



Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: nutn2lewz on December 17, 2005, 01:43:41 PM
I can't get my rss feed to validate. It does seem to work properly.

When I validate at: http://rss.scripting.com
I get: Undefined root element: xml-feed  2 0

Here is my feed ...
http://forums.homepokertourney.com/index.php?action=.xml;sa=news;type=rss2

This feed shows the same error ...
http://forums.homepokertourney.com/index.php?action=.xml;sa=news;type=rss

Any help would be appreciated, nutn2lewz


Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on December 22, 2005, 04:26:23 PM
I think that feed validator is broken...

When I run the URLs through feedvalidator.org, the regular RSS one is perfectly valid. The only error I get with the RSS2 one is "line 2, column 0: rss is in an invalid namespace: http://backend.userland.com/rss2". This appears to be a widespread issue as this was the default namespace for RSS2 originally. I'm looking into this issue to see what (if anything) can be done to resolve it.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on December 22, 2005, 04:38:07 PM
Ok. I did some more checking, and it turns out that the namespace attribute is optional (it's not even used in SMF 1.1), so you can safely remove it...

Sources/News.php

Find
Code: [Select]
<rss version=', $xml_format == 'rss2' ? '"2.0" xmlns="http://backend.userland.com/rss2"' : '"0.92"', ' xml:lang="', strtr($txt['lang_locale'], '_', '-'), '">
Replace
Code: [Select]
<rss version=', $xml_format == 'rss2' ? '"2.0"' : '"0.92"', ' xml:lang="', strtr($txt['lang_locale'], '_', '-'), '">
That should make the RSS 2.0 feed valid as well.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jestyr on December 27, 2005, 06:20:43 PM
same as TriGrrrl
Any chance of getting this to work for making an RSS feed for calendar events?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jestyr on December 31, 2005, 01:04:12 PM
same as TriGrrrl
Any chance of getting this to work for making an RSS feed for calendar events?
bump?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Aquilo on January 01, 2006, 04:46:55 AM
is there a Way of requesting the RSS as a logged in user?

cause we have one board that is visible to all (where no one can post)
and the rest is only for authorised users

It would be nice to have somthing like
user=username
pass=password

to get info from all boards

Ill try that one .. thanx

though it still would be nice if I could do something like user=... and pass=...
so I can use every RSS reader I wouldlike

I know it's been awhile since these posts... but you could try using PHP Curl (http://www.php.net/curl) to do this!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Ajay on January 05, 2006, 06:29:26 AM
I know RSS feeds are enabled on my forum. I can't find the setting under features and Options.

I am running 1.1RC2
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Gidget on January 08, 2006, 05:27:06 AM
I know RSS feeds are enabled on my forum. I can't find the setting under features and Options.

I am running 1.1RC2

See this post above (http://www.simplemachines.org/community/index.php?topic=25009.msg401798#msg401798)

Gidget
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: vipmoney on January 12, 2006, 04:33:20 PM

How can we get a RSS feed, that gives the last X posts from specific member ?

thanks !
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: King RoRo on January 24, 2006, 06:47:44 AM
Hello ...

thank u Mr.Oldiesmann for this important Subject

but can i ask u about something ...

in my forum when was 1.0.5 this  feuature can be able to check :
Admin -> Edit Features and Options
Check the box next to "Enable XML/RSS News".

and, when i updated into 1.1 RC this option didn't be able to found ...

but the xml/rss are enabled automaticlly on the forum in the default theme (opera/firefox)...


but in the other themes it doesn't ... and I use my own theme...

so what's i must to do or what is the code i must add to make it working on??


Best Regards


this is my Forum english Board  http://www.kingroro.com/smf/index.php?board=25.0

user : testo
pass: 123123
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Polymath on January 25, 2006, 12:18:57 AM
I enabled it. I assum it does something ::)

Is something meant to show up on the Forum?

 ;D
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: madmat on January 25, 2006, 12:20:20 PM
HI

I want to rss feed the items in our news, not whats on the boards. can anyone tell me if this is possible and how this can be done.

Cheers
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Stuart on February 04, 2006, 06:57:47 PM
This is great, thanks  ;D
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: mocax on February 07, 2006, 04:53:56 AM
it appears IE7 is unable to understand rss2 feeds.
I wonder if it's a IE7 bug or some missing tags cause it to freak out.

IE7 reads rss fine though.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: edchapman on February 10, 2006, 03:19:28 PM
How do I change the RSS number from 5 to 10?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: romano on March 22, 2006, 04:14:01 AM
Something very strange happen with my rss feed.
I put type=rss;action=.xml;sa-news and the result was the last 5 post in the board nº13 (and only this board). I try lot of thing but without sucess.
I try to  put board=10 for example and have a error (No feeds containing). Put board=13 and have the same result i have the first time .
Why the rss feed give me only the board 13? I don´t see what diferente it is from the others. I don´t have specific settings for this board.
Can someone help me please?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Chuck_HM on March 22, 2006, 10:28:53 AM
I have 1.0.6

I have rss checked in my features and options

I tried severl url's like http://www.sixmonthstolive.com/forum/index.php?action=.xml
at My Yahoo but nothing seems to be recognized as a valid sourse and I cannot send it to My Yahoo.

Do I need to upgrade to 1.1?
 If I upgrade will there be links for people to subscribe to my feed.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: thaioffroader on March 22, 2006, 11:26:15 PM
My Site : http://www.thaioffroader.net
I'm tired trying to make my forum pass Feed Validators.
My country (Thailand) use 2 languages encoding "windows-874" and "tis-620".
These 2 encoding is major problem for validating.
How should I do.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: dextrous on March 26, 2006, 04:32:44 PM
Is it possible to display news from another RSS feed on my forum?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: coolparth on March 30, 2006, 03:12:45 AM
Hello i run Mambo & Smf 1.1 RC at www.tekdi.com . I use the joomla hacks bridge.

I need to get the XML RSS feeds generated to show SMF in wrapped mode. Right now i am seeing it unwrapped by the feeds picked up by firefox.

Parth
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Stuart on March 30, 2006, 03:56:17 PM
Is there an actual possibility by using RSS / XML feeds to show on another site the last 5 or 10 posts from a specific board which also contains 5 sub-boards  ???

I really would like to use that option if available. Some people on our forum are bloggers. We would like to display the posts from that specific section (1 board with posts and 5 sub-boards with posts too) on a new website  :D

Thanks in advance for any help!

Cheers,
Stuart
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: xtremecruiser on April 01, 2006, 11:53:52 AM
http://forum.zenigata.it/index.php?action=.xml;limit=20;type=rss2

The action above displays the 20 most recent posts. Is there a way to display the 20 most recent topics?

Thanks.

How about for recent threads ? News does not work right and posts can show the last 10 in the same thread
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Stuart on April 08, 2006, 08:27:05 PM
Is there an actual possibility by using RSS / XML feeds to show on another site the last 5 or 10 posts from a specific board which also contains 5 sub-boards  ???

I really would like to use that option if available. Some people on our forum are bloggers. We would like to display the posts from that specific section (1 board with posts and 5 sub-boards with posts too) on a new website  :D

Thanks in advance for any help!

Cheers,
Stuart

/index.php?action=.xml;sa=recent;board=1.0;limit=10 is working fine but when I change the boardnumber it doesn't work anymore. All it says then:
Code: [Select]
<?xml version="1.0" encoding="ISO-8859-1" ?>
<smf:xml-feed xmlns:smf="http://www.simplemachines.org/" xmlns="http://www.simplemachines.org/xml/recent" xml:lang="nl" />

Anyone?  :-[
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: haktanir2 on April 11, 2006, 04:17:44 AM
Just a word for those who might have had problems like me having the RSS feed show up on Joomla. When I used type=rss2 at the end, that solved the whole problem.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: lukkyjay on April 13, 2006, 03:52:15 PM
I've tried all of the different combinations of url's for this site...
http://insurancerage.com/
... and can't get any of them to work.  I use my.yahoo.  Any ideas?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: gothgirrl on April 26, 2006, 10:20:09 PM
I have a rather intricate question. First the situation:

I am trying to include feeds from specific forms onto my Frontpage blocks. According to what I have been able to find on this site, they DO work as intended: http://xxone.ff-host.net/index.php?action=.xml;board=17;type=rss does give me the recent posts from that board. My site is set up into two basic categories (gaming site): World of Warcraft and City of Heroes. My board has forums for each with LOTS of subforums for each game.

What I am trying to do is get all of the recent posts for (example) the World of Warcraft forum AND all the subforums for it:
19 (main WoW board), 20, 42, 43, 44, 33, 34, 35, 36, 37, 38, 39, 40, 41, 46, 22, 23, 24, 25, 36

And then in a seperate feed to show the same type of data for CoH boards:
6 (main CoH board), 21, 28, 29, 30, 31, 32, 8, 18, 45, 9, 17, 16, 7

The site will be officially open as soon as I finish the top banner (to replace the google ad at the top) and get these feeds figured out, so any help would be appreciated! Am I going to need to write a script to gather the data from those specific boards and parse it into xml/rss or can SMF's built in functions do this for me? Thanks in advance!

Site URL: http://xxone.ff-host.net
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: haktanir2 on April 27, 2006, 01:43:35 AM
I've tried all of the different combinations of url's for this site...
http://insurancerage.com/
... and can't get any of them to work.  I use my.yahoo.  Any ideas?
For my.yahoo, it worked when I did this:

index.php?option=com_rss&feed=RSS2.0&no_html=1
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: gothgirrl on April 27, 2006, 04:21:02 AM
Just an update for anyone else who may have the same issue I do. I have found a bit of a work around, though it is rather tedious.

I used rss2html (they have a free PHP file that you can download and use to parse rss files into html formatted output, customizable html btw) and made a seperate file on the server to parse EACH forum and subforum on my site (yeah, fifty of them.. gah!), then made one file to use the WoW related ones and another to use the CoH related ones. I used a simple php-include for each file corresponding to the board that I wanted to get the recent posts from, limited to 5 per board. THEN I went into the blocks administration and made a php-block that included the file that consolidated the rss feeds from each category. There must be a better way to do this though. Although it has gotten the information on the front page just how I wanted it to show, the page's load time has increased at least twentyfold. I'm still open to any ideas you guys may have on a more efficient way to get this done.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Spirestar on May 13, 2006, 04:48:28 PM
Some time ago, I posted a thing on how to advertise SMF's RSS feed in certain browsers (see the Tips and Tricks topic for a link to that). However, many people are unaware that SMF even has these features. So, here's a list of available options and what they do...

First, make sure you've enabled RSS output.

Admin -> Edit Features and Options
Check the box next to "Enable XML/RSS News".
The "Maximum post length" value determines how many characters of a post are output in the feeds. The default value (255) is fine for now.

Now, on to the fun stuff.

First off, in 1.1 RC2, under Admin -> Edit Features and Options, there IS NO "ENABLE XML/RSS News" feature. It is completely missing.

So much for the fun stuff.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: weekend camper on May 15, 2006, 02:22:48 PM
So much for the fun stuff.

Post 47 in this very thread....   :D
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Syke on May 18, 2006, 09:44:30 AM
I just installed SMF 1.0.7 ... took several hours to figure out how to turn on rss and access it:  http://shivae.org/shivae/index.php?action=.xml;sa=news  It shows up just fine, but feed2js HATES it.  I've tried every form I've seen in this thread, including the one that was supposed to work through feed2js and it returns the same error: 

Error: No data was found for RSS feed http://www.shivae.org/shivae/index.php?board=1.0;sa=news;action=.xml;type=rss2.0 or no items are available for this feed. Please verify that the URL works first in your browser.

There is data...   is there some other program I could be using that won't cause this problem or is there something I'm not setting right on feed2js?  It has worked fine in the past for any other feed I've done.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: aw06 on May 24, 2006, 02:45:10 PM
Here's a little tip for advertising more RSS feeds. This will advertise the feeds from the board you are currently browsing as well as the main forum feeds. (I think Oldiesman will like this ;) ) Seems to work for me...

index.template.php

Code: [Select]
// If RSS/XML news is enabled, indicate that an RSS feed is available
if (!empty($modSettings['xmlnews_enable'])) {
echo '
<link rel="alternate" type="application/rss+xml" title="Most Recent Posts" href="', $scripturl, '?type=rss;action=.xml;limit=20" />
<link rel="alternate" type="application/rss+xml" title="News" href="', $scripturl, '?type=rss;action=.xml;sa=news" />';
// If we're in a board or topic, indicate extra RSS feeds for that board.
if (!empty($context['current_board']))
echo '
<link rel="alternate" type="application/rss+xml" title="This Board Most Recent Posts" href="', $scripturl, '?type=rss;action=.xml;sa=recent;board=', $context['current_board'], ';limit=20" />
<link rel="alternate" type="application/rss+xml" title="This Board News" href="', $scripturl, '?type=rss;action=.xml;sa=news;board=', $context['current_board'], '" />';
}

Great to hear 1.1 has more advanced RSS capabilities, maybe this little touch would be included or even configurable through admin too :)

Chris

How do i get this to work, im using 1.1 rc2 .. i enabled xml .. and i also added the code you have above ... but i cannot pick up a rss feed when i plug it into google/ig
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: whosyourwebguy on May 24, 2006, 02:51:56 PM
Just for anyone's information, i discovered an RSS bug this week and posted it to the appropriate board (http://www.simplemachines.org/community/index.php?topic=89185.0).

If anyone has a hack for this, feel free to share.
Otherwise I'll just wait for a revision to come out.

Thanks,

~b
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: iago23 on June 01, 2006, 11:59:30 AM
Not unless your RSS reader supports cookies, and you're logged in to that particular board.
Wow.  Huh.  Okay, I'm crushed.  I'd hoped SMF was more up to the task than I thought it was, but clearly it's not.  Cookies should never be necessary for this sort of thing; requiring them just seems silly.

I'm also disappointed that there's no built-in "make me a feed of this particular member's recent posts"; instead, it's solely board-centric.

As implemented, the RSS feature's not going to fit my board's needs at all.

Anyone have any hints as far as how to hack in the ability to a) accept on-the-URL credentials, and b) allow the most-recent-posts-from-user page to render just like any board feed would?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: iv_nik on June 07, 2006, 05:21:00 AM
Also option:
c=z  - display only the recent posts from coolapse "z"
Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;c=2;limit=10
Didn't get it.. What it does?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: iBrood on June 08, 2006, 06:04:21 AM
I wish to modify my RSS feed to show the complete posts instead of truncated ones. However, there is no such option as "Enable XML/RSS News" in my SMF 1.1RC2 control panel under "Features and Options". Please help!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: whosyourwebguy on June 08, 2006, 12:40:12 PM
Quote from: iBrood
I wish to modify my RSS feed to show the complete posts instead of truncated ones. However, there is no such option as "Enable XML/RSS News" in my SMF 1.1RC2 control panel under "Features and Options". Please help!

you can change the maximum length of the post.
a value of "0" means no limit.

go to admin --> News and newsletters --> settings
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: iBrood on June 08, 2006, 12:57:24 PM
Thanks. That does the job.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: adnan on June 15, 2006, 06:26:33 PM
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!

How ? please describe it

First, make sure you've enabled RSS output.

Admin -> Edit Features and Options
Check the box next to "Enable XML/RSS News".

I can't find this option in admin . where is Edit Features and Options ?

currently output of my rss feed is :
<?xml version="1.0" encoding="ISO-8859-1"?>
I want to change it to
<?xml version="1.0" encoding="UTF-8"?>

how ?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: 2kreative on June 20, 2006, 05:12:34 PM
Is there away to display RSS feeds....from other sites...as new topics on a designated forum with SMF?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: carlatf on June 30, 2006, 02:40:36 AM
Hi SMFers!,

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
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Noella on July 05, 2006, 06:12:08 PM
Is there a way to get feeds from a specific member only?  For example, i want to feed my recent posts but not others on the main page of the site.  Can that be done?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: BrunoVaz on July 14, 2006, 09:58:15 AM
Hi ppl:

1st of all thank you, oldiesmann, for this excelent post.
From what i see in here, there isn't a option to activate the feeds on the RC2 release.

Quote
Admin -> Edit Features and Options
Check the box next to "Enable XML/RSS News".

Can someone post a link (url) with the path to enable xml ?
Or tell me what file (and code), i have to edit to accomplish this ?

Thanks in advance.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: ivytony on July 17, 2006, 06:12:02 PM
well, in my features and option in the admin panel, I don't have the option to enable XML/RSS news.

I upgraded the forum from 1.0.5 to 1.1 RC2.

any ideas why I got no such option?

thanks
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: tthmaz on July 18, 2006, 01:49:27 AM
Brunovaz and ivytony,

in 1.1RC2, the exact location to enable xml feeds is in:

main -> news and newsletters -> settings-> Enable XML/RSS news

That should do the trick  ;D
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: ivytony on July 18, 2006, 02:21:25 AM
thanks for the help. but how to show the RSS Feed icon beside each forum name on the forum index page?

thanks again
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: nermeen_elhelw on July 20, 2006, 10:37:57 AM
please help me coz i dont understand how to do it

i enabled the xml/rss
i'm uding smf 1.1 rc2

now i want to make a rss news show on a board, can i???
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: maritimesbob on July 22, 2006, 05:15:45 PM
Using the following is working fine for my board/site

Quote
/index.php?type=rss;action=.xml;sa=news;boards=4,7,9,10,11,12;limit=20

Problem is it displays the latest topic fine, however it`s going from the very first post in that particular topic.

Changing to sa=recent only means the latest posts will be displayed. I was looking for the latest topics to be displayed. Can this be done?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: daygo140 on July 30, 2006, 03:14:52 AM
I am trying to add this to my GMAIL Web Clips but when I enter the feeds location I get, "No feed was found at the URL you provided."

What format does the URL need to be for this to work with GMAIL Web Clips?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Vyen on July 30, 2006, 07:25:55 PM
Oh-ho, man! Works like a charm!

Gotta fiddle with Carp to get it to format the way I want...but there's only one snag.

It doesn't spit out the date, time, or author.  =\ Meh!

Any suggestions?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: maritimesbob on August 01, 2006, 05:51:15 PM
I`m using Carp and for the most part it works great. Occasionally though I`m getting poorly formatted feeds when a new thread is started. This causes Carp to fail and throw out the following error `XML error: not well-formed (invalid token)`.

I looked at the lines where Carp was not happy, and for reason reason the rss has some addition funky looking characters which don`t look right. It`s a bit hit and miss now. I never know whether a newly started thread will crash my feed or not.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on August 03, 2006, 11:53:19 AM
Not unless your RSS reader supports cookies, and you're logged in to that particular board.
Wow.  Huh.  Okay, I'm crushed.  I'd hoped SMF was more up to the task than I thought it was, but clearly it's not.  Cookies should never be necessary for this sort of thing; requiring them just seems silly.

SMF doesn't support remote logins (ie passing the username and password through the URL instead of through a form) because it's extremely insecure. What other option do we have? We can't just ignore board access simply because it's a news feed.

Quote
I'm also disappointed that there's no built-in "make me a feed of this particular member's recent posts"; instead, it's solely board-centric.

Actually that wouldn't be hard to implement (see below).

Quote
As implemented, the RSS feature's not going to fit my board's needs at all.

Anyone have any hints as far as how to hack in the ability to a) accept on-the-URL credentials, and b) allow the most-recent-posts-from-user page to render just like any board feed would?

I'm sorry you feel that way, but unfortunately until someone finds a secure way to pass a username and password via the URL, SMF will not support remote logins.

As you (and several others) have requested, here's how to add user-specific "latest posts" functionality to SMF's news feeds...

1.0.x:

Sources/News.php

Find
Code: (Line 293) [Select]
global $db_prefix, $user_info, $scripturl, $modSettings, $board;
Add after that
Code: [Select]
if(isset($_GET['u']) && !empty($_GET['u']))
$_GET['u'] = (int) $_GET['u'];

Find
Code: (Line 301) [Select]
AND $user_info[query_see_board]
Add before that
Code: [Select]
" . (!empty($_GET['u']) ? " AND m.ID_MEMBER = $_GET[u]" : "") . "
1.1:

Sources/News.php

Find
Code: (Line 597) [Select]
global $query_this_board;
Add after that
Code: [Select]
if(isset($_GET['u']) && !empty($_GET['u']))
$_GET['u'] = (int) $_GET['u'];

Find
Code: (Line 604) [Select]
AND $query_this_board
Add before that
Code: [Select]
" . (!empty($_GET['u']) ? " AND m.ID_MEMBER = $_GET[u]" : "") . "
That will allow you to get a feed of a member's recent posts at /index.php?action=.xml;sa=recent;u={user_id}

Recent topics would be a bit more work, but shouldn't be too hard to add either. I'll look into that when I have more time.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Shivae on August 04, 2006, 09:12:57 AM
I installed SMF a couple of months ago and have been trying to use the RSS feed without any results... other than the usual: Your feed has no information error.  Feed2JS HATES it.  Is there a better program for feeding rss for use in a webpage?  Or is there just something wrong with bluehost?  My feed is located at: http://shivae.org/shivae/index.php?action=.xml;sa=news and it looks fine to me...
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: layer on August 08, 2006, 08:24:43 PM
i can't find the option to activate the rss.. anyone can help me? :(
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: RebelRose on August 09, 2006, 03:06:10 PM
i can't find the option to activate the rss.. anyone can help me? :(

Admin panel, new and newsletters, settings. you should see the Enable XML/RSS news (?): click to enable.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: gtron on August 09, 2006, 10:14:59 PM
since we have guest accounts disabled the feed always asks for ID & Password in Thunderbird. Is there away to display the thread by adding the id and pass to the rss url or something?? i was thinking it would look something like this.... /index.php?action=.xml;user=userid
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Charles LePage on August 10, 2006, 03:02:13 PM
I'm having a problem getting RSS, SMF and Feedburner to cooperate in one aspect.

If someone on my board puts quotes in the title of their message, the code looks like this:

Code: [Select]
<title><![CDATA[Re: Slayer - &quot;Christ Illusion&quot; ]]></title>
If I change Querystring.php to stop
Code: [Select]
" from becoming
Code: [Select]
&quot; My board won't even appear.

If I change news.php to get rid of the CDATA for "title," the RSS feed won't work, because it chokes on
Code: [Select]
&quot;
Any ideas?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: mygurlstuff on August 11, 2006, 01:26:39 PM
Nermeen ~ I'm having the same problem. Did you ever get this resolved?

please help me coz i dont understand how to do it

i enabled the xml/rss
i'm uding smf 1.1 rc2

now i want to make a rss news show on a board, can i???
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Charles LePage on August 11, 2006, 05:55:49 PM
It appears removing the CDATA tags are not an option.

Here's another example of what I'm seeing:

   
Quote
<item>
      <title><![CDATA[Re: Mike &amp; Bruce's setlists appeal to broad range of fans...casual to hardcore]]></title>

If I remove the CDATA tags for the title, Feedburner gives me the following error:

Quote
The URL you entered does not appear to be a valid feed. We encountered the following problem: Error on line 8: The content of elements must consist of well-formed character data or markup.

The question would be, then:  how do I stop SMF from turning "&" into "&amp;"?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Charles LePage on August 11, 2006, 07:35:35 PM
I found the answer!

I had to remove the following two lines in "post.php".

Quote
    // Add special html entities to the subject, message, name, and email.
    // $_POST['subject'] = htmlspecialchars($_POST['subject']);


Quote
    // Cheat and fix entities in the subject line.
    // $_POST['subject'] = preg_replace('~&amp;#(\d{4,5}|[3-9]\d{2,4}|2[6-9]\d);~', '&#$1;', $_POST['subject']);
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: mygurlstuff on August 12, 2006, 01:20:15 PM
Eeyore -

Are you referring to an RSS feed that looks like this?

Code: [Select]
<script language=javascript src="http://www.rssfeedreader.com/rss3/rss.php?url=http%3A%2F%2Fnews.google.com%2Fnwshp%3Fhl%3Den%26tab%3Dwn%26q%3D%26output%3Drss&newpage=1&chead=1&atl=1&desc=1&owncss=&eleminate=&auth=1&dts=1&width=400&max=1&tlen=0&rnd=1&bt=3&bs=Double&nmb=&ntb=&naf=&nst=&nwd=0&nht=0&dlen=0&lstyle=-1&lc=Blue&bg=White&bc=Gray&spc=&ims=1&tc=&ts=11&tfont=Verdana,+Arial,+Sans-serif"></script>
I've been trying to get this to work in my forum also. I have XML/RSS enabled and I'm on v1.1 rc2. I'm not sure if it is my template, DilberMC, that is causing the RSS feed not to show up.

Cheryl
www.MyGurlStuff.com/smf/index.php

I`m just getting a bit confused with all this..... (lol)

Can you disply RSS feeds within a forum?

eg:
if i set up a news forum could you make it that the feed would apper under a new post ?

or do i have to set it up within the news box?

Some one mentioned using a site to convert it to java scrip.... where would i post the script?

cheers
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Lew Cipher on September 01, 2006, 02:28:16 AM
I`m just getting a bit confused with all this..... (lol)

Can you disply RSS feeds within a forum?

eg:
if i set up a news forum could you make it that the feed would apper under a new post ?

or do i have to set it up within the news box?

Some one mentioned using a site to convert it to java scrip.... where would i post the script?

cheers

This is my question also. Is the RSS/XML feed only for the info in the News box or can it be set to show forum posts?

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Ajay on September 02, 2006, 11:00:56 PM
This is my question also. Is the RSS/XML feed only for the info in the News box or can it be set to show forum posts?

I use it for forum posts.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Lew Cipher on September 06, 2006, 01:38:15 AM
This is my question also. Is the RSS/XML feed only for the info in the News box or can it be set to show forum posts?

I use it for forum posts.

Out of the box, so to speak, or by using a mod?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Ajay on September 06, 2006, 11:37:18 PM
Out of the box, so to speak, or by using a mod?

Out of the box.

It should be part of your theme and DHTML news should be enabled. This thread has great information about using RSS on the forum.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: alexsbrown on September 07, 2006, 02:21:03 PM
My users have reported some uneven behavior with the RSS in SMF (on v1.1RC2). Some RSS software likes it fine, while others say it is invalid. As part of my research into their concerns, I see signs that perhaps the MIME type of the RSS is not being set for all feed formats. If I go to
http://www.simplemachines.org/community/index.php?action=.xml
A browser recognizes it as an XML MIME type, and opens it as a tree. If I go to
http://www.simplemachines.org/community/index.php?action=.xml;type=rss2
I get an offer to open or save this unknown file type for file "index.php".

I am just getting started with reading code in SMF, but is it possible that the MIME type is being set just for the default SMF XML format, but not for RSS, RSS2, Atom, and other formats? That could explain the problems some of my users are seeing. Technically an RSS feed is not valid if it is not served as an XML file type, even if the file is a correct and complete XML document in RSS format.

Sorry if this is a wild goose chase, but I am hoping it might explain some of the erratic behavior that others have seen using RSS on SMF.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: alexsbrown on September 07, 2006, 06:21:13 PM
OK, I found a little more information. The behavior I was seeing is due to a well-known problem in many web browsers. SMF is using correct content-type headers application/rss+xml, application/atom+xml, and application/rdf+xml for its different feed types. It is very common practice across the web to use text/xml as a content type for RSS feeds of all varieties, though.

You can find more about the chaos in this informative article:
http://www.petefreitag.com/item/381.cfm

I am wondering if using text/xml (even though some may argue it is not correct) might help my users get to the feeds. Because the file name is "index.php" the system cannot tell anything from the file name, so the content type is very important.

Has anyone tried overriding the content type choices in News.php? Any idea on whether this is part of the problem people are seeing? Thoughts?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: rosoner on September 10, 2006, 01:00:06 PM
is there any way to delete CDATA from rss?

What should i change?

I need this for my irc chat room
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: drummbox on September 12, 2006, 05:02:08 PM
Is there a Button which links to the RSS interface and which the user can paste into his RSS reader (Thunderbird) ? (similar to Joomla with its syndication buttons)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: alexsbrown on September 12, 2006, 07:56:51 PM
Is there a Button which links to the RSS interface and which the user can paste into his RSS reader (Thunderbird) ? (similar to Joomla with its syndication buttons)

There is code, but you need to add it. It is not there by default (except for a Live Bookmark link in the header of each page, visible only to Firefox). See this tip and trick article about the code needed to put RSS links on your boards (http://www.simplemachines.org/community/index.php?topic=37644.0).

There is also an RSS mod (http://mods.simplemachines.org/index.php?mod=376) that adds some RSS links to the main list of boards. If you want to see RSS links in other places, too, you need to go back to the article above.

Hope this helps! I am considering doing these changes to my board.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: sanax on September 15, 2006, 09:32:38 PM
I'm getting this error?... it worked well before but this error pops up lately - any suggestions?

Quote
XML error: Attribute without value at line 57
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: ideiafacil on September 16, 2006, 12:32:14 PM
Is possible make the tag in RSS <author>xxxx@xxxxx.com</author> dont write the email?
Only the name or login in <author> tag...

I really dont like make my users spam bot victim .

Thanks
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Jaryic on September 19, 2006, 03:53:31 PM
Is possible make the tag in RSS <author>xxxx@xxxxx.com</author> dont write the email?
Only the name or login in <author> tag...

Hi,

if the user has disabled to show his eMail it will not be included in the feed. So the <Author>-Tag stays empty.

If you like to have the Forumname of the Poster included, you'll have to modify the News.php:

Go down to
Code: [Select]
function getXmlRecent($rss)
look for the line
Code: [Select]
'author' => empty($row['hideEmail']) ? '[' . $row['posterEmail'].']' : null,(around line 348)

and modify it to read
Code: [Select]
'author' => '<![CDATA[' . $row['posterName']  . ']]>' . (empty($row['hideEmail']) ? ' [' . $row['posterEmail'].']' : null),
This will put
<author><![CDATA[ForumUser]]> [user@host]</author>
into the feed if mail is enabled and
<author><![CDATA[ForumUser]]><author>
if mail is off.

Greetz
-Jaryic
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: spiros on September 20, 2006, 01:48:35 AM
How can one get an icon with the board feed as is done in virtuemart forum (I use 1.1 RC3)

http://virtuemart.net/index.php?option=com_smf&Itemid=71
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: sanax on September 22, 2006, 06:10:39 PM
Hi ppl:

1st of all thank you, oldiesmann, for this excelent post.
From what i see in here, there isn't a option to activate the feeds on the RC2 release.

Quote
Admin -> Edit Features and Options
Check the box next to "Enable XML/RSS News".

Can someone post a link (url) with the path to enable xml ?
Or tell me what file (and code), i have to edit to accomplish this ?

Thanks in advance.

Good lord, why don't people READ a thread before asking a question??! This is about the fourth time someone asked the same question in the SAME thread!!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: s0me0ne on October 08, 2006, 01:57:36 PM
why are email addresses sent with the feed  :o :(

what file do i edit to remove that?

it wont be long before spammers know how to harvest email addresses from RSS feeds (if they dont already)  :-X
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Me_angus on October 15, 2006, 08:27:31 AM
I saw it mentioned early on in this thread but nobody really answered the question.

I have 4 boards that are highly private and don't need to be avaliable via RSS.

What do I need to change to make the feeds board specfic instead of having all of them go out over the wire so to speak?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: alexsbrown on October 18, 2006, 09:21:33 PM
I saw it mentioned early on in this thread but nobody really answered the question.

I have 4 boards that are highly private and don't need to be avaliable via RSS.

What do I need to change to make the feeds board specfic instead of having all of them go out over the wire so to speak?

If you use user-security to control access to the boards, then SMF will do this for you automatically. If you have three boards (board A, board B, and board C) and have a user that only has access to board B, then the RSS feed will only include board B for that user. The RSS feeds respect the user security settings.

If you are not using board security that way, you can use the "boards=" argument to create a feed for any combination of boards, to meet whatever need you have.

If this does not answer your question, please clarify what you mean by "make the feeds board specfic instead of having all of them go out over the wire so to speak".
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on October 20, 2006, 02:39:37 PM
why are email addresses sent with the feed  :o :(

what file do i edit to remove that?

it wont be long before spammers know how to harvest email addresses from RSS feeds (if they dont already)  :-X

Admin -> Edit Features and Options
Check the box next to "Hide contact information from guests" (or whatever it's called)
They can't harvest email addresses if they can't see them ;)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: spiros on October 21, 2006, 06:45:36 AM
"Do not reveal contact details of members to guests"
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Me_angus on October 23, 2006, 09:47:53 AM
OK this is the issue. when a regular member clicks on the RSS feed icon on anyboard he has access to. He also gets the feeds from my private Admin and Moderator boards even though he has no permissions on the board to see these boards.

Now What? and yes I am using the security that comes with SMF.

I saw it mentioned early on in this thread but nobody really answered the question.

I have 4 boards that are highly private and don't need to be avaliable via RSS.

What do I need to change to make the feeds board specfic instead of having all of them go out over the wire so to speak?

If you use user-security to control access to the boards, then SMF will do this for you automatically. If you have three boards (board A, board B, and board C) and have a user that only has access to board B, then the RSS feed will only include board B for that user. The RSS feeds respect the user security settings.

If you are not using board security that way, you can use the "boards=" argument to create a feed for any combination of boards, to meet whatever need you have.

If this does not answer your question, please clarify what you mean by "make the feeds board specfic instead of having all of them go out over the wire so to speak".
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: onecha on October 29, 2006, 12:45:15 PM
I have installed SMF 1.1 RC3

Reading the first message of this topic I try to do what it´s written there but in admin -> features and options I don't see anything called "Enable XML/RSS News" and nothing like that...

Could you help me?

THANKS!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: onecha on October 29, 2006, 12:51:53 PM
Sorry, I just found it by myself, It´s in News and Newsletters -> Settings

Cheers!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on November 01, 2006, 12:50:52 PM
Updated the first post to point people there for 1.1 :)

1.1 does have more available via news feeds (two more formats, ability to limit news and recent posts to specific boards or categories), but I don't want to confuse people too much, so I'll update the topic again when 1.1 goes final :)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: rebus on November 03, 2006, 07:27:20 PM
Sorry if this has been answered before, but I couldn't find it.

I would like a feed which shows the most updated topics, i.e. not the most recent topics nor the most recent posts, but the topics with the most recent posts in... don't know if I've been clear  ;)

Is that possible?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: yynwebhsu on November 10, 2006, 01:51:04 PM
Hey all

Thanks for this post and all the help you've provided, oldies!

I've read through the 10 pages but haven't seen this..

Is it possible to post the most recent Topics instead of posts?

So instead of seeing:

Topic 1
Topic 1
Topic 1

(because the last three posts were in Topic 1)

We see

Topic 1
Topic 2
Topic 3

Thanks!
Weber
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: yynwebhsu on November 11, 2006, 05:34:55 AM
bump.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Witte on November 17, 2006, 10:43:21 AM
Has anybody figured out how to get IE7 to recognize the RSS feed yet? ie: so the little icon lights up on the toolbar?

I've tried all the things on this (http://blogs.msdn.com/rssteam/articles/PublishersGuide.aspx) page but to no avail..
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on November 18, 2006, 04:47:02 PM
Yup...

http://forum.kgiii.info

How?

Edit:

/<forum_directory>/Themes/default/index.template.php

Code: [Select]

<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<LINK REL="SHORTCUT ICON" HREF="http://forum.kgiii.info/favicon.ico" />
<link rel="alternate" type="application/rss+xml" title="G³ Solutions - Forum" href="http://forum.kgiii.info/index.php?type=rss;action=.xml;limit=10">
<meta name="description" content="', $context['page_title'], '" />


The link rel isn't valid XHTML though but, bugger it, it works. Err, the shortcut bit you don't need.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: monkeyangst on November 30, 2006, 11:16:31 AM
I'm running SMF 1.0.9 (with Enigma 2.0RC1 if that matters), and before my site goes live there is one important security issue I need to resolve. The RSS feeds use the poster's email address as the <author> field. I tried, as was suggested in this thread, checking "Do not reveal contact details of members to guests" in the Admin page, but to no avail. Is there something else I'm missing? If there isn't an option to disable this, I'll have to modify the code.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on December 06, 2006, 07:03:19 PM
Yup...

http://forum.kgiii.info

How?

Edit:

/<forum_directory>/Themes/default/index.template.php

Code: [Select]

<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />
<LINK REL="SHORTCUT ICON" HREF="http://forum.kgiii.info/favicon.ico" />
<link rel="alternate" type="application/rss+xml" title="G³ Solutions - Forum" href="http://forum.kgiii.info/index.php?type=rss;action=.xml;limit=10">
<meta name="description" content="', $context['page_title'], '" />


The link rel isn't valid XHTML though but, bugger it, it works. Err, the shortcut bit you don't need.

If you properly close the tag, it will be - add a " />" at the end instead of ">". The shortcut icon code will also be valid if you make it all lowercase...

I'm running SMF 1.0.9 (with Enigma 2.0RC1 if that matters), and before my site goes live there is one important security issue I need to resolve. The RSS feeds use the poster's email address as the <author> field. I tried, as was suggested in this thread, checking "Do not reveal contact details of members to guests" in the Admin page, but to no avail. Is there something else I'm missing? If there isn't an option to disable this, I'll have to modify the code.

Sorry for the delayed response. I really should subscribe to this topic :P

Sources/News.php

Find
Code: (Line 259 and Line 348) [Select]
'author' => empty($row['hideEmail']) ? $row['posterEmail'] : null,
Replace
Code: [Select]
'author' => empty($row['hideEmail']) && (!$user_info['is_guest'] || empty($modSettings['guest_hideContacts'])) ? $row['posterEmail'] : null,
That should fix the issue.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on December 07, 2006, 06:17:50 AM
Ah hah. That'd be why it was invalid. I didn't have to make any changes to the 1.1 code for it to show up that was nice. :)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Witte on December 07, 2006, 01:28:44 PM
I'm running SMF 1.0.9 (with Enigma 2.0RC1 if that matters), and before my site goes live there is one important security issue I need to resolve. The RSS feeds use the poster's email address as the <author> field. I tried, as was suggested in this thread, checking "Do not reveal contact details of members to guests" in the Admin page, but to no avail. Is there something else I'm missing? If there isn't an option to disable this, I'll have to modify the code.

LOL, had me worried there, just looked through the whole code of news.php...you can only see peoples e-mails if you're logged in as admin :)

BTW, am on smf 1.1 and still no recognition of a feed in IE7??? should have been sorted by now...I've seen it work on other forums, but am unable to find out how it's done...it does work in firefox tho
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on December 07, 2006, 01:43:56 PM
BTW, am on smf 1.1 and still no recognition of a feed in IE7??? should have been sorted by now...I've seen it work on other forums, but am unable to find out how it's done...it does work in firefox tho

Got a link to your forum? Someone here might be able to help you.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Witte on December 08, 2006, 06:47:30 PM
BTW, am on smf 1.1 and still no recognition of a feed in IE7??? should have been sorted by now...I've seen it work on other forums, but am unable to find out how it's done...it does work in firefox tho

Got a link to your forum? Someone here might be able to help you.

yes, here (http://eunationalist.org)...but I've added the favicon thing, and have now installed the rss mod. I set the feed to be rss2, as is stated in the Microsoft blog on the issue, and it still doesn't work...I guess it's not that important now that I have the mod installed, it's just bugging me!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on December 09, 2006, 05:31:58 AM
yes, here (http://eunationalist.org)...but I've added the favicon thing, and have now installed the rss mod. I set the feed to be rss2, as is stated in the Microsoft blog on the issue, and it still doesn't work...I guess it's not that important now that I have the mod installed, it's just bugging me!

If you want to make it work (your current MOD only has individual categories) you can make it work.

Edit:

/<forum_directory>/Themes/<your theme's section as you're not using the default>/index.template.php

Code: [Select]
<link rel="alternate" type="application/rss+xml" title="EU Nationalist" href="http://eunationalist.org/smf/index.php?type=rss;action=.xml" />
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Witte on December 09, 2006, 09:49:52 AM
yes, here (http://eunationalist.org)...but I've added the favicon thing, and have now installed the rss mod. I set the feed to be rss2, as is stated in the Microsoft blog on the issue, and it still doesn't work...I guess it's not that important now that I have the mod installed, it's just bugging me!

If you want to make it work (your current MOD only has individual categories) you can make it work.

Edit:

/<forum_directory>/Themes/<your theme's section as you're not using the default>/index.template.php

Code: [Select]
<link rel="alternate" type="application/rss+xml" title="EU Nationalist" href="http://eunationalist.org/smf/index.php?type=rss;action=.xml" />

Briiliant stuff KGIII...it worked!!! thanks a lot m8 :)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on December 09, 2006, 10:00:13 AM
Briiliant stuff KGIII...it worked!!! thanks a lot m8 :)

Not a problem - you can alter/edit the text in the title field to something that suits better of course.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: sonofabit on December 11, 2006, 04:29:15 AM
hi, I cannot get my rss link to work. in ie6 it asks if I want to download index.php, and in firefox, it does load the rss page, but it will not refresh!! if I add a new post, it just shows the same damn 5 posts, even though I've set the limit to 10. this is the link to my feed:

http://www.bronctalk.com/index.php?type=rss2;action=.xml;limit=10

I've tried changing it to type=rss and reordering the parameters, all give me the same results :( any suggestions would be appreciated!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on December 11, 2006, 11:27:37 AM
http://www.bronctalk.com/index.php?type=rss2;action=.xml;limit=10

That link works, autodiscovery doesn't work. If you upgrade to IE7 and maybe Firefox 2.0 you /might/ be able to get that to work though I think it really depends on autodiscovery unless you have a dedicated RSS reader? In an earlier post (or two) I show how to get that to work with older SMF versions. With SMF 1.1 I didn't make any edits at all and it works in the default theme automagically.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: sonofabit on December 11, 2006, 03:31:45 PM
http://www.bronctalk.com/index.php?type=rss2;action=.xml;limit=10

That link works, autodiscovery doesn't work. If you upgrade to IE7 and maybe Firefox 2.0 you /might/ be able to get that to work though I think it really depends on autodiscovery unless you have a dedicated RSS reader? In an earlier post (or two) I show how to get that to work with older SMF versions. With SMF 1.1 I didn't make any edits at all and it works in the default theme automagically.

but it's not updating :( it's still showing the same old 5 posts even though several have been posted since then

-SelArom
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on December 11, 2006, 07:24:05 PM
but it's not updating :( it's still showing the same old 5 posts even though several have been posted since then

-SelArom

Quote from: The RSS Feed on Your Site
Quote from: brittanylnghrn1 on Today at 12:09:27 am
i recently just changed my major to education, but i want to be a professor. specifically math. my back-up is english :].


yay that's exactly what I wanna do! i want to teach remedial math in college!

-SelArom

All the other posts are from about that same time. What did you (or another admin - or even server administrator) do to the site at about 18 hour before I sent this? Whatever it was (maybe something to do with guest browsing though I honestly haven't a clue what would cause this - I'm not getting much from the RSS at all for results) undoing it might be a good idea.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: sonofabit on December 11, 2006, 09:56:11 PM
i am the administrator, and haven't done anything to the site other than post, at least not within the last few days. what could have caused this problem? I tried looking at the news.php file, but couldn't make any sense of it (I'm not a php programmer :() I'm still using 1.1 rc3... maybe an upgrade will fix things ?

-SelArom
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on December 11, 2006, 10:45:22 PM
i am the administrator, and haven't done anything to the site other than post, at least not within the last few days. what could have caused this problem? I tried looking at the news.php file, but couldn't make any sense of it (I'm not a php programmer :() I'm still using 1.1 rc3... maybe an upgrade will fix things ?

-SelArom

I'd certainly give it a shot. I'd also be sure to backup first of course.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: HecKel on December 22, 2006, 07:49:24 AM
Hi!

Is anyway to subscribe multiple boards in only one RSS url?

I have a big forum and some of my users want only to subscribe 4 ou 5 forums but want this with only one url...

HecKel
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: veldfire on December 29, 2006, 10:17:45 AM
Anyone figure out a fix for IE7 autodiscovery as the fix in this thread still doesn't work for me ?

TIA,
Veldfire
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: maritimesbob on January 21, 2007, 06:08:08 PM
Can any of the feed output be edited in anyway?

I`d like to remove the "Live information from Bla Bla Community Forums", which gets stuck at the top of the parsed feed.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on January 22, 2007, 04:38:40 AM
Can any of the feed output be edited in anyway?

I`d like to remove the "Live information from Bla Bla Community Forums", which gets stuck at the top of the parsed feed.

Head to:

yourdomain/forumdirectory/Themes/default/languages/Stats.english.php

All will be revealed.

Alright, well...

Code: [Select]
$txt['xml_rss_desc'] = 'Live information from ' . $context['forum_name'];

That can be altered. Backup your copy first before making any changes. (Thanks goes to the chat for helping me find that bugger.)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: goodsamaritan55 on January 25, 2007, 08:37:48 PM
HOW DO I...

Display the USERNAME of the poster?  I cannot see the USERNAME of the poster when viewing the RSS?  Although I can see the email address.  I would rather DISPLAY the username instead.

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jackj on January 31, 2007, 05:20:22 PM
I cant see the email or the member. 

Would be really nice to be able to see the member who posted the message.

Here is my page that has the feed...   http://www.northportbassclub.com/
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: goitalone on February 05, 2007, 05:59:32 PM
I till cannot get the RSS feed to work with IE6 either :( and there is no way in hell I am going to use IE7..I hate that piece of crap.

Is there another way?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: happy on February 07, 2007, 05:22:45 PM
I'm trying to use a yahoo widget that reads RSS.
Of course, cookies are probably not read so it only reads as guest.

Is there a way to make the RSS have no limitations, or have different permissions than boards? It's not that big of a deal to me for our boards if anyone can read titles, just as long as they can't go to them.

I don't want them to see the boards/titles if they go to the actual site though. Most people here won't even know about RSS and it's just an internal board. We mostly want to view the RSS browser free to more easily moderate things.

All I can get it to show is the public board and no one even posts there except me and one other moderator. It's not allowed since it's public.

I have to mention I don't really know php at all, so try and be nice if you have a suggestion for that and explain exactly where any extra code goes. Sometimes I get confused about that sort of thing.

I really wish there was a way to login from a separate rss app. That would just make it all Way easier.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: fishinsecrets on February 09, 2007, 05:03:00 PM
Let me begin by saying I am not a programmer, and know only enough HTML to get into trouble... I'm sure my question is simple, but I've not found where to change the default number of "latest posts" on the RSS feed to 20 from the standard 5... I would appreciate your help and patience... Thanks!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: fishinsecrets on February 09, 2007, 05:16:12 PM
I should add that I'm using 1.1.1.  Also, is it standard for the XML logo/link not to be visible anywhere when using IE7?  If so, how does a person get the feed?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: veldfire on February 11, 2007, 07:02:14 PM
http://blogs.msdn.com/rssteam/articles/PublishersGuide.aspx
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: ScottChapman on February 13, 2007, 11:19:52 AM
I am adding some buttons to my site to help folks add RSS feeds from my forum (SMF 1.1.1) to their home page. I am having some difficulty with live.com. My link looks like the following:
http://www.live.com/?add=http://www.scottechapman.com/smf/index.php?type=rss2;action=.xml;sa=recent;type=rss2;limit=10

However, when it gets to live.com the payload URL appears to change to the following:
http://www.scottechapman.com/smf/index.php?type=rss;action=.xml

I do not have this problem when using a payload URL for another application. However I noticed that this other application (Thyme Calendar) uses ampersands (&) between parameters in the payload URL.

Is there an easy way to fix this?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: qayyse on February 19, 2007, 12:48:26 PM
Excuses, but my English is very bad.

First I am hello, enthusiastically from this forum software, I lack only one namely bastelle I to me grad Aiax Latest box and want to ask how I can change the Feed issue of the forum. I would like to limit the title to max. 20 signs and the silly RE: weghaben. Does an idea have perhaps one for it? Many thanks in vorraus.

In German:

Hallo,

erstmal bin ich begeistert von dieser Forumsoftware, es fehlt mir nur noch eins und zwar bastelle ich mir grad ne Ajax Latest Box und wollt fragen, wie ich die Feed-Ausgabe des Forums ändern kann.

Ich möchte den Titel auf max. 20 Zeichen begrenzen und das dumme RE: weghaben.

Hat evtl. einer eine Idee dazu?

Vielen Dank im vorraus.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Matthew Schenker on February 22, 2007, 10:51:09 AM
I am still confused.  How do we increase the number of feeds to be more than 5?  When I go to

Admin > News and Newsletters > Settings

I see the following actions:
Enable XML/RSS news (?):     
Maximum post length:

So I see how to increase the length of the post, but nothing for increasing the number of posts.

The quote below seems to provide the answer, but I have no idea how to implement it!

Quote
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"
Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;board=72;limit=10

Can someone explain how I actually make this happen?

Thanks,
Matthew

 
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: rjscott on February 22, 2007, 12:29:20 PM
Hi- So a couple of folks have asked if it is possible to create a feed from the upcoming events in the calendar. I would really like to find out because I am integrating SMF with Joomla! and I would like to do away with the events module in Joomla! if at all possible. Any ideas, comments, thoughts?
Thanks
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Matthew Schenker on February 22, 2007, 02:54:57 PM
Quote
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"
Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;board=72;limit=10

Can someone tell me which php file controls the number of posts that get sent out to news feeds?

Is it Sources/news.php
Is it index.php?
Or is it something else?

Even better, could you specify which lines of that file I need to change?

Thank you,
Matthew
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on February 23, 2007, 05:11:24 AM

Can someone tell me which php file controls the number of posts that get sent out to news feeds?

Is it Sources/news.php
Is it index.php?
Or is it something else?

Even better, could you specify which lines of that file I need to change?

Thank you,
Matthew

No. No such critter really. Try...

yourdomain.tld/path to smf/index.php?action=news;sa=settings

The rest is just changing the URL for (or is it a URI?) the feeds as can be seen already in this thread.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Matthew Schenker on February 23, 2007, 09:03:40 AM
Quote
No. No such critter really. Try...

yourdomain.tld/path to smf/index.php?action=news;sa=settings

The rest is just changing the URL for (or is it a URI?) the feeds as can be seen already in this thread.

Thanks for offering to help out.  But I'm giving up on this, as I have no clue what these instructions mean!

Anyway, it looks like I'm in good company, since it appears that not many people who use SMF do news feeds either.

Thanks,
Matthew
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Vandaahl on February 25, 2007, 01:44:17 PM
How do you increase the default number of 5 newsitems of a news subscription? I know how to do it manually by adding ;limit=10 to the rss link for example, but I don't want my forum members to have to do this themselves. I want a pre-configured rss subscription link, but don't know how to do this. Any help?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Matthew Schenker on February 25, 2007, 03:21:54 PM
Quote
How do you increase the default number of 5 newsitems of a news subscription?

That's what I would like to know!  It appears that there is no easy way to do this.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on February 27, 2007, 02:41:09 PM
Ah...

index.template.php in your theme find the bit that should look like this:

Code: [Select]
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml" />';

Change it to:

Code: [Select]
// If RSS feeds are enabled, advertise the presence of one.
if (!empty($modSettings['xmlnews_enable']))
echo '
<link rel="alternate" type="application/rss+xml" title="', $context['forum_name'], ' - RSS" href="', $scripturl, '?type=rss;action=.xml;limit=15" />';

I didn't test this yet but it SEEMS like it should work. If it doesn't let us know and I am sure someone will dig into it for you.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Matthew Schenker on February 27, 2007, 04:35:00 PM
KGIII,
I made the change you suggested, but I don't notice any difference.  It still sends only 5 messages through to the news reader.

But thank you for giving it a try!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on February 27, 2007, 04:38:10 PM
Hmm... I will look to see if there are other places that need changing as well but that SHOULD have worked? I will poke around and make sure that that is the one being called. It may take a while though.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Matthew Schenker on February 27, 2007, 07:49:53 PM
Quote
Hmm... I will look to see if there are other places that need changing as well but that SHOULD have worked? I will poke around and make sure that that is the one being called. It may take a while though.

Thank you for looking into this.  I keep thinking it has to be possible to increase the number of feeds.  After all, isn't the limit of 5 something that it set in the code?  So if we find where that is set, can't we change it?  I'm not a programmer, so maybe I'm simplifying this too much!

Thanks again for your help.

I do hope you find the answer!!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Vandaahl on February 28, 2007, 10:50:09 AM
I already tried that change before you mentioned it, and it does indeed NOT work, unfortunately.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: devx on March 01, 2007, 03:41:49 PM
Not unless your RSS reader supports cookies, and you're logged in to that particular board.
Wow.  Huh.  Okay, I'm crushed.  I'd hoped SMF was more up to the task than I thought it was, but clearly it's not.  Cookies should never be necessary for this sort of thing; requiring them just seems silly.

SMF doesn't support remote logins (ie passing the username and password through the URL instead of through a form) because it's extremely insecure. What other option do we have? We can't just ignore board access simply because it's a news feed.

Quote
I'm also disappointed that there's no built-in "make me a feed of this particular member's recent posts"; instead, it's solely board-centric.

Actually that wouldn't be hard to implement (see below).

Quote
As implemented, the RSS feature's not going to fit my board's needs at all.

Anyone have any hints as far as how to hack in the ability to a) accept on-the-URL credentials, and b) allow the most-recent-posts-from-user page to render just like any board feed would?

I'm sorry you feel that way, but unfortunately until someone finds a secure way to pass a username and password via the URL, SMF will not support remote logins.

As you (and several others) have requested, here's how to add user-specific "latest posts" functionality to SMF's news feeds...


Oldiesmann, i'm wondering how feasible it is to create a hash of the username and password and use that as the url based identifying credential just to access feeds. Some suggestions posted here about username=blah&password=blah are quite horrendous in terms of security....but I totally understand what they are getting at...
I too am looking for some sort of URL based access of feeds on my fully protected board. I use a feedreader called RSS Popper which is an addon for Microsoft Outlook (it basically drops new feeds into a designated folder in Outlook). Its very primitive and has no support for cookies or form based authentication feeds.

Suggestion: md5 or SHA1($username.$password) is stored in DB...possibly new field.
So resulting auth url will be: site/smf install/protectedfeeds.php?(accepts all vars as current feed generator)&auth=hash
protectedfeed.php basically matches hash and requesting ip to user db's username,password and last logged in ip(effectively preventing the auth url from being passed around or stolen). The unique auth url should be visible to each member in their profiles or something.

Sure it would mean that the individual needs to login once so that their last logged in ip is recorded. This might be problematic for those on frequently changing ips(or a group of ppl behind a shared connection).
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: emomoney on March 01, 2007, 07:50:42 PM
I read all of the posts here and I don't think I saw the question asked that I am looking for, and if I did, I apologize.  Is there a way to exclude some boards from the RSS feeds.  I plugged the action=.xml;type=rss;limit=10 to the end of my URL and it works, but it is also displaying the recent messages from my private forums.  Obviously I do not want to people to see my private forums.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Matthew Schenker on March 01, 2007, 07:55:40 PM
Quote
I plugged the action=.xml;type=rss;limit=10 to the end of my URL and it works

I tried this in my forum and it still reports 5 messages to the news feeder!

OK, someone has got to tell me how to change this.  The setting of 5 has to be plugged into some line or lines of code somewhere, right?  Well, where in the world is it?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: emomoney on March 01, 2007, 08:10:06 PM
Quote
I plugged the action=.xml;type=rss;limit=10 to the end of my URL and it works

I tried this in my forum and it still reports 5 messages to the news feeder!

OK, someone has got to tell me how to change this.  The setting of 5 has to be plugged into some line or lines of code somewhere, right?  Well, where in the world is it?
Just make sure you don't have a typo.  The first time I did it, I added limit10 instead of limit=10 and and it only produced the default 5 results.  As soon as I added the = it worked.

As far as my original question, I was able to figure it out.  The problem was I was testing the feed from News Fox while I logged into the forum, which is why it showed me the post in the private forum.  When i logged out of the forum, it did not display the private forum message.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Matthew Schenker on March 01, 2007, 08:16:04 PM
Quote
Just make sure you don't have a typo.  The first time I did it, I added limit10 instead of limit=10 and and it only produced the default 5 results.  As soon as I added the = it worked.

So, the URL should look like this:
http://www.genericforum.com/index.php/action=.xml;type=rss;limit=10

Do members have to manually add that extra data to the URL every time they sign in?  Or am I supposed to make that the new official home page of my forum?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: goodsamaritan55 on March 02, 2007, 09:52:41 AM
Please Help!

How to display in type=rss and type=rss2 the AUTHOR NAME of the post!

If you omit type=rss on the rss url, the AUTHOR NAME is displayed!

I think it is a bug in the RSS coding, can you fix?
How do I fix it?
Is there a plugin?

For example in this forum:

Unformatted XML will SHOW the AUTHOR / POSTER
http://www.simplemachines.org/community/index.php?action=.xml;sa=recent

Formatted RSS output will NOT SHOW the author / poster!!!
http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;type=rss2
or
http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;type=rss

 
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: John Dias on March 04, 2007, 12:31:11 PM
I use the Google reader (http://www.google.com/reader/) to monitor the RSS feed of a forum based on SimpleMachines software.  When I receive the feed items, it looks like this:

Re: [Thread title]
from [Thread source, i.e. the name of the Web site]
[Body of the comment or post, with no indication of who wrote it]

The trouble with this is that I have no way of telling who wrote the post.  Even if it was known who the author is for the initial post for a thread, all of the commenters' usernames never show up.  It makes it a lot more interesting to see if a particular commenter has posted a particular comment.  But the username for each commenter is never included in the RSS feed, at least on my reader (Google Reader (http://www.google.com/reader/)).  What can I do to modify the output of the feed, so that the username of each commenter shows up?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: tsmalmbe on March 05, 2007, 03:07:45 AM
I vote for getting the name of the poster visible!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: tsmalmbe on March 05, 2007, 04:36:54 AM
A question: is the rss-client visible on the recently logged in users list as a guest? Would it be possible to have the rss-clients as a dedicated group, instead of guests? It could be based on the URL perhaps?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on March 10, 2007, 01:52:14 AM
Alright. I just checked and it works on a new installation. What I would do is go ahead and make the changes and then clear your history, cache, etc... You might even want to check with a different browser to.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: riffster on March 10, 2007, 09:40:19 PM
Good job KG III, that was the ticket. Simple clearing of the cookies, temps, after the change to the index.template.php fixed 'er right up.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on March 11, 2007, 12:15:01 AM
Excellent. *ponders making this a mod*
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: goodsamaritan55 on March 12, 2007, 05:41:10 AM
Alright. I just checked and it works on a new installation. What I would do is go ahead and make the changes and then clear your history, cache, etc... You might even want to check with a different browser to.

Are you referring to RSS displaying the AUTHOR NAME?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Philip dT on March 25, 2007, 10:52:08 AM
KGIII, You say:
Quote
Alright. I just checked and it works on a new installation. What I would do is go ahead and make the changes and then clear your history, cache, etc... You might even want to check with a different browser to.

Hallo.  I'm not exactly an expert, but I just want to make sure.  Do you mean that you altered the code of SMF in order for the author name to display too?  In other words that ???/index.php?action=.xml;sa=recent;type=rss will display the author too?

If so, how do one update your SMF-code in order for this to work?

Thanks...

 
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on March 26, 2007, 01:55:32 AM
My response was geared towards getting more than the default 5 topics to display, I am not sure what you are asking.  
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Philip dT on March 26, 2007, 03:53:47 AM
If I understand it right, "/index.php?action=.xml;sa=recent;type=rss" should display the author too.  Or is it not yet supported by SMF that the author is also displayed together with the post?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: pax on March 27, 2007, 03:04:36 AM
Quote
I plugged the action=.xml;type=rss;limit=10 to the end of my URL and it works

I tried this in my forum and it still reports 5 messages to the news feeder!

OK, someone has got to tell me how to change this.  The setting of 5 has to be plugged into some line or lines of code somewhere, right?  Well, where in the world is it?

The easiest way is to change the limit 5 in News.php in the Sources directory to the number you want.  The line you want to change is inside the function ShowXmlFeed().

Change

Code: [Select]
// Default to latest 5.  No more than 255, please.
$_GET['limit'] = empty($_GET['limit']) || (int) $_GET['limit'] < 1 ? 5 : min((int) $_GET['limit'], 255);

to

Code: [Select]
// Default to latest 10.  No more than 255, please.
$_GET['limit'] = empty($_GET['limit']) || (int) $_GET['limit'] < 1 ? 10 : min((int) $_GET['limit'], 255);

, for example.

 
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on March 27, 2007, 03:25:44 AM
pax: I like that. Prior to this I had had people change it in the template itself. Does this work and does it work 'better' than the other solution? I obviously haven't tested it but, well, if it does I will add that to my clipboard manager because this is actually a fairly oft asked question.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: tsmalmbe on March 27, 2007, 03:31:00 PM
Could someone confirm the following: when fetching the rss-urls, it is not counted as a "guest"-user, and thus not visible in the amount of guests?

Is this a design decision, and if, why? I would rather see a mod like googlebot&spider to include the top-10 rss-readers and have them added.

 
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: hypnoticstate on March 27, 2007, 11:19:37 PM
Is it possible to pull forum statistics in a rss feed ? I searched the site but come up with nothing
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Philip dT on March 28, 2007, 04:53:40 AM
Please Help!

How to display in type=rss and type=rss2 the AUTHOR NAME of the post!

If you omit type=rss on the rss url, the AUTHOR NAME is displayed!

I think it is a bug in the RSS coding, can you fix?
How do I fix it?
Is there a plugin?

For example in this forum:

Unformatted XML will SHOW the AUTHOR / POSTER
http://www.simplemachines.org/community/index.php?action=.xml;sa=recent

Formatted RSS output will NOT SHOW the author / poster!!!
http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;type=rss2
or
http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;type=rss

 

Sorry for asking this again...
Is there no way one can display the author of the post?  (I use Joomla.)  I just want to make sure.

Thanks
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: tsmalmbe on April 02, 2007, 01:31:13 AM
Can I exclude certain boards?  
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on April 16, 2007, 11:09:47 AM
Please Help!

How to display in type=rss and type=rss2 the AUTHOR NAME of the post!

If you omit type=rss on the rss url, the AUTHOR NAME is displayed!

I think it is a bug in the RSS coding, can you fix?
How do I fix it?
Is there a plugin?

For example in this forum:

Unformatted XML will SHOW the AUTHOR / POSTER
http://www.simplemachines.org/community/index.php?action=.xml;sa=recent

Formatted RSS output will NOT SHOW the author / poster!!!
http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;type=rss2
or
http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;type=rss

 

Sorry for asking this again...
Is there no way one can display the author of the post?  (I use Joomla.)  I just want to make sure.

Thanks


That will require some minor modifications. I'm at school right now, so I can't look at it at the moment, but I will look at it when I get home.

Can I exclude certain boards? 

Yes. Just append "boards=" to the query string followed by a comma-separated list of all the boards you want to include (.../index.php?action=.xml;type=rss;boards=1,2,3 would display a feed of the appropriate content from boards 1, 2 and 3).
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on April 17, 2007, 02:06:25 PM
Ok. Did some more checking on the RSS/RSS2 author issue.

The poster's name is not shown because there is no RSS tag to support this. Instead, SMF sends the poster's email address in the <author> tag (used to specify the email address of the author - see http://www.w3schools.com/rss/rss_tag_author.asp), assuming you can see the email address.

Firefox doesn't show the author details when you're previewing the feed, but if you do a "view source", you should see it in there.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: goodsamaritan55 on April 25, 2007, 11:24:25 AM
Is there a work around possible for this RSS/RSS2 shortcoming?

How about SMF reposting the author name on the body of the post?
How about posting the author name in place of the email address in the <author> tag?

Lots of people enjoy reading new posts on RSS on say google reader but it comes up short because they don't know who the author is until they click the link to the actual post!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on April 25, 2007, 02:05:36 PM
Is there a work around possible for this RSS/RSS2 shortcoming?

How about SMF reposting the author name on the body of the post?
How about posting the author name in place of the email address in the <author> tag?

Lots of people enjoy reading new posts on RSS on say google reader but it comes up short because they don't know who the author is until they click the link to the actual post!

I did some more research on this issue... The example given in the official RSS specification (http://www.rssboard.org/rss-specification (http://www.rssboard.org/rss-specification)) shows the author's name in parentheses following the email address. Since they do it, there's absolutely no reason why we can't do the same :)

Sources/News.php

Find
Code: (Lines 548 and 654) [Select]
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'],
Replace
Code: [Select]
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'] . ' (' . $row['posterName'] . ')',
I'll mention it to the developers as well so we can get it done for 2.0 as well (I doubt they'll have a problem with it since it's such a minor change).
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: ShuriLeopard on May 03, 2007, 10:43:37 AM
Another newbie with a silly question.

I've had no problem getting the feeds thanks to the instructions on this board.  I couldn't get the feed to display the way I wanted using Expressions Web, so I used Feedroll.  It displays great, but it doesn't update.  If you click on the feed icon, you get an updated feed.  It just doesn't update on my site.  The webpage where it's displaying is www.warriorpages.com.  The feed is: http://www.warriorpages.com/forum/index.php?action=.xml;sa=recent;board=22.00;type=rss.  Any help would be great.  Thanks.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on May 03, 2007, 11:12:07 AM
Try www.rss2javascript.com
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: ShuriLeopard on May 04, 2007, 10:46:39 AM
Thanks!   :D  I guess feedroll was the problem.  This interaction between the forum and the main site is great.  I'm very excited about the possibilities.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: milord on May 06, 2007, 03:05:50 AM
Try www.rss2javascript.com
Thanks for the tip!
Youre awesome!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: kriskd on May 28, 2007, 12:09:57 PM
My forum is closed to guests.  I read back and it appears that an RSS feed won't work for forums such as mine that are closed to guests.  Is that correct?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on May 29, 2007, 09:06:48 PM
They will only be able to access RSS feeds when/if they are logged in. RSS only gives the information available for the user level of the person pulling those feeds.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: kriskd on May 31, 2007, 08:55:57 PM
They will only be able to access RSS feeds when/if they are logged in. RSS only gives the information available for the user level of the person pulling those feeds.

Would it be possible that version 1.1 RC2 would still display the feed even though it's closed to guests versus version 1.1.2?  I ask because my forums that are closed to guests behave as you say, but I know of an SMF forum running 1.1 RC2 which is also closed to guests where you can still get access to the feed as a guest.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on June 01, 2007, 12:32:05 AM
I don't think that is possible UNLESS the caching for authentication is there. In other words - they should HAVE to be enabled the appropriate permissions to access any feeds that they do access.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Broot on July 04, 2007, 11:06:27 AM

SMF doesn't support remote logins (ie passing the username and password through the URL instead of through a form) because it's extremely insecure. What other option do we have? We can't just ignore board access simply because it's a news feed.
Oldiesmann, i'm wondering how feasible it is to create a hash of the username and password and use that as the url based identifying credential just to access feeds. Some suggestions posted here about username=blah&password=blah are quite horrendous in terms of security....but I totally understand what they are getting at...
I too am looking for some sort of URL based access of feeds on my fully protected board. I use a feedreader called RSS Popper which is an addon for Microsoft Outlook (it basically drops new feeds into a designated folder in Outlook). Its very primitive and has no support for cookies or form based authentication feeds.

Suggestion: md5 or SHA1($username.$password) is stored in DB...possibly new field.
So resulting auth url will be: site/smf install/protectedfeeds.php?(accepts all vars as current feed generator)&auth=hash
protectedfeed.php basically matches hash and requesting ip to user db's username,password and last logged in ip(effectively preventing the auth url from being passed around or stolen). The unique auth url should be visible to each member in their profiles or something.

Sure it would mean that the individual needs to login once so that their last logged in ip is recorded. This might be problematic for those on frequently changing ips(or a group of ppl behind a shared connection).
+1

I would really like to be able to read all the new posts through rss with an authentification. So putting the md5 of the password in the URL seems to be a fine solution for me. And I don't worry to have to build a page to let all users compute the md5 of their password.

Couldn't it be simply implemented ? I'm already using this on another website and it's working fine, most users understanding quite easily the concept of computing the md5 of their password and using it in the URL (in fact, we automatically generate the URL they have to use, to be sure they won't get confused in any way).

And wether it is or not a security leak to transmit the md5 in plain text just for rss feed (which are really very limited in the number of article it is possible to see) should be (from my point a view) a decision of the administrator of the board.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: phexchanger on July 07, 2007, 07:55:48 AM
Since I do not know where to find what RSS feed my SMF forum is using, I tried using Google Reader and it fetched the URL for me showing this form

http://forum.domainname.com/index.php?type=rss;action=.xml

I first tried entering the versions posted on the first post of this thread
a) http://forum.domainname.com/index.php?type=rss2;action=.xml
 &nbsp; &nbsp;http://forum.domainname.com/index.php?type=rss;action=.xml

When I entered said URL on my browser, I saw my email address.
1. Is there a way that, instead of the email address, it will dispaly the username of the poster?
2. What file should I alter and what code to place?

The atom version is working fine for it displays the username

b) http://forum.domainname.com/index.php?type=atom;action=.xml

3. How will I alter the code such that readers such as Google Reader will read/fetch b) as the default feed instead of a)


If items 1 and 2 is solved then item 3 is not a problem anymore. Thanks :)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Andre N on July 14, 2007, 04:28:42 PM
My mission is to get a feed with 5 random posts from board x. Not the last 5 in a random order, but any 5. I don't see a way to do this by modifying the feed url, so what do I need to change in news.php?

Thanks!

Edit:

Nevermind, got it! In /Sources/news.php I changed

Code: [Select]
ORDER BY t.ID_FIRST_MSG DESC
to
Code: [Select]
ORDER BY RAND
and

Code: [Select]
ORDER BY m.ID_MSG DESCto
Code: [Select]
ORDER BY RAND
and

Code: [Select]
ORDER BY m.ID_MSG DESCto
Code: [Select]
ORDER BY RAND
and it works like I wanted. The database does the randomization
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: lexhair on July 19, 2007, 11:01:33 AM
I find my RSS2 feed defaults to an excerpt rather than full text. Is that consistent with everyone else? Version 1.1.1.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: lexhair on July 24, 2007, 11:14:18 AM
I find my RSS2 feed defaults to an excerpt rather than full text. Is that consistent with everyone else? Version 1.1.1.
Never mind. Found the setting on the Admin panel.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: GaMerZ on July 29, 2007, 09:29:51 AM
Hi all,

I would like to ask is it possible to have rss feed for the topics only and not the replies to the topics?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: hersh006 on August 13, 2007, 07:27:10 PM
Also option:
c=z  - display only the recent posts from coolapse "z"
Example: http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;c=2;limit=10


This is interesting. Any other undocumented features? I would love it if you told me that you could limit it to a single topic.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: hersh006 on August 13, 2007, 07:28:55 PM
Hi all,

I would like to ask is it possible to have rss feed for the topics only and not the replies to the topics?

try sa=news

Unless I misunderstand your question.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: aquayle on August 31, 2007, 12:09:48 PM
Only getting RSS feeds from the Forum Announcements category on our forum (which enyone can see) all other categories you have to log into the forum to see and are not sending out news - any ideas
thanks Andy
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on September 21, 2007, 07:59:29 PM
Only getting RSS feeds from the Forum Announcements category on our forum (which enyone can see) all other categories you have to log into the forum to see and are not sending out news - any ideas
thanks Andy

If you want to see feeds from boards that guests can't see, you'll need to use something that supports cookies (such as Sage or one of the other RSS reader extensions available for Firefox).

Otherwise you'll just need to decide what you want to be visible to guests.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: en_shua on October 17, 2007, 12:12:10 PM
Is there a work around possible for this RSS/RSS2 shortcoming?

How about SMF reposting the author name on the body of the post?
How about posting the author name in place of the email address in the <author> tag?

Lots of people enjoy reading new posts on RSS on say google reader but it comes up short because they don't know who the author is until they click the link to the actual post!

I did some more research on this issue... The example given in the official RSS specification (http://www.rssboard.org/rss-specification (http://www.rssboard.org/rss-specification)) shows the author's name in parentheses following the email address. Since they do it, there's absolutely no reason why we can't do the same :)

Sources/News.php

Find
Code: (Lines 548 and 654) [Select]
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'],
Replace
Code: [Select]
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'] . ' (' . $row['posterName'] . ')',
I'll mention it to the developers as well so we can get it done for 2.0 as well (I doubt they'll have a problem with it since it's such a minor change).

I had done this in my SMF 1.1.3 board, and was getting the author beautifully in my RSS feeds.  Then I upgraded to 1.1.4.  It quit working.  I looked in news.php, and it appears that either the upgrade changed it back, or I did a restore or something.  Anywho, I had to make the changes again.  Unfortunately, even though I've made those changes again, I do not get the author in my feeds.  Any ideas?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Aileen on October 24, 2007, 07:30:49 AM
IS there an RSS FEED that shows the list of the boards only?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KGIII on October 24, 2007, 08:26:19 AM
IS there an RSS FEED that shows the list of the boards only?

Not that I've been able to find. So far.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: matstone on November 18, 2007, 03:23:17 PM
Wow, that's alot of reading.
Thanks everyone for their imput, I managed to get an rss feed working using this code/link:
Code: [Select]
http://fishinfanatics.com/EasyAngling/index.php?b
oard=29.0;sa=news;type=rss;action=.xml

My problem now is that I would like to get more than one board showing in that same feed and can't seem to get it working.
I have tried adding another board a few different ways shown below and can't get more than one board to show, any ideas where i'm going wrong?:
Code: [Select]
1st try:
http://fishinfanatics.com/EasyAngling/index.php?board=29.0, 26.0;sa=news;type=rss;action=.xml
2nd try:
http://fishinfanatics.com/EasyAngling/index.php?board=29, 26;sa=news;type=rss;action=.xml
3rd try:
http://fishinfanatics.com/EasyAngling/index.php?boards=29.0, 26.0;sa=news;type=rss;action=.xml
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Sybille Yates on November 30, 2007, 06:41:53 PM
Can I exclude certain boards? 

Yes, I read the answer (and btw I read the whole thread from a-z and page 1-12 ;-), but frankly I have no clue what this answer means, can somebody please explain to me in easy words how I can exclude certain boards completely? I run a forum which is wide open, except 3 boards, admin, moderators and a private group, my ideal solution would be to exclude rss feeds from this three boards completely, not displaying the rss button at all for this boards (google is watching you ;-) How can it be done? Thanks a bunch! SY
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: matstone on December 04, 2007, 08:36:51 PM
Can I exclude certain boards? 

Yes, I read the answer (and btw I read the whole thread from a-z and page 1-12 ;-), but frankly I have no clue what this answer means, can somebody please explain to me in easy words how I can exclude certain boards completely? I run a forum which is wide open, except 3 boards, admin, moderators and a private group, my ideal solution would be to exclude rss feeds from this three boards completely, not displaying the rss button at all for this boards (google is watching you ;-) How can it be done? Thanks a bunch! SY

The way I understand it; People will only see what they have permissions for.
Correct and slap me if I'm wrong.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Sarge on December 14, 2007, 05:36:32 AM
I run a forum which is wide open, except 3 boards, admin, moderators and a private group, my ideal solution would be to exclude rss feeds from this three boards completely, not displaying the rss button at all for this boards

Log out of your admin account and try visiting those feeds as a guest. Can you see them?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Robi052 on December 14, 2007, 02:56:54 PM
Why cannot in rss see author tag?

http://www.mojportal.com.hr/forum/index.php?type=rss;action=.xml
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Deaks on December 16, 2007, 05:39:18 PM
moj do you still need help
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Robi052 on December 17, 2007, 10:16:42 AM
moj do you still need help

yes
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: falguni1 on December 23, 2007, 03:53:25 AM
I was not knowing of this.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: B.SkiLLs on December 24, 2007, 12:11:25 PM
Any fix to this below problem yet ??

it is on the user feed issue's: see URL below (it will be the top post should be the one im talking about.. where you can get feeds from like when you are logged in but to a feeder or even a normal browser feed

http://www.simplemachines.org/community/index.php?topic=25009.msg985759#msg985759

here is my post about it from another thread ( sorry for duble posting but this is badly needed and i did not see or find this thread when i posted mine where i did


-------------------------------------------------

my post / issue is below ( recopied )

-------------------------------------------------


Hi, everybody.

I have recently came up with this issue has i have been checking out different widgets for RSS feeds and i am having an issue with them and i am wondering if any one can help me out on this one with an answer or a fix or maybe some ideas on how to get it to work.

The problem is that i found the coolest best RSS feed widget after looking at a bunch of them, well the widget only picks up the (so called ) 'not logged in' posts and updates.

It does not fetch the posts that like when you are logged in. It only picks up what the public sees and not what registered users see like when you are logged in for each new post.

Is there a way or a certain URL to enter into it so that it picks up all the updated posts like if you was logged in ???

See cause obviously guest can not see the members post and cant even see them in the  Latest Post: section at bottom.

All i am looking for and trying to do is to have my feeds pick up the member posts to and not just the posts that everybody can see.

I am the admin there so. I want to be able to see the new member posts and the open forum posts all in my RSS feeds.

The widget itself allows me to put any and every URL in that i need. but cant seem to get it to work ( i cant do it either with like normal browser type RSS feeds.

Any body can help me out would be much appreciated. with any ideas or answers

Thanks :)




PS~
i hope that was understandable.. lol :P
kinda hard for me to describe what i am talking about


Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on January 19, 2008, 09:31:09 PM
That is more of a problem with your rss thing. Your only option would be to modify the appropriate function in news.php to make it set "$user_info['query_see_board']" to 1, which will make smf load stuff from all the boards. Other than that, you could just use one that's integrated with your favorite web browser, such as Sage for Firefox.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: 1stAngel on January 24, 2008, 12:35:26 PM
THANK YOU for the first post... works brilliantly!! :D
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: dimkar on February 08, 2008, 02:16:13 AM
Hi,
I am wondering why simple machines RSS feeds not appearing on Internet Explorer as they do on Mozilla Firefox.
Other RSS feeds (especially RDF) do appear in IE in XML format, SMF feeds just show the unknown type thing

try
 www.simplemachines.org/index.php?action=.xml;type=rss2

When type is added then IE complains.
Any ideas?
Is it somehow the header of the XML? I have noticed some differences between Simplemachines and other Rdf feeds.

Thanks in advance
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Sarge on February 08, 2008, 02:52:02 AM
try
 www.simplemachines.org/index.php?action=.xml;type=rss2

Try http://www.simplemachines.org/community/index.php?action=.xml;type=rss2
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: dimkar on February 08, 2008, 03:28:41 AM
The same. It opens an unknown file type window.
Only on IE (version 6 - 7)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Sarge on February 08, 2008, 03:31:07 AM
Looks fine on IE7 here.

Can you post a screenshot?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: dimkar on February 08, 2008, 03:37:49 AM
try http://metataxeis.gr/index.php?action=.xml;type=rdf
and http://www.in.gr/RSS/feed.asp?FeedSelect=FirstPage

the first one doesn't appear (SMF 1.1.4) the second one appears.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: dimkar on February 08, 2008, 04:08:55 AM
I found the problem , it should be"  elseif ($xml_format == 'rdf') header('Content-Type: text/xml;..."
because in other case it misconfuses IE.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Sarge on February 08, 2008, 05:31:36 AM
Tested and confirmed for RDF. Other feeds work fine on my IE 7.0.5730.11 and MSXML 6.0.1200.0 (Post-SP1).

I filed a bug report.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Nick I on February 10, 2008, 02:31:26 PM
The default feed is the 5 most recent posts:
http://www.simplemachines.org/community/index.php?action=.xml

Opera doesn't recognise this as an RSS feed - it just displays the raw text and doesn't give the option to subscribe to it.  Any one know how I get it to treat this as it would a downloaded xml  rss feed file?

Ignore this!  I worked it out at last.  I think I need redaing lessons!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: dimkar on February 10, 2008, 02:47:22 PM
In News.php the header should be changed into "text/xml" if you want rss/rdf feeds appear on IE. Firefox doesn't have any problem.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Nick I on February 10, 2008, 03:18:08 PM
Other than accessing the database or using trial and error, how do you find out what number a particular board is?  I can't see this in the Boards sectionof the admin panel.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on February 21, 2008, 01:30:22 AM
Other than accessing the database or using trial and error, how do you find out what number a particular board is?  I can't see this in the Boards sectionof the admin panel.

In the URL for the board, the board ID is the part between "board=" and ".".
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: algo_man on February 22, 2008, 07:21:47 AM
Answer me, please. Why iGoogle reads RSS feeds of closed to guests boards. I deleted all the cookies, and passwords are changed, but iGoogle continues to read, though other RSS-readers (NewsFox) show blank page.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Sarge on February 22, 2008, 07:48:03 AM
Why iGoogle reads RSS feeds of closed to guests boards.

Why do you think iGoogle can read restricted feeds?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: algo_man on February 22, 2008, 08:06:27 AM
Why do you think iGoogle can read restricted feeds?
I have done an experiment. I closed all the boards for the guests, closed guests access to the forum, erased cookies, even changed my password, closed Firefox, opened Firefox, and then copied the url of RSS feed, and added it to my iGoogle. iGoogle read new messages from the forum and displayed them on the screen.
I use SMF 1.1.4.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Sarge on February 22, 2008, 08:12:48 AM
Did you log out of your account before trying that?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: algo_man on February 22, 2008, 08:16:11 AM
Did you log out of your account before trying that?
   
Yes, of course. Try it yourself.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: algo_man on February 22, 2008, 08:23:45 AM
I understood. Google took data from the cache. Now RSS-feed is working correctly.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: drummond_consult on February 25, 2008, 03:40:14 PM
I am new to SMF and have been setting up my new forum.  (Version1.1.4) I would like to have topics posted by a RSS feed.  However, I am getting nowwhere.  I have uploaded and trying to use the "Feed Poster Configuration" mod but this is not working either. I also have enabled XML/RSS news in the settings.  Yet I simply cannot get any RSS feeds to post to a board.  Can you please give me step-by-step instructions? 

These are the errors I am getting when I try differnt things...

http://todd-drummond.com/forum/index.php?action=feedsadmin;sa=editfeed2 
8: Undefined offset: 20
File: /home/toddd0/public_html/forum/Sources/Subs-RSS.php
Line: 141

 http://todd-drummond.com/forum/index.php?action=feedsadmin;sa=editfeed2 
8: Undefined offset: 20
File: /home/toddd0/public_html/forum/Sources/Subs-RSS.php
Line: 141

 http://todd-drummond.com/forum/index.php?action=feedsadmin;sa=editfeed2 
8: Undefined index: id
File: /home/toddd0/public_html/forum/Sources/FeedPoster.php
Line: 264

http://todd-drummond.com/forum/index.php?action=feedsadmin;sa=editfeed2 
8: Undefined offset: 20
File: /home/toddd0/public_html/forum/Sources/Subs-RSS.php
Line: 141
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: humbleworld on March 01, 2008, 09:35:21 PM
Can I burn a feed for every board using Feedburner?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: ArrayInteractive on March 13, 2008, 02:35:01 AM
Brilliant feature! I'm pulling an rss feed of my recent topics and it works like a charm!

I was all set to go database hacking to create my own feeds, glad I discovered it's actually a built in action! In fact it seems like everything I think I need to hack into the forum, it either already does it, or someone has built a mod for it.

Best forum app ever!

Thanks folks!

Now off to find some banner serving mods...
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: humbleworld on April 07, 2008, 11:34:47 PM
May I know where I can edit the RSS? Should it be in index.php? or news.php? I'm sorry I don't get the instruction here. Thank you.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on April 08, 2008, 12:32:19 AM
May I know where I can edit the RSS? Should it be in index.php? or news.php? I'm sorry I don't get the instruction here. Thank you.

All of the feeds are handled by functions in Sources/News.php.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: humbleworld on April 08, 2008, 01:23:52 AM
Thanks OldiesMann. I'll check this out.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jmanpa on April 15, 2008, 10:56:38 AM
Anyway to get the next x calendar entries?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: 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
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Lavarinth on May 06, 2008, 03:14:43 PM
Hi there- I used RSS2HTML to come up with the following page:
http://www.campaigncreations.org
Which uses the following feed:
http://www.campaigncreations.org/forum/index.php?action=.xml;board=8;limit=20;type=rss2;sa=news

(Link to RSS2HTML: http://www.rss2html.com/ )

However if you look on the result of the feed, no author is displayed. Instead of just says "Campaign Creations Staff Member."

I read the following post in this thread:
http://www.simplemachines.org/community/index.php?topic=25009.msg1068731#msg1068731
Which stated changes to make to get this to work, in I believe, 1.1.3

And then read the following from another member:
http://www.simplemachines.org/community/index.php?topic=25009.msg1277150#msg1277150
He upgraded to 1.1.4 and the changes no longer function. I have attempted to perform the same function and had the same result of it not showing anything.

Are the any edits to the code that we could perform that would work to display the author?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: poveyjo on May 13, 2008, 03:54:05 AM
Lavarinth, I also just tried making that change to get the author to display.  I'm on 1.1.5 so I thought perhaps it might work in that.  But no luck...

So I too, would like a solution to this problem if anyone has some ideas....
 Thanks
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on May 13, 2008, 07:06:23 PM
In 1.1.5, SMF uses cdata_parse() on the poster name for another format, so it's likely that CDATA tags were added in 1.1.4...

So...


Sources/News.php

Find
Code: (Lines 548 and 654) [Select]
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'],
Replace
Code: [Select]
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'] . ' (' . cdata_parse($row['posterName']) . ')',
That should fix the issue.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: poveyjo on May 14, 2008, 03:48:53 AM
Mmm, thanks for this Michael, but unless I'm doing something wrong, it doesn't seem to work for me.

Here is my feed: http://www.peakbagging.co.nz/forums/index.php?action=.xml;board=64;limit=20;type=rss2;sa=news

and here's my line 548 and 654:

'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'] . ' (' . cdata_parse($row['posterName']) . ')',

Cheers, Jon
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on May 14, 2008, 10:52:48 AM
Can you send me your copy of Sources/News.php?

I just tried this on my SMF test board and it worked fine (the author shows up in the code, though I couldn't get Thunderbird, Google or Yahoo to actually display the author).
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on May 15, 2008, 10:24:41 AM
Looked at the file that you emailed me and it looks fine. However, I didn't think of something before... Do you have the "Do not reveal contact details of members to guests" setting enabled? If so, the author won't be shown at all if you're viewing the feed as a guest (which, in most cases, you will be).
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: poveyjo on May 16, 2008, 04:19:10 AM
Mmm, well I found that setting, and it was checked, so I unchecked, saved it and tried again.... but still it doesn't show the poster.  And I was sure that would be the cause to!

I'm using Firefox to view the feed.  Does the author show in Firefox for you?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Lavarinth on May 22, 2008, 05:37:28 PM
In 1.1.5, SMF uses cdata_parse() on the poster name for another format, so it's likely that CDATA tags were added in 1.1.4...

So...


Sources/News.php

Find
Code: (Lines 548 and 654) [Select]
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'],
Replace
Code: [Select]
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'] . ' (' . cdata_parse($row['posterName']) . ')',
That should fix the issue.

Thank you so much, this worked out perfectly. I personally cut it down to
Code: [Select]
cdata_parse($row['posterName'])
only, hoping this wont pose an issue, since I didn't want the e-mail to show up either way.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: poveyjo on May 22, 2008, 09:41:31 PM
Just in case anyone else has the issue I was having, it looks like you also have to have "Allow users to hide their email from everyone except admins?" unchecked to get the author to show.

Not ideal for me, so I've chosen not put the author in the feed, as I'd rather allow my members to hide their email if the want.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: fredda88 on May 25, 2008, 11:32:13 AM
What do i have to edit to get the date posted along with my news on my frontpage?

www.digitalsat.nu
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: MarChelo on May 29, 2008, 07:26:24 AM
Can I feed the news with some feeder different than my SMF forum? By example a Blog or something...

Thank you
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: yourlocal3 on June 17, 2008, 03:07:35 AM
Hi I want to have the rss feed use a specific topic and use the 10 msg that are most recently posted to it as the feed. Here is how I modified it.

 http://www.yourlocal3.com/forums/index.php?action=.xml;sa=recent;topic=2.0;limit=10

will it work?
Thanks
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: rodrigosoares on July 23, 2008, 08:24:51 AM
Hello, is there a way to show only posts from the last week ?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: H on July 25, 2008, 11:06:47 AM
Hello, is there a way to show only posts from the last week ?

Not by default. The nearest thing would obviously be the recent posts. Why do you specifically need this feature?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Low on August 15, 2008, 10:20:36 AM
I see the same bunch of people on hear thanklesly helping everyone day after day. Thank you.

I have SMF 1.1.5 installed with a few mods, just checked my IE feeds button and I'm getting the last 5 posts. Does this mean it's already been implemented into SMF or do I still have to mod some stuff?

Thanks
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: benderxr on August 23, 2008, 10:59:41 AM
Is there any way of making a feed to show whos online??
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Simple Machinist 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.... 
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: c3lt1957 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  :)
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.diy-pc-fix.com%2Fwp-content%2Fuploads%2F2008%2F12%2Fsig4pcfix.jpg&hash=98d34a23da8e7dd962c70d4605410bff) (http://"http://www.diy-pc-fix.com")
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: dWhite on November 01, 2008, 10:51:08 AM
Awesome! Thanks for this Oldies! :D
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: LoGraYThS 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?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: 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.

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: 1stAngel on December 15, 2008, 01:04:52 PM
THANK YOU!!!  This article was so useful :)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: alexred 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?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Ricky. 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.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: 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.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jglonek on December 24, 2008, 11:58:02 AM
Anyone have any ideas for this? :(
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Ricky. 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.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: mgk on December 29, 2008, 02:24:34 PM
Is RSS2 easy enough to work with or is it a lot of nothing?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jay.clark 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?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Elhcay 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?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: agbattery on March 23, 2009, 03:59:07 PM
Great info!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: mcrat 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 (http://net.tutsplus.com/videos/screencasts/how-to-build-a-super-duper-news-scroller/#more-3569) 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/
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: BdS on July 04, 2009, 07:10:23 AM
I also want to change the info that my RSS shows. I want two things:


I have 1.1.8 version, anyone can help me? thanks you
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: DAB Empire 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?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on October 07, 2009, 01:15:35 PM
So what input are they using for their rss2html.php page?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: DAB Empire on October 07, 2009, 01:17:58 PM
http://www.accurateshooter.com/forums/index.php%3ftype%3drss;action%3d.xml;board%3d12196
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on October 07, 2009, 01:20:10 PM
I believe what they need is http://www.accurateshooter.com/forums/index.php?type=rss;action=.xml;board=12196;sa=news
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: DAB Empire on October 07, 2009, 01:29:00 PM
Cool, I think that did it.  I added the encoded ;sa%3dnews and it worked.  I'll have them confirm.  Thanks!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: dalgic on October 08, 2009, 06:40:28 AM
I cannot open a topic in this section, why is that?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on October 08, 2009, 11:20:29 AM
Because only posts from other sections that are tips and tricks get moved here by moderators.

If you have a question about an existing tip/trick, post it in the thread concerned.

If you have a new tip/trick, please post in SMF Coding Discussion and one of the moderators (perhaps me) will move it after checking it out.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: ArrayInteractive on October 15, 2009, 01:35:35 PM
I was hoping to be able to restrict a feed based on approved posters. Is there a way to limit by user?

sa=news;u=1 ?

I noticed a hack back on page 6, but was hoping there would be a more modern solution or new functionality. Obviously I tried adding u=X but that didn't work.

Thanks.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on October 15, 2009, 02:46:14 PM
Not without modifying the underlying code, no. You'd have to modify the database query that gets posts.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: ArrayInteractive on October 15, 2009, 05:46:55 PM
Hmmm, that doesn't sound sooo hard  ;D

Thanks, I'll have a poke around...
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: joho on October 16, 2009, 09:02:04 AM
It would be nice with a parameter like xboard and xboards, where I could include ALL boards EXCEPT those listed in either xboard or xboards.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Paracelsus on October 19, 2009, 06:15:29 PM
About this, is there some expiring issues with this feature? I usually have lots of problems with the RSS that restricts to new topics (sa=news) showing frequently no messages at all or just one or two (with no forced limit). However this happens only in certains boards, for instance, board 1 on my forum (and then ruins also the general rss for the whole forum) but it works perfectly for other boards. ???
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: humbleworld on October 26, 2009, 07:02:41 AM
Can the MOD make this topic sticky?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on October 26, 2009, 07:39:08 AM
Can the MOD make this topic sticky?

No, because by definition we'd have to make every topic in this board a sticky.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Garou on October 26, 2009, 11:14:55 AM
Hey that's what notifications are for anyway. It makes it easy to find threads you want to remember kinda like a bookmark. Just click the notify button at the bottom of the thread and then go to http://www.simplemachines.org/community/index.php?action=profile;area=notification to find it later.

Also you get the added bonus of getting emailed every time something new is posted here. Its much better then a sticky. :)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: humbleworld on October 30, 2009, 04:09:08 PM
Thanks Garou. You have a strong point there. Cheers!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: NoobDeveloper on November 13, 2009, 10:14:51 PM
hi
my RSS is working fantastic.

the only problem is , in 5 RSS feeds, it shows comments to.
I want only topic name posted in any board to appear in RSS.

how to do that ?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Paracelsus on November 16, 2009, 07:40:22 AM
hi
my RSS is working fantastic.

the only problem is , in 5 RSS feeds, it shows comments to.
I want only topic name posted in any board to appear in RSS.

how to do that ?

Add this to the RSS link:
Code: [Select]
;sa=news
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: MultiformeIngegno on November 16, 2009, 09:21:38 AM
Recent Posts (displays the most recent posts that you can see)
Hi! If I try to add this type of SMF feed in Google Reader or Feedburner, I receive errors... for example the link:
http://www.simplemachines.org/community/index.php?action=.xml;sa=recent;board=1;limit=10

Feedburner says:
Quote
The URL does not appear to reference a valid XML file. We encountered the following problem: Unknown feed format encountered (The root element is [Element: <smf:xml-feed [Namespace: http://www.simplemachines.org/]/>])
In the browser I can see it properly... so why doesn't it work with these services..? :(
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on November 16, 2009, 10:40:24 AM
lorenzone92: add ;type=rss to the end of the URL.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: MultiformeIngegno on November 16, 2009, 02:14:24 PM
lorenzone92: add ;type=rss to the end of the URL.
Thanks!!
Is there a way to display only the first post of each topic?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on November 16, 2009, 02:21:39 PM
Also add ;sa=news to the end of the URL for that as mentioned about 4 posts up.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Elhcay on November 18, 2009, 09:35:53 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.

What about displaying the most recent topics on SMF2 RC2? This method doesn't seem to work any more.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on November 18, 2009, 09:42:30 AM
What's wrong with using sa=news in the URL for getting most recent topics only?

(Note that that tip was written nearly 5 years ago)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Elhcay on November 18, 2009, 07:46:01 PM
Perhaps the code has changed since RC1, as it's not displaying the latest topics (with some missing) after applying the mod on getXmlNews($rss).
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on November 18, 2009, 07:53:41 PM
Especially since that code given was for 1.1.x 5 years ago and the code is different and has been different for some time.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Elhcay on November 19, 2009, 06:05:54 PM
I changed one of the lines to, and things are working now
ORDER BY m.id_msg DESC
or
ORDER BY t.id_last_msg DESC

It was t.id_first_msg, I suppose.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on November 19, 2009, 06:46:36 PM
That also changes how the results are ordered though...
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Elhcay on November 20, 2009, 06:40:59 AM
That also changes how the results are ordered though...
That is precisely the purpose of changing it. ;) To get it to show the latest replied topics. Otherwise, there's no need to do anything.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: MultiformeIngegno on November 28, 2009, 10:26:08 AM
And how to change the feed <title>?

I've tried replacing in Sources/News.php all the:
Code: [Select]
<title>', $feed_title, '</title>
...with my custom title but it shows the forum title as before!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: juliegreen on December 02, 2009, 07:25:22 PM
can we add a copyright notice for those who publishing our content via rss?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: www.patlakhaber.com on December 17, 2009, 01:46:46 AM
Thanks thanks thanks super share ..

Is there such as blogger wonder smf
 max-results = 100 & start-index = 101

rss xml action?

OR

As blogger
max-results = 100 & start-index = 101

Do you have a link like this smf
rss xml action?
 
blogger url;

atom.xml?max-results=500&start-index=501
atom.xml?max-results=500&start-index=1001
atom.xml?max-results=500&start-index=1501

turkish;

acaba smf de de bloggerdeki gibi bu şekil bir xml site haritası linki varmı?

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on December 17, 2009, 02:33:06 AM
index.php?action=.xml;type=rss;limit=100

There's no start-index type parameter though, but generally you don't push historical data through RSS.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: bchangia on December 23, 2009, 06:37:06 AM
Hi I am facing a small problem, and don't know how exactly the rss is working here.

Can somebody help me please?

Code: [Select]
techfreak.in/smf/news/?action=.xml;type=rss is the feed link but the posts in the feed has an invalid link.

All the posts in the feed redirects to the following link and not to the original post.
Code: [Select]
techfreak.in/smf/index.php/$1.html$2
How can I fix this?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on December 23, 2009, 06:39:32 AM
So, what mods do you have installed?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: airric00 on December 30, 2009, 12:36:39 AM
Why doesn't this have a link to the RSS feed source?   Anyway to get that to post an auto link to the source?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on December 30, 2009, 06:19:24 PM
Why doesn't this have a link to the RSS feed source?   Anyway to get that to post an auto link to the source?

Not sure I understand your question...?

There is a link to the RSS feed in the footer of the forum if RSS is enabled... this tip just allows you to tweak it to be more specific.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on January 06, 2010, 08:22:31 PM
poolhall: Not without some code changes to News.php IIRC.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on January 07, 2010, 01:38:06 AM
Not huge, but very carefully written ones.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: derby on January 12, 2010, 11:31:00 AM
please how do i make recent topics on my forum show on my signature using Feeds???
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on January 12, 2010, 11:35:13 AM
You will need a third-party service like FeedBurner to create a signature image for that.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: derby on January 12, 2010, 11:59:50 AM
You will need a third-party service like FeedBurner to create a signature image for that.
I GOT THIS CODE BUT STILL NOT WORKING
<a target="_blank" href="http://feeds.feedburner.com/~r/Derbhotjobs/~6/1"><img src="http://feeds.feedburner.com/Derbhotjobs.1.gif" alt="DerbHotJobs.Com" style="border:0"></a>
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on January 12, 2010, 12:23:28 PM
On your own forum you can put it in using the [html] bbcode, or you will need to convert it to bbcode.

Fortunately that process is pretty simple, and the result is:
Code: [Select]
[url=http://feeds.feedburner.com/~r/Derbhotjobs/~6/1][img alt=DerbHotJobs.com]http://feeds.feedburner.com/Derbhotjobs.1.gif[/img][/url]
The result is:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffeeds.feedburner.com%2FDerbhotjobs.1.gif&hash=96f64767feb9a8d13e517dba6649d6c3) (http://feeds.feedburner.com/~r/Derbhotjobs/~6/1)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: derby on January 12, 2010, 12:31:18 PM
On your own forum you can put it in using the [html] bbcode, or you will need to convert it to bbcode.

Fortunately that process is pretty simple, and the result is:
Code: [Select]
[url=http://feeds.feedburner.com/~r/Derbhotjobs/~6/1][img alt=DerbHotJobs.com]http://feeds.feedburner.com/Derbhotjobs.1.gif[/img][/url]
The result is:
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffeeds.feedburner.com%2FDerbhotjobs.1.gif&hash=96f64767feb9a8d13e517dba6649d6c3) (http://feeds.feedburner.com/~r/Derbhotjobs/~6/1)
thanks
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: WTW on February 10, 2010, 09:45:50 PM
OK... here goes...

I've been trying all sorts of things for about two weeks now, and I'm just about insane as a result...
I've read as much as I can possibly take in from all the pages in this topic, and haven't come across the solution, so I'm just gonna ask....


I would like to display the last 10 posts from within a single board (starting with the most recent at the top - as displayed in the forum), to be displayed in an RSS feed on an external site. (board 1)

Sounds simple enough, right?

WRONG.

I have tried every relevant extension mentioned in this topic, yet EVERY time I type or paste the thing into feedburner, or feedvalidator, or even the software I'm using to make the external website's RSS reader... I get a result back saying it's an invalid file because it's a webpage, not a .xml file.

Even the bog standard index RSS fedd URL doesn't show up as valid.

I've tried RSS, I've tried RSS2, I've tried neither, I've tried specifying boards, I've tried specifying post amounts, I've tried having .xml at the end, I've tried pretty much anything relevant that I can think of and I'm getting nowhere.

I don't even see a .xml file for the forum in my ftp directory.

I tried writing my own .xml file aswell, which works, I have to manually add each topic and re-upload the .xml file to my server.

Is there a solution to this?

Is there a URL that WILL validate?
Is there a command/call I can put into my .xml file to add the last 10 posts from a specific board in my forum and display them?

Does it make a difference if the forum doesn't accept registrations?
Does it make a difference if only the admins on the forum can POST and EDIT in that particular board?
Does it make a difference if "guests" can "view" that board?
'cos that's how my forum's set up, and I assume, since guests can view it, the RSS readers should be able to?

What am I doing wrong?

Is it something unbelievably simple?

Can SOMEBODY please give me a solution to this problem before I tear all my hair out?!


THANK YOU!


 :o ??? :-\
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on February 11, 2010, 02:39:03 AM
Can you throw me a link to the page you're trying to use please?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: WTW on February 11, 2010, 09:18:07 AM
I assume you mean the board I'm trying to get the feed from?


http://www.wtwfed.com/forums/index.php?board=1.0


fingers crossed you can help....
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on February 11, 2010, 09:27:33 AM
It's not visible to guests at all, and shows a login page, which is why you get an invalid feed.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: WTW on February 11, 2010, 09:31:10 AM
Ah.

I thought it may be something like that..

how do I set it up so guests have access to the index without logging in?

Guests have access to the boards I'm trying to feed from, which I thought was enough, but now that you mention that, it wouldn't make sense if a barrier is hit at index...

I've looked to see if I can locate where to give guests access to the index, but can't find it...
I know I'll be looking in the wrong place... any ideas?

 ::)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: WTW on February 11, 2010, 10:05:33 AM
Sorry to bump. recieved a notification of a reply, but nothing's showing  ??? :o
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on February 11, 2010, 12:36:54 PM
Yeah, sorry about that, I was out arranging my dad's funeral - you were notified of the above reply because the mail queue seems to be backed up.

It's been fixed now.

http://www.wtwfed.com/forums/index.php?action=.xml;type=rss2;board=1 -> feed for recent posts in that board
http://www.wtwfed.com/forums/index.php?action=.xml;type=rss2;board=1;sa=news -> feed for recent topics in that board
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Garou on February 11, 2010, 11:21:43 PM
Sorry to hear about your dad Arantor. :(

WTW, In the board permissions set the board so guests can view it, and under the user permissions for guest make sure that guest for post and reply are not checked.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on February 12, 2010, 04:16:46 AM
Thanks, Garou.

When I first looked, it seemed as though either guests were not allowed to browse the forum (instantly nukes RSS), or that board was off limits. Given the way it was handled, it seemed like the former.

Now I look again the board is off limits (again) or guests are no longer allowed to browse the forum (again).
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: MultiformeIngegno on February 12, 2010, 07:51:29 AM
Sorry to hear about your dad Arantor. :(
Same for me, really. :(
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Raul Malik on February 23, 2010, 11:55:13 PM
Hello,

I would like the FEED to have only the New Topics Created and NOT the replies that are posted to the earlier posts, is there a way to do it.

Thanks
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: MultiformeIngegno on February 24, 2010, 01:28:46 AM
funindia I've asked the same thing, 1 or 2 pages ago you can find the reply.. :)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on February 24, 2010, 07:04:20 AM
Or even read the OP, it's listed in there, about how to add ;sa=news to the URL...
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Aramaki on March 18, 2010, 05:29:44 AM
How do I create an rss for closed board which is visible to one membergroup only with Google Reader?

with this url I get all the posts instead of empty

http://my_site/forum/index.php?action=.xml;sa=recent;board=35;limit=10;type=atom
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on March 18, 2010, 05:56:14 AM
Basically, you don't. There's no way to generate a feed from SMF that can be authenticated except by a regular member account. Either make the board open to guests or find a method of having Google Reader authenticate itself as a regular user.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Aramaki on March 18, 2010, 06:42:04 AM
Either make the board open to guests
Unacceptable

or find a method of having Google Reader authenticate itself as a regular user.

that's what i'm asking. any ideas about that?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on March 18, 2010, 06:47:02 AM
Not without rewriting substantial parts of SMF.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Aramaki on March 18, 2010, 07:56:26 AM
any way to pass login|password within url?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on March 18, 2010, 07:56:48 AM
any way to pass login|password within url?

No because that's incredibly insecure.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: cozmeister on April 08, 2010, 12:35:20 PM
Can the Upcoming Calendar events be read with any of the syndication methods SMF has?  What I'm after is an RSS URL I can hand out and display in an RSS reader on my website showing users what events are upcoming. 
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: numus on April 21, 2010, 09:06:39 AM
Simpleportals is capable of doing this, but is there a way to conver tit to rss for WP integration
Recent posts but only the most recent post PER topic.. Right now i get all recent posts, but they could be 3 posts to 1 topic since those are the newest
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on April 21, 2010, 09:07:34 AM
So you want the last post in each topic by topic, or do you want new topics as they appear?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: numus on April 21, 2010, 09:46:24 AM
So you want the last post in each topic by topic, or do you want new topics as they appear?
Simpleportal does it best but i cant figure out how they do it to create my own rss..
I want it to list the newest (more recent/last post) but only 1 per topic.. So if i have 3 posts that are newest in Topic XYZ, and the 4th newest post is in topic ABC and the 5th in DEF, it would show:
Most recent XYZ
Most Recent ABC
Most Recent DEF

Then if someone posts in DEF it will show
Most recent DEF
Most Recent XYZ
Most Recent ABC

but will only show 1 post per topic

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on April 21, 2010, 09:50:07 AM
You'd best ask them. However I don't think you can easily make that fit the RSS system since I think they use a direct SQL query to get it (which means it's an overhaul of the RSS code to fit that it)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Nickyy on April 22, 2010, 09:32:10 AM
I have 2 RSS problems I can't solve if someone could help please.
I'm using SMF v1.1.11

1. I would like the output state the author's name of the post, no e-mail. for example:
hxxp://mysite.com/forum/index.php?action=.xml;limit=10;sa=forum_name;type=rss
I have read this post reply #125 http://www.simplemachines.org/community/index.php?topic=25009.120
but my News.php is so different than what is posted, I can not figure out which part to change so that the RSS feed states the Author's name.
I have pasted the contents of my News.php here hxxp://pastebin.com/dey5TKjJ

2. I do not want any Members list to be available to any feeds, to public at all.
I notice that anyone can view members names in RSS feed, then click on the name to view their profile using this URL:
hxxp://mysite.com/forum/index.php?action=.xml;sa=members;type=rss2
I do have 'View Members' turned off for all groups but Admins and Mods
Would I just remove an entire section in the News.php?

Thank you
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Magestickown on April 25, 2010, 12:11:01 AM
Can I make this, or something similar into a HTML code so it displays on a page and not as a RSS feed?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on April 25, 2010, 04:42:26 AM
For that you'd use a PHP page and the SSI functions, e.g. ssi_boardNews and ssi_recentTopics to output HTML.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Magestickown on April 28, 2010, 06:37:50 AM
For that you'd use a PHP page and the SSI functions, e.g. ssi_boardNews and ssi_recentTopics to output HTML.

Thanks! :)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: LoGraYThS on May 11, 2010, 03:16:24 PM
Don't know if has been asked before and I think that with the options that are shown in the first post it's not possible but it worths the effort on asking this:


I want a feed that publishes the topics that had become "hot topics" when they reach enough replies so I can send them to twitter and facebook (that's already working great with new topics).


Is it possible?


Thank you in advance.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jay.clark on June 08, 2010, 01:42:07 PM
Excuse me if this is already well known, however I have been through every message here as well as doing the searches and looking in the on line manual.

The answer is probably staring me in the face but am simply too dumb to see it.

Most of the material in this topic is about extracting information from SMF and putting it into a RSS feed. I have that part pretty well covered.

What I am trying to do is kinda the reverse.  I have a couple of news feeds that get updated manually. What I am looking for is a way that each time a new item is added to one of these feeds that it be added as a topic in a specific forum.

I can do something like that using ad manager, and obviously I can do it as a manual process whenever I add something to the feed.

What I am looking for is a patch or a mod with the functionality that will snatch the new item from the feed and start a new topic in the board associated with that feed.

Am I overlooking the obvious yet again?  Or is this something that cannot currently be done?

Thanks in advance

jayr
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on June 08, 2010, 01:54:27 PM
Take a look through the mod site for the RSS feed posting mods.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jay.clark on June 08, 2010, 03:13:18 PM
Take a look through the mod site for the RSS feed posting mods.

<sigh> I seem to have a finely developed knack for overlooking the blindingly obvious, I will try VBGamers mod, I  have several from him and they are all good
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: knightofdoom on June 10, 2010, 06:25:23 AM
Thanks for sharing m8  :)

Blogs
--------------------------
www.hulosoft.com (http://www.hulosoft.com)
forum.hulosoft.com (http://forum.hulosoft.com)

cheers
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jasonnjon on June 10, 2010, 06:35:29 AM
Thanks
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jay.clark on June 10, 2010, 08:35:17 AM
Question on getting the RSS feed, I can make this work as long as the forum is open to guests, but it fails when you have to be logged in to the SMF site to be able to read the particular board I am interested in.

Is there some way of adding a log in string to the request so that I can set up a dummy ID that has rights to read a particular board, and add the account particulars, for the dummy ID, to the request string for the RSS feed ?

The only other answer that I can see is making the board available to guests which is not something that I want to do.

jayr
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on June 10, 2010, 10:38:53 AM
The only other answer that I can see is making the board available to guests which is not something that I want to do.

This is what you'll have to do without rewriting large parts of SMF.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jay.clark on June 10, 2010, 01:03:07 PM
This is what you'll have to do without rewriting large parts of SMF.

Oh Well ...

My personal philosophy is that you can usually get at least 80% of the desired effect with only 20% of the effort.

Every once in a while mother nature, of course, bytes me on the ass. 

Lemme tell you what I am attempting to do. 

I use the rss/xml feature to extract specific boards from my site and post them on the top page of other boards.  So far so good.

I installed SMFHacks RSS poster the other day, and now I can post extracts from my news feeds into specific boards, again so far so good (or it will be as soon as I figure out how to make the images come across as well)

I live in Vegas and we get a lot of visitors, yesterday I met with someone who is running an SMF based system with very similar content to mine.

We both have the same problem, lots and lots of visitors, very few posters. And it takes posts to get posts.

I told him that I thought it was possible for posts from my system to show up on his system and vice versa by using the RSS/XML features.

I allow guests access to my forums, he does not. When I tried it out last night I could get posts to "echo" on his system, but could not get posts from his system to "echo" on mine.

<sigh> Great Idea while it lasted

jayr
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Rusconipepparoni on June 13, 2010, 06:27:51 PM
Could I somehow make it a pretty URL? For example using a domain forward so it could be rss.mysite.com? Thank you
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: PurpleCrow on June 15, 2010, 11:19:49 AM
How exactly do I change it so that it shows the last say, 20 posts instead of just 5?

Sorry if this has been covered... I'm using SMF 2.0 RC3
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: hachik0 on June 16, 2010, 08:38:26 AM
would it be possible to have these XML feeds from other sites, and get automatic new topics created in a board that i have specified in SMF. That way, i will have a board inside my forum, that is auto updated on content from other sites' XML. Is that possible? how to make it work? thank you.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: dior1 on June 16, 2010, 09:13:30 AM
Hi, I´ve running the forum within my intranet but I´m not able to but the rss into outlook or easydeskticker.

my request:
http://175.21.50.126/dokuwiki/forum/index.php?type=rss;action=.xml

When I open it in IE it shows me the xml file and format rss version 0,92. with the topics within.

in the reader it gehts: no items found in the rss

what could be wrong?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Gryzor on June 29, 2010, 06:01:53 AM
How exactly do I change it so that it shows the last say, 20 posts instead of just 5?

Sorry if this has been covered... I'm using SMF 2.0 RC3

Look at the first page, it's covered there! :)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: cyoc on July 08, 2010, 03:56:49 AM
I'm having a problem on my forum (forum.cyoc.nl) with RSS , it's returning an XML error instead of the feed:

XML Parsing Error: no element found
Line Number 1, Column 1:

I found a post that suggested to disable compression but that didn't solve my problem. The forum is running 1.1.11, any suggestions?

[edit]   I can't post the complete error, I get the message that I'm not allowed to post external links...  ::)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: cyoc on July 28, 2010, 08:18:40 AM
It seems to be a browser related issue, nog problems when I use FF, the error only occurs in IE (7.6001 is the only one I tested so far)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jay.clark on July 29, 2010, 09:56:04 AM
How to get RSS feed from sites that require you to be logged in to read forums?

Ok, I am using the RSS feed from my sites to create content that I can add to other sites in various formats.

Any one else who wants to do this is welcome to send me a note and I will share my methods, if enough people are interested I will write it up as an application note and share it here.

These methods only work if the particular forum I want to capture content from has guest access (IE I don't need to have an account on the system that I am pulling content from)

Another (friendly) site that I would like to pull content from requires log in to be able to read the forums. So my process cannot pull content from them.

It seems to me I should be able to add userID passWord information to the string I use to connect to the forum's RSS feed and as long as my account on the target system is in good standing be able to pull content from that system.

Anyone have thoughts on how the string should be structured ? That is how do I add userID and passWord information to the string requesting the RSS feed?

If I have my head where the sun never shines is their any other way to accomplish this ?

jayr

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: colorexperts on July 30, 2010, 02:43:35 AM
it was really helpful post! thanks a lot for sharing..
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jampada on August 01, 2010, 06:16:15 AM
Thanks for sharing    ::) :P
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Dzonny on August 04, 2010, 05:59:53 AM
I cant find a way to work this out. feedburner report error with xml:
Quote
The URL does not appear to reference a valid XML file. We encountered the following problem: Unknown feed format encountered (The root element is [Element: <smf:xml-feed [Namespace: http://www.simplemachines.org/]/>])
Link that ive added:
http://www.samo-opusteno.info/forum/index.php?action=.xml;sa=news;board=50;limit=10

Anyone can point me out what problem is? :)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: metro on August 08, 2010, 04:58:55 PM
I have the same problem Dzonny -- in the past I once had it worked this out but forgot how I did it. I wil be hoping someone know the answer.

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Paracelsus on August 09, 2010, 02:25:44 AM
I cant find a way to work this out. feedburner report error with xml:
Quote
The URL does not appear to reference a valid XML file. We encountered the following problem: Unknown feed format encountered (The root element is [Element: <smf:xml-feed [Namespace: http://www.simplemachines.org/]/>])
Link that ive added:
http://www.samo-opusteno.info/forum/index.php?action=.xml;sa=news;board=50;limit=10

Anyone can point me out what problem is? :)

Try adding ;type=rss to the end of that link.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: metro on August 09, 2010, 02:48:25 AM
adding ;type=rss  did not help feedburner as it does not like seeing html

The URL does not appear to reference a valid XML file. We encountered the following problem: Unknown feed format encountered (The root element is [Element: <html [Namespace: http://www.w3.org/1999/xhtml]/>])
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Paracelsus on August 09, 2010, 04:18:02 AM
adding ;type=rss  did not help feedburner as it does not like seeing html

The URL does not appear to reference a valid XML file. We encountered the following problem: Unknown feed format encountered (The root element is [Element: <html [Namespace: http://www.w3.org/1999/xhtml]/>])

Well, I use a link similar to the one you posted with ;type=rss included for new topics in my forum and it works flawlessly, so it must be something with your forum, not with feedburner.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Paracelsus on August 09, 2010, 04:19:47 AM
adding ;type=rss  did not help feedburner as it does not like seeing html

The URL does not appear to reference a valid XML file. We encountered the following problem: Unknown feed format encountered (The root element is [Element: <html [Namespace: http://www.w3.org/1999/xhtml]/>])

As a matter of fact, I've just created a test feed on feedburner for your forum and look:

http://feeds.feedburner.com/Samo-opusteno-PoznateLinosti
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Dzonny on August 09, 2010, 05:20:04 AM
Paracelsus, working now as i can see... :)
Just metro's site is not the one that u added at feedburner - its mine. :)
metro, can u leave a link to your forum here?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: metro on August 09, 2010, 09:30:42 AM
Paracelsus

what is the url you used in feedburner to make it work?

thanks
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Paracelsus on August 10, 2010, 02:46:50 AM
Paracelsus

what is the url you used in feedburner to make it work?

thanks

This one:
http://www.samo-opusteno.info/forum/index.php?action=.xml;sa=news;board=50;limit=10;type=rss

But Dzonny said this is his forum link, not yours, we need to know the link to your forum first.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: metro on August 10, 2010, 03:23:35 AM
Thanks   Paracelsus

I guess yours works because your forum is open - you do not have to register to see it.. mine you do - however in the past I had a feed that worked somehow.

No that is not entirely correct - my feed does still work - in a newsreader you can get the XML fine  but not feedburner. I used your link an it worked but when I put in my site URL no go as it see it as a html page
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Paracelsus on August 10, 2010, 03:52:58 AM
Thanks   Paracelsus

I guess yours works because your forum is open - you do not have to register to see it.. mine you do - however in the past I had a feed that worked somehow.

No that is not entirely correct - my feed does still work - in a newsreader you can get the XML fine  but not feedburner. I used your link an it worked but when I put in my site URL no go as it see it as a html page

If your site forum is closed to visitors then feedburner won't work as it (feedburner) receives info as visitor, that's why.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jay.clark on August 10, 2010, 12:11:53 PM
I am still trying to figure out the string required to log into a SMF system and do a scoop of an RSS feed for a specific forum.  Everything works fine when the forum I want to get an RSS feed for is readable by guests.

However when you have to be a member in order to read the forum, my code does not work. I figure that I have to add a userID and passWord to the string but I am clueless as to how to do this.

Can anyone help me out?

Thanks in advance - JayR
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Paracelsus on August 10, 2010, 03:16:08 PM
I am still trying to figure out the string required to log into a SMF system and do a scoop of an RSS feed for a specific forum.  Everything works fine when the forum I want to get an RSS feed for is readable by guests.

However when you have to be a member in order to read the forum, my code does not work. I figure that I have to add a userID and passWord to the string but I am clueless as to how to do this.

Can anyone help me out?

Thanks in advance - JayR

Can this be done? Never heard of such thing...
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Pillas on August 21, 2010, 06:53:07 AM
Is it possible to have RSS public? Because rss irc bots etc can't authenticate anywhere to get the rss data. So is it possible to view the rss without logging in?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Dzonny on August 22, 2010, 07:27:00 AM
Is it possible to have RSS public? Because rss irc bots etc can't authenticate anywhere to get the rss data. So is it possible to view the rss without logging in?
No, except if you open your forum for guests, then rss can be viewed by those bots.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Frantix on September 19, 2010, 04:13:59 AM
Thanks for the info... I'm working on trying to integrate without changing from SMF, even though it seems it would be easier.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Neol on September 19, 2010, 07:30:02 AM
Is there any way to get only the new opened topics and not the new posts in a topic?!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Neol on September 19, 2010, 05:24:40 PM
Is there any way to get only the new opened topics and not the new posts in a topic?!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oya on September 19, 2010, 06:04:48 PM
put ;sa=news in teh url

and please dont bump in less than 24 hours in future everyones a volunteer here
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: TheMortician4 on September 20, 2010, 01:58:40 AM
Okay, I am confused, where do I enter or add these lines like:

"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
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oya on September 20, 2010, 08:51:25 AM
in teh url

http://yourforum.com/index.php?action=.xml;type=rss;limit=100;board=1 for example
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: TheMortician4 on October 20, 2010, 01:49: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...

First, make sure you've enabled the feeds:

Admin -> News and Newsletters -> Settings
Check the box next to "Enable XML/RSS News".
The "Maximum post length" value determines how many characters of a post are output in the feeds. The default value (255) is fine for now


I enabled this RSS feed in the Admin Sections, excuse my ignorance as I am still learning how to do this stuff, but could you explain to me step by step how to get this to work? As I am apparently not getting the grasp of how to set up a feed for the site.

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 (http://en.wikipedia.org/wiki/Atom_(standard))
;type=rdf - RDF (http://en.wikipedia.org/wiki/Resource_Description_Framework)
;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!

EDIT: Updated post to reflect options available in 1.1.
EDIT again: Fixed typo (";type=rss - RSS 2.0" -> ";type=rss2 - RSS 2.0" - thanks to Sarge (http://www.simplemachines.org/community/index.php?action=profile;u=48405) for pointing that out)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: TheMortician4 on October 20, 2010, 02:58:21 PM
How do I feed the board news or recent topics to a forum?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: TheMortician4 on October 22, 2010, 05:11:53 PM
I am getting this error 


XML error: Not well-formed (invalid token) at line 1
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oya on October 22, 2010, 05:15:47 PM
that's because as per your other topic, the board is not available to guests and throws up a login form instead of the rss feed
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Paran0ia on November 04, 2010, 11:30:44 AM
Not unless your RSS reader supports cookies, and you're logged in to that particular board.
Wow.  Huh.  Okay, I'm crushed.  I'd hoped SMF was more up to the task than I thought it was, but clearly it's not.  Cookies should never be necessary for this sort of thing; requiring them just seems silly.

SMF doesn't support remote logins (ie passing the username and password through the URL instead of through a form) because it's extremely insecure. What other option do we have? We can't just ignore board access simply because it's a news feed.

I know I'm quoting an old-old post, but it looks like it still hasn't been changed. Encryption is the way to do it: there needs to be a feature where you can click on 'get rss url' or something along those lines and be given a unique url with something along the lines of 'index.php?action=.xml;type=rss&user=Paran0ia;passkey=1645f6gs52df46a139e3460c6baca990'

Is this something that has been considered/has been added/will be added/could be considered? To go 5 years and still not address an issue that's been brought up by customers repeatedly seems... well, stupid.

And I apologize a million times over if this issue has been resolved, but I'm a regular user, and I'm having a darn hard time finding it. There needs to be a non-cookies way to view your RSS feeds.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: TheMortician4 on November 05, 2010, 02:06:09 PM
that's because as per your other topic, the board is not available to guests and throws up a login form instead of the rss feed

Well I have resolved the guest view issue.


Now the question comes down to this....If I want to feed this board URL to say facebook. How do I do that?

Board url (guest viewable): http://www.bbiclan.com/forum/index.php?board=1.0

and feed to the page: http://www.facebook.com/pages/Body-Bags-Included-Clan-Fan-Page/149224221787491?v=wall
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oya on November 05, 2010, 06:21:44 PM
you use something like twitterfeed to check the feed and repost

the feed url http://www.bbiclan.com/forum/index.php?action=.xml;type=rss;sa=news;board=1 (like the information in the first page of this thread)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: TheMortician4 on November 06, 2010, 04:48:59 PM
I copied and pasted that feed into the URL, and got this error still....


XML error: Not well-formed (invalid token) at line 1


Where am I going wrong here?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oya on November 06, 2010, 05:50:39 PM
i don't get that error, looks like correct xml to me (rss is an xml format)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: TheMortician4 on November 07, 2010, 01:04:55 PM
i don't get that error, looks like correct xml to me (rss is an xml format)

That is where I am lost...!!! I don't get what I am doing wrong, or where the error is occurring from...
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: kibtwane on November 27, 2010, 05:56:57 AM
I want to exclude some subforums from my Feedburner feed. I know how to format the urls, but I don't know where I'm supposed to change the code.  Would somebody please point me in the right direction?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on December 29, 2010, 12:20:53 PM
You'll just need to add the "boards" parameter to the URL to specify an exact list of which boards you want the data from. See the first post in this topic for further details.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: origamikitsune on January 22, 2011, 07:42:16 PM
I am currently using the following feed without problems:

Code: [Select]
http://www.sanctusrefero.com/forum/index.php?type=rss;action=.xml;sa=news;boards=36,46,52
It works beautifully and does what it is supposed to do (displaying only the first post of the most recent threads from the three selected boards). But I do not want to display the actual content of the posts. I can't find anything on this site to limit the content of the RSS feed further.

All I want to display in the RSS feed:
TITLE of posts (linking to the post)
DATE of the posts

Any way to do this? (Or can someone point me to a thread/topic with info on this specific issue?)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on January 23, 2011, 05:33:49 AM
I don't think you'll find you can actually do that, it's a requirement of the RSS specification (or was last I checked) that there had to be *some* content.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: bmwsport on April 02, 2011, 04:44:26 PM
how can I show a username instead of email in the RSS feeds?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: bmwsport on April 02, 2011, 05:13:04 PM
Took a little bit - the search function didn't work - had to scroll to nearly the bottom - there are 2 lines exactly the same at the bottom that read:

Code: [Select]
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'] ,
Changed them both to:

Code: [Select]
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterName'] ,
Now it shows the username - not real name or email - did a search in this topic for this question...but, this makes it easier.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: NewYorker on April 28, 2011, 06:42:47 PM
I would like remove the email address from the RSS feeds on my forum too. Can you please tell me which file requires the change you detailed.

Thank you

Alan

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: javierjp on May 17, 2011, 02:55:59 PM
Quote
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).

Its possible to change these topic limit (255) to something more small? where is the code for that?

I mean, if a user use:
 /index.php?action=.xml;sa=recent;limit=5000;type=rss2
 the RSS will only show 255maximum

i want to show only 20 topics maximum, no matter if the user put limit=40 or 3000

something like  /index.php?action=.xml;sa=recent;limit=20;type=rss2 always.

thanks in advance.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Joshua Dickerson on June 08, 2011, 08:11:52 PM
Could someone PLEASE put this on the wiki?

Thanks,
Josh
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KirkhamsEbooks on June 21, 2011, 05:07:40 PM
Thanks did a little playing to get keyword filters

http://www.simplemachines.org/community/index.php?p=computer+help;type=rss;action=.xml

seemed to do the trick

Rick
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: TLMB on June 25, 2011, 02:09:10 PM
I would like remove the email address from the RSS feeds on my forum too. Can you please tell me which file requires the change you detailed.

Thank you

Alan
For the benefit of anyone still looking to do this, I changed
Code: [Select]
$row['poster_email']to
Code: [Select]
$row['poster_name'] in 4 places in Sources/News.php , and it worked fine.

That's in a fresh install of the newly released Gold SMF 2.0.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Joshua Dickerson on June 26, 2011, 11:44:16 AM
http://wiki.simplemachines.org/smf/XML_feeds I put it up there but it needs formatting conversion.
Title: rss with images
Post by: srgsng25 on July 07, 2011, 03:42:13 AM
can we inject attachment thumbnails into a rss feed from our message board
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: richard03 on July 20, 2011, 07:13:54 AM
Can someone tell me why this doesnt work?

I want a feed of the new postings of one specific user.

I tried different combinations like

/index.php?type=rss;action=.xml;action=profile;area=showposts;user=34

OR

/index.php?type=rss;action=.xml;sa=recent;user=34;
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: nCogNeato on August 05, 2011, 12:23:52 PM
First, I apologize if this has already been answered.  I've been reading this topic for over 30 minutes, but cannot find it.

I'm trying to create an RSS feed of only my actual News items (i.e. my News 'fader').

Administration Center » News and Newsletters » News

Every variation of the xml/rss URL gives me a variation of forum posts.  I don't want a feed of forum posts.  Just my News fader.

Is it possible?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: nCogNeato on August 05, 2011, 12:32:20 PM
I would like remove the email address from the RSS feeds on my forum too. Can you please tell me which file requires the change you detailed.

Thank you

Alan
For the benefit of anyone still looking to do this, I changed
Code: [Select]
$row['poster_email']to
Code: [Select]
$row['poster_name'] in 4 places in Sources/News.php , and it worked fine.

That's in a fresh install of the newly released Gold SMF 2.0.

This was another problem I was having.  Your solution worked like a charm.  Thanks!   :)



ps.  This definitely needs to be default coding in any future SMF releases.  Just handing over email address like that is a serious privacy issue.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: nCogNeato on August 06, 2011, 02:43:42 PM
First, I apologize if this has already been answered.  I've been reading this topic for over 30 minutes, but cannot find it.

I'm trying to create an RSS feed of only my actual News items (i.e. my News 'fader').

Administration Center » News and Newsletters » News

Every variation of the xml/rss URL gives me a variation of forum posts.  I don't want a feed of forum posts.  Just my News fader.

Is it possible?

Bump
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Illori on August 06, 2011, 03:03:54 PM
there is no news rss feed by default.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: nCogNeato on August 06, 2011, 04:01:41 PM
there is no news rss feed by default.

So it's not possible?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Mayhem30 on September 14, 2011, 01:52:34 AM
Code: [Select]
http://www.pogocheats.net/forum/index.php?type=rss;action=.xml;sa=news
What do I need to do so ... it only shows topics from a specific user?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: socialsearch on September 17, 2011, 06:55:33 AM
i have joined this forum today only i found lot of people like u is there to help and to share such a knowledgeable stuff,. must say thank and keep sharing these things.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Donataz on December 02, 2011, 04:10:42 AM
The default feed in SMF is the 5 most recent posts. Please tell me how i can increase the default feet to 20 most recent post? Thank you very much for answer. I didn't found any soliution on this.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: spiros on December 02, 2011, 04:23:39 AM
index.php?type=rss;limit=20;action=.xml
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Donataz on December 02, 2011, 04:42:28 AM
Spiros thank you for fast answer. I must enter link in the browser http://www.domain.com/index.php?type=rss;limit=20;action=.xml or i must change php config file? Thank you very much.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: spiros on December 02, 2011, 04:47:36 AM
link in the browser
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Donataz on December 02, 2011, 05:43:31 AM
ok thank you, now it's clear
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: smartmouse on December 18, 2011, 08:11:14 PM
Hello, i'm using this url http://www.mysite.com/index.php?action=.xml;sa=news;c=1;limit=10;type=rss2 to syndacate recent topics to a web portal from my forum.
I won't that it syndacates duplicate entries for recents topic that have more than one reply. How to set it?

I mean that i want that it syndacate the recent topic one time, not every time there is a new reply.
I'm getting feeds like "New topic", "Re: New topic", "Re: New topic" and so on... instead of "New topic", "2nd new topic", 3rd New topic" and so on...

I hope you figure out what's my matter. Thank you ans sorry for my english.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: bildo55 on December 20, 2011, 08:15:49 PM
@smartmouse - I would have thought the "news" argument would have done that.




Is there ever going to be a way to get the RSS feed to show only posts from a single user.  I would like to have an RSS feed of the posts of only one administrator
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: smartmouse on December 21, 2011, 10:32:15 AM
@smartmouse - I would have thought the "news" argument would have done that.
It doesn't. Any idea or suggestion on how to do it?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: smartmouse on December 23, 2011, 06:39:40 AM
Anyone can help me?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: lufcwatson on January 24, 2012, 06:06:44 AM
hi there i need help my rss feeds will not rite in my forums ?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on January 24, 2012, 08:48:47 AM
hi there i need help my rss feeds will not rite in my forums ?

SMF has no features for posting RSS feeds into the forums itself, you must be using a mod to do that, in which case find the mod you're using, then go to the 'Support and comments for this mod' page.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Oldiesmann on January 26, 2012, 04:46:13 PM
@smartmouse - I would have thought the "news" argument would have done that.
It doesn't. Any idea or suggestion on how to do it?

So you want it to show only the newest post from each of the most recent topics that you can see (basically a reverse of the "news" option)? That can't be done by default, but it shouldn't be hard to modify the code to add that option.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Mayhem30 on February 11, 2012, 08:09:09 PM
http://www.pogocheats.net/forum/index.php?type=rss;action=.xml;sa=news

What do I need to do so ... it only shows topics from a specific user?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: adza on February 21, 2012, 05:11:38 PM
Hi,

I run SMF on a number of websites. I'm having a problem on almost all of them where RSS feeds do not show all posts. (They only show ones from certain boards, and not the private / hidden boards).

I'm aware that the private boards will not load in RSS publicly, but on one of my forums, provided I have logged in previously and have a cookie in my browser - the RSS feed in my browser will show me everything - even the private / hidden boards. (Which is what I want).

On all my other boards, even when I log in and have cookies cached, the RSS feeds still only show me the publicly visible boards.

Can someone please tell me what I need to do / change to allow people to view RSS feeds for all the posts / boards that they are entitled to see?

Thanks & Regards

Adza
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Chalky on February 29, 2012, 02:32:40 PM
I have just read every post from page 1 to page 23 of this topic and have decided that either I'm thick or this hasn't been answered yet  :-\

I want to configure my RSS feed to display the most recent posts, but only one per topic.  I suppose I could also describe what I want as the most recently updated topics.  Please is this possible and how do I do it?  sa=recent shows the most recent posts even if they are all from the same topic,  and sa=news shows the most recently started topics but with no regard to their update order.  Please advise, thanks  :)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: thisisgil on April 15, 2012, 10:09:35 AM
Hi,

I run SMF on a number of websites. I'm having a problem on almost all of them where RSS feeds do not show all posts. (They only show ones from certain boards, and not the private / hidden boards).

I'm aware that the private boards will not load in RSS publicly,

Is there a workaround for this?

I have a development project and we use both forums and irc. The forums are hidden if you're not logged in, but I have an irc bot that I would like to announce to the channel when a new forum post is made. This is easy via RSS, however, the RSS feed will not show anything as the bot is not "logged in".

Can anyone think of a way I can store a user / pass in the RSS feed URL, or even store a cookie so a bot on a remote shell can at least pull a list of all recent forum posts?

Thanks!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: jennyc on May 09, 2012, 12:53:01 PM
Hello,

I would like to set the forum up so that it posts the RSS feeds straight to twitter/facebook is this at all possible? If so, where do I look?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Glasso on June 05, 2012, 01:52:49 PM
I have just read every post from page 1 to page 23 of this topic and have decided that either I'm thick or this hasn't been answered yet  :-\

I want to configure my RSS feed to display the most recent posts, but only one per topic.  I suppose I could also describe what I want as the most recently updated topics.  Please is this possible and how do I do it?  sa=recent shows the most recent posts even if they are all from the same topic,  and sa=news shows the most recently started topics but with no regard to their update order.  Please advise, thanks  :)

Anyone figured this one?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on June 05, 2012, 03:19:02 PM
The RSS protocol doesn't really work that way and it will produce unreliable results if that is done.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: TheMortician4 on June 13, 2012, 07:02:54 AM
How would I set this URL for RWSS up in an RSS block?

  http://www.nasa.gov/rss/solar_system.rss

I tried adding ;action=rss etc and it keeps returning invalid feed. Now when I used Firefox to grab it, it worked in firefox, but not in the SMF RSS block. Why?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: crobbe on June 17, 2012, 06:04:37 AM
Hello,

I would like to set the forum up so that it posts the RSS feeds straight to twitter/facebook is this at all possible? If so, where do I look?

Yes, for Twitter you use the "Twitter feed" application and for Facebook there is something called RSS Graffiti (Twitter feed works as well).

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: simzman on June 23, 2012, 06:01:54 AM
Hi All,

First of all, great site!! This is my first post here but I have been reading quite a lot over the past few days. Awesome knowledge base.

My question, is I have recently put my hand up to help out a site that is running SMF 1.1.11 (classic theme). And RSS is not enabled or set up.
Is it as simple as following the excellent instructions at the beginning of this thread? http://www.simplemachines.org/community/index.php?topic=25009.msg198119#msg198119 I'm yet to get my hands on the admin panel. Have spend a few years in web design, mainly wordpress (html, css, php)

In particular I wanted only one section/thread of the forum to output to XML/Rss feed to control content that is shared on outside websites. Are these settings all built into the template or does this require adding a MOD like Feed Poster (http://custom.simplemachines.org/mods/index.php?mod=624)

Thank you.

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: lwm666 on July 01, 2012, 02:03:32 PM
Heyloooo, sorry to bomb you all with questions, but I have searched high and low on these forums.

My question has to do with the xml/rss feeds, and a certain elusive string I am sure is possible!

I want to display topics in a board. That is all. Simply, a list of topics from a certain board.

SITEXYZ.COM/index.php?action=.xml;type=rss2;boards=1.0;?????????????????????

Finally, is there a wiki/docs for all this kinda stuff....had no luck there...

Thanks!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on July 01, 2012, 02:05:43 PM
As the first post sort of says, use sitexyz.com/index.php?action=.xml;type=rss2;board=1

No .0, just the 1.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: lwm666 on July 01, 2012, 02:09:20 PM
DANKE SEHR!

 :laugh:
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Valkrider on July 17, 2012, 03:50:35 AM
I use Snarfer as my feed reader. I have many feeds from all sorts of sites working perfectly.

I have RSS enabled on my 2.0.2 board. I have a correctly formed url in the reader as per the first post in this thread. I have tried both type=RSS and RSS2 and still I am not picking up any feeds from the board.

Is there anything else I need to do to get this to work?

TIA
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on July 17, 2012, 06:56:58 AM
So, what URL is that exactly?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Valkrider on July 17, 2012, 12:14:34 PM
Hi

It is http://bb.one-name.org/index.php?action=.xml;type=rss

Guest access is not allowed but I have put my login details into Snarfer and I still can't access it.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on July 17, 2012, 12:16:55 PM
It won't ever work that way, it isn't possible to do so.

Snarfer is not aware of how SMF logins work, and will not be passing details properly to SMF to log in before feeds.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Valkrider on July 17, 2012, 12:18:40 PM
Ah thanks, so I take if from what you have said that it isn't possible with any feed reader?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on July 17, 2012, 12:20:32 PM
If the feed reader were specifically rewritten to cope with *just* SMF forums, it could do so, but none of the feed readers out there currently do this.

Oh, and just for fun, the way all the main RSS clients send the username and password is unencrypted in the URL (it rewrites the URL to http://username:password@example.com which is *very* secure)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Valkrider on July 17, 2012, 12:23:31 PM
Thanks back to the drawing board then.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: InfoStrides on September 27, 2012, 02:17:28 PM
I need help here. How can I limit the content of my forum RSS feed to new topics without showing replies.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on September 27, 2012, 03:03:35 PM
As per the original post, put an ;sa=news part into the URL.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: InfoStrides on September 27, 2012, 04:29:37 PM
As per the original post, put an ;sa=news part into the URL.

Thanks.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: XAVIER. on October 03, 2012, 09:17:50 PM
Gracías por el aporte  ;), estaba bujscado esto desde hace mucho.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: JamesWC on November 16, 2012, 06:25:08 PM
Would it be possible to provide an RSS feed showing the latest topics by a certain user? Maybe something like the following, but with the added option of filtering by author ID:

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
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: humbleworld on November 16, 2012, 06:44:33 PM
How shall we modify the code so that in the RSS, every post has a clickable "continue reading" or "read more" after the breadcrumb of each post?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: londonhogfan on December 19, 2012, 12:20:24 PM
is it possible to feed the most recent hot topics? It would only show a topic once after it hits the required number of posts.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: merc123 on February 06, 2013, 12:03:45 PM
Thanks guys, really helped me out with integrating SMF into WordPress stuff!
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: s1r10n on February 21, 2013, 06:57:33 AM
Hi,

I need a feed only for a specific topic, not a board

This is working but gives me all posts:
http://forums.example.com/index.php?action=.xml;type=atom;board=17;limit=20

This is obviously not working:
http://forums.example.com/index.php?action=.xml;type=atom;board=17;limit=20;topic=23

I can't modify the board because it's not mine.

Is there a way to access only a specific topic with xml? if not it seems I need to write my own parser :/
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on February 21, 2013, 10:31:43 AM
Not through the feeds, no, it's just not designed for that.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: luuuciano on October 24, 2013, 12:25:28 PM
I need to NOT show news of certain boards... any idea about how to hack it to achieve it?

Something like the inverse of boards=x,y,z - display only the recent posts from the specified boards
the... notboards modifier :-D

Or, at least, hardcoding it on the News.php file...

Will continue reading and searching too...

NEWSSSS: On the #smf IRC channel emanuele pointed me to: http://custom.simplemachines.org/mods/index.php?mod=3186
Amazing! thanks a lot
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: NoobDeveloper on November 27, 2013, 06:29:36 AM
How do i get RSS feed based on certain FROM DATER and TO DATE ?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on November 27, 2013, 09:34:31 AM
You don't. It isn't designed for that.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Booboy on December 19, 2013, 05:47:18 AM
I hope that someone ca help me.
On my new site RSS displayed correctly, but when someone want to put my rss on their site - return error. Without any other explanation.
Exactly - when my friend want to put my rss on his wordpress site (on same domain) - return feed is not available. I was try with all parameters here mention (rss2, atom...) but nothing

Here is a  link: http://plavusin-kutak.com/forum/index.php?action=.xml;type=rss (http://plavusin-kutak.com/forum/index.php?action=.xml;type=rss), I was also try on some online reader, and nothing :(
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on December 19, 2013, 10:40:50 AM
You don't have any boards accessible to guests, so nothing in the RSS feed.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Booboy on December 19, 2013, 10:54:14 AM
You don't have any boards accessible to guests, so nothing in the RSS feed.

Well, almost everything is open for guests... but still nothing is visible for rss reader(s)
Can you open this link in your browser?

Code: [Select]
http://plavusin-kutak.com/forum/index.php?action=.xml;type=rss
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on December 19, 2013, 11:00:24 AM
NOW you have boards available to guests. Before I said that before, I did actually check your site to verify that was the case.

And now I see items in the RSS feed as there should be because you have 3 boards visible to guests with a total of 9 posts in 8 topics.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: burtedwag on March 27, 2014, 11:07:04 AM
Richard03 asked this back in 2011 [http://www.simplemachines.org/community/index.php?topic=25009.msg3114285#msg3114285] and i probably missed any responses to it but i'll throw my body into the flames

is it possible to get an rss feed of recent posts from a specific user on a forum? i feel like i'm getting close trying combinations of the first post on this topic but ideally if head into a user's profile then click on "Show Posts" i get a string after index.php? that looks like this:

action=profile;area=showposts;u=8

the few [i-have-no-idea-what-im-doing] combinations i've tried either show a static feed of the profile page (with no posts):
type=rss;action=.xml;sa=profile;area=showposts;u=8

..or of the entire forum (which i assume is being parsed by recent posts associated from index.php):
type=rss;action=.xml;sa=profile;sa=recentposts;u=8
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: margarett on April 01, 2014, 08:14:29 AM
It *should* be possible to add an extra condition to the query that fetches the recent posts. But I just had a quick glance at that, not totally sure...

I don't think this works out of the box, though...
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: novii on April 11, 2014, 05:50:15 AM
I'd like to see how that change in the way of displaying RSS. I tried to find where it is set, but I did not find instructions nowhere.

I set a screen shot, what part of what I do I remove the display RSS. When on the websiteset it to showing me the last posts of the forum, the message is displayed above the part that I marked.

Is there some rss.php or setingsrss.php or a third file in which you can adjust to what it shows and what it is not shown in the presentation of recent posts on the forum.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffotkica.com%2Fthumbs3%2F1_tmb_199601816_rss.png&hash=f783fa5c82292d28f3031684b33b24f7) (http://fotkica.com/slike.php?slika=1_199601816_rss.png)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: margarett on April 11, 2014, 06:50:20 AM
All of the content provided by action=.xml is generated in Sources/News.php
Code: [Select]
// Show an xml file representing recent information or a profile.
function ShowXmlFeed()
{

I'm not totally sure of what you meant, sorry...
What do you want to change?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: novii on April 11, 2014, 02:18:10 PM
Website where I want to show the last message from the forum was made, using Joomla. Below is a picture where I marked the part of the text that we do not want to be displayed.

 In a previous post I just marked part of the text that bothers me more, but now I marked the complete text I want to remove from RSS

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffotkica.com%2Fimgs3%2F1_116436938_rss01.jpg&hash=ccdcbd2cff644fd3d02da6b062b3a226)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: margarett on April 11, 2014, 02:32:49 PM
Can you please switch to English for a moment and attach another image?
It's just so that I understand clearly what is the text there...
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: novii on April 11, 2014, 03:52:48 PM
That is not a problem. The first text is the Forum Title "Zanimljiv forum - boravak u prirodi". That text is actually a link that takes you to the home page forum.

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffotkica.com%2Fimgs3%2F1_155249874_rss%2520title.jpg&hash=049172b54cb2cb167485a8cfb9e761cd)

Below is a picture that shows how it looks the second part of the text when I switched to the English language. This is the part that is changed "Live information from ", and behind it is the only  reiterated forum title. I would like you to disable part of the code that is used to display the text "Live information from Zanimljiv forum - boravak u prirodi "

(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Ffotkica.com%2Fimgs3%2F1_155249874_rss02.jpg&hash=a1daadfec7aeffa1fe5d4a486d304d25)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: novii on April 13, 2014, 04:08:01 AM
After a lot of testing, I finally did it so I intalirao module on site, Simple RSS Feed Reader (http://extensions.joomla.org/extensions/social-web/social-display/rss-readers/1723). For all who would like to appear on Joomla Websites RSS feed from SMF forum may suggest to use this module.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: cbsarge on July 28, 2014, 05:24:52 PM
Forgive me if this has already been answered but, I'm trying to embed the generated feed in another page but, what get's displayed in the iframe I'm using is the raw xml. How does one go about getting it to display as user friendly web content? Below is the feed I'm using (messed with a bit so I can display it here)

Thank you!

https cbsargecom,ipage,com/forum/index,php?action=.xml;type=rss;limit=10
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on July 28, 2014, 05:31:41 PM
Pretty much, one doesn't. RSS feeds are not designed to be consumed as 'nice' content, they're designed to be machine readable.

Doubly so if you're futzing around with iframes, since there's almost certainly at least half a dozen ways to do it better than what you're probably trying to do. What are you trying to do, anyway? (And please don't go into how you think you need to do it, trying to choose the tool before understanding the task is never recommended)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: cbsarge on July 29, 2014, 08:15:48 AM
I'm trying to display the latest forum feeds in a div on another site. The div will be added to that site as part of a Chrome extension that also adds a toolbar. I'm going to use the extension to append the html to an existing element of the page and use the iframe to fill it with the RSS content.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on July 29, 2014, 09:40:00 AM
Yeah, there's still multiple better ways of doing it than that, such as using SSI.php to do it (and that doesn't even need hacking anything about), you can call SSI.php?ssi_function= and one of the names of the functions in that file, which is ready formatted for HTML.

SMF in iframes is still not clever though at least the normal security protocol won't get in your way there.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: devnullius on December 02, 2014, 12:15:40 PM
sigh/index.php?action=.xml;limit=20;type=rss2

The action above displays the 20 most recent posts. Is there a way to display the 20 most recent topics?

Use ;sa=news.  This will be the first post in each topic, not the last.

Ok, I'm trying to get an RSS feed without any replies / bumps... I just need a single RSS entry for each new topic once it is posted. NOthing more than this first post, even when it's bumped / replied to.

Would it be possible?

I tried this
Code: [Select]
index.php?type=rss;action=.xml;sa=news;board=159.0;limit=25 which hardly gives any results and does not seem to be a relevant RSS feed.

Code: [Select]
index.php?type=rss;action=.xml;board=159.0;limit=25 doesn't give the results I want either... Surely, an initial-posts only RSS feed can be created, right??

ANY help / tips / pointers appreciated :)

Devvie
@devnullius
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on December 02, 2014, 12:21:46 PM
index.php?type=rss;action=.xml;sa=news;board=159.0;limit=25 is correct.

It does however apply a limiter to avoid performance trouble on your forum.

News.php:
Code: [Select]
$request = $smcFunc['db_query']('', '
SELECT num_posts
FROM {db_prefix}boards
WHERE id_board = {int:current_board}
LIMIT 1',
array(
'current_board' => $board,
)
);
list ($total_posts) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);

$feed_title = ' - ' . strip_tags($board_info['name']);

$query_this_board = 'b.id_board = ' . $board;

// Try to look through just a few messages, if at all possible.
if ($total_posts > 80 && $total_posts > $modSettings['totalMessages'] / 10)
$context['optimize_msg']['lowest'] = 'm.id_msg >= ' . max(0, $modSettings['maxMsgID'] - 600 - $_GET['limit'] * 5);

That entire block should probably be removed.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: devnullius on December 02, 2014, 12:31:04 PM
index.php?type=rss;action=.xml;sa=news;board=159.0;limit=25 is correct.

It does however apply a limiter to avoid performance trouble on your forum.

News.php:
Code: [Select]
$request = $smcFunc['db_query']('', '
SELECT num_posts
FROM {db_prefix}boards
WHERE id_board = {int:current_board}
LIMIT 1',
array(
'current_board' => $board,
)
);
list ($total_posts) = $smcFunc['db_fetch_row']($request);
$smcFunc['db_free_result']($request);

$feed_title = ' - ' . strip_tags($board_info['name']);

$query_this_board = 'b.id_board = ' . $board;

// Try to look through just a few messages, if at all possible.
if ($total_posts > 80 && $total_posts > $modSettings['totalMessages'] / 10)
$context['optimize_msg']['lowest'] = 'm.id_msg >= ' . max(0, $modSettings['maxMsgID'] - 600 - $_GET['limit'] * 5);

That entire block should probably be removed.

Thanks! Does this mean that if I don't own the forum, I'm out of luck? (sent PM too)

Devnullius
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on December 02, 2014, 12:35:17 PM
Thank you for reading my signature.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: devnullius on December 02, 2014, 12:42:06 PM
Thank you for reading my signature.

Just to give you the full link; sent PM and reply at about the same time ;p
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: devnullius on December 02, 2014, 01:03:29 PM
Thanks! Does this mean that if I don't own the forum, I'm out of luck? (sent PM too)

Devnullius

Still wondering :)

Devvie

PS: somebody implement easier Captcha's please :(
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: margarett on December 02, 2014, 01:11:35 PM
Please don't bump your topic in minutes...

If you have no access to the files (FTP your your host's file manager) then yes, you can't really do much as the trick pointed by Arantor implies changes in code...

Captcha goes away after 10 posts.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: scotchmonster on January 07, 2015, 02:48:23 AM
Thanks for pointing me to the right board Margarett.

I cant work this out to save myself so if anyone can help it is much appreciated.

I am trying to get a feed of the latest post from the last 10 topics.

Atm we are using http://thejetski.club/index.php?action=.xml;sa=new;type=rss all this gives us is the last 5 posts - sometimes all from one topic.

Any guidance is much appreciated.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on January 07, 2015, 07:39:16 AM
sa=news (not sa=new) will give you the first post of the last 10 topics. There actually isn't a way out of the box to get any number of posts where the posts are the last post (only) of the last x topics, because that's actually less useful than you might think in practice as it becomes quite easy to miss posts in the middle of a topic.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: scotchmonster on January 07, 2015, 03:52:38 PM
I see, yes that seems to be working. Is there a way to make it show 10 now instead of 5?

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on January 07, 2015, 03:55:55 PM
Like the first page of this topic says, add ;limit=10 to the URL.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: smartmouse on March 11, 2015, 06:27:19 AM
is there any way to delete CDATA from rss?

What should i change?

How to do that?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: suhaneankit on March 15, 2015, 06:24:33 AM
My rss feed are not working at all.  :-[
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: savya_sathe on April 01, 2015, 04:19:04 AM
In my blog now I can do this all tricks with XML.


Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Low on June 21, 2015, 06:13:20 AM
Great thread! I was displaying ALL replies and messages and I simply added sa=news at the end now I only show the newest posts :)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Dhayzon on August 16, 2016, 05:40:27 PM
how to get topic or post by member?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Illori on August 16, 2016, 05:44:23 PM
does not look like it is possible.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: uamsameter on August 22, 2016, 01:27:25 PM
Hi,
I just got my rss feed on twitter and it seems to be tweeting every single post (all replies). I'm worried that it may become a headache for my followers in the long run.
Is there a way to show just new topics and nothing more?

Eagerly anticipating your reply.
Thanks
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Biology Forums on August 23, 2016, 01:20:03 AM
Yeah, there's still multiple better ways of doing it than that, such as using SSI.php to do it (and that doesn't even need hacking anything about), you can call SSI.php?ssi_function= and one of the names of the functions in that file, which is ready formatted for HTML.

SMF in iframes is still not clever though at least the normal security protocol won't get in your way there.

Didn't know you could do this
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: uamsameter on August 23, 2016, 01:53:42 PM
Hello people,
I'd like to know if there's a way to allow rss feeds create a new topic automatically in my forum... I saw somewhere that there's a mod for it but I can't find it. Thanks.

Still waiting for help on my earlier request too.
Hi,
I just got my rss feed on twitter and it seems to be tweeting every single post (all replies). I'm worried that it may become a headache for my followers in the long run.
Is there a way to show just new topics and nothing more?

Eagerly anticipating your reply.
Thanks
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on August 23, 2016, 02:00:45 PM
The first post in this thread outlines how you do it, put ;sa=news in the URL...
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: uamsameter on August 23, 2016, 03:29:21 PM
Okay thanks. I will try it out.

Any help about my other request?
Like if I want to automatically get a topic created for every post at my blog or other website, can I set it via rss feeds?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Kindred on August 23, 2016, 03:43:36 PM
no.

there is no external post feature in SMF.
There are two RSS-feed-importers mods, however
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: uamsameter on August 23, 2016, 04:10:26 PM
Hi kindred, please give me links to the mods. Thanks.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Kindred on August 23, 2016, 04:13:11 PM
I suggest you learn how to use search....

however, because I have a moment:
http://custom.simplemachines.org/mods/index.php?mod=624
http://custom.simplemachines.org/mods/index.php?mod=1590
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: uamsameter on August 23, 2016, 04:32:24 PM
I searched before asking. Didn't find nothing.
Thanks anyway.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Kindred on August 23, 2016, 05:37:14 PM
you went to the mod site and searched on "RSS"?   that's where those two came from...
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: uamsameter on August 23, 2016, 05:43:13 PM
Oh, i did it differently. Searched the forum instead.
I just learnt how to use search. Lol
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: KirkhamsEbooks on July 05, 2017, 01:50:29 PM
Aloha old topic I know sorry,

I'm using SMF 2.0.13 . Is there an rss feed for search results. I'm working on a search page. I can filter, but if I don't have to do any extra coding that would be great.

Rick
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Illori on July 05, 2017, 01:52:15 PM
no there is not.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on July 05, 2017, 02:06:57 PM
Having a system repeatedly hit your server, every few minutes, to do one of the most expensive operations in SMF doesn't seem all that healthy for your server.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Biology Forums on July 06, 2017, 10:55:01 AM
Having a system repeatedly hit your server, every few minutes, to do one of the most expensive operations in SMF doesn't seem all that healthy for your server.

This post is in reference to whom?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on July 06, 2017, 11:07:17 AM
It was in reference to KirkhamsEBooks, wanting to get an RSS feed on searching as searching is one of the most expensive operations one can do on an unmodified SMF (it's up there with unread and unread replies)
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Biology Forums on July 06, 2017, 12:10:54 PM
True

A better way would be to create an index every time a search is conducted into a database table. Then call it out where it is needed.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on July 06, 2017, 02:58:23 PM
Except that doesn't fix the case he's talking about, where the feed would update over time. Consider what a feed of 'searching for "help"' would look like - every time a new topic comes up that has that word in it, a new feed item would appear.

It's definitely possible to build the functionality, but it needs to be very carefully thought about - I've done it on some of the stuff I build professionally but that's not forum based, and the search feed was built very specifically for that one purpose. Doing it and still keeping it fast is a real challenge.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Biology Forums on July 06, 2017, 06:28:43 PM
And not to be presumptions, but I don't think a small forum would require such functionality
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on July 07, 2017, 02:10:40 AM
His use case does make sense, somewhat.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Dwev on March 18, 2018, 11:20:56 AM
In case someone is looking for the same solution as I was (and because it took me weeks to find the solution), hereby the solution that I finally found.

I wanted a RRS Feed that shows only the titles of the topics, but with the topic that had the most recent reaction always showing up on the top of the list.

I used the following format in the feed: https://www.xxxxxx.xx/index.php?action=.xml;sa=news;board=22;limit=5;type=rss2
and this reaction (https://www.simplemachines.org/community/index.php?topic=25009.msg2366176#msg2366176) from 'Elhcay' put me on the right track, but the description wasn't that clear.

If you want the same, you'll have to edit in /Sources/News.php the following:

Find:
Code: [Select]
ORDER BY t.id_first_msg DESC
Replace with:
Code: [Select]
ORDER BY t.id_last_msg DESC
That's all...   ;)


I do still have a wish though, the date that shows up in front is the date if the original post, while I would like to see the date of the last reaction.
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: minatorecoin on April 19, 2018, 02:47:56 AM
http://www.simplemachines.org/community/index.php?action=.xml;sa=news;board=72;limit=10

is it possible to add only posts created in the last 24h?

Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Kindred on April 21, 2018, 05:35:04 PM
No
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: rewired on March 11, 2019, 05:22:09 AM
Hi guys, tell me please where generates RSS channel in
Code: [Select]
?action=.xml;type=rss? I need to edit xml tags but i don't know where...
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: Arantor on March 11, 2019, 06:25:01 AM
What do you need to edit?
Title: Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
Post by: rewired on March 27, 2019, 12:07:36 AM
It was necessary to add a few tags for the search engine yandex, but already figured out, thank you!