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)
thanks for that it really helped
and its so simple!
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 à 16:37:11</time>
-------------------------^
http://www.forum-asie.com/smf/index.php?action=.xml;sa=members;limit=10
Instead of using "à" in your time format, use the entity code - I don't remember what it is, off hand, though.
-[Unknown]
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.
Currently there is no XML/RSS feed for unread posts. Sorry.
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.
Find, News.php:
WHERE m.ID_MSG >= " . ($modSettings['maxMsgID'] - 4 * $_GET['limit']) . "
Replace:
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]
Quote from: [Unknown] on February 11, 2005, 06:23:33 PM
Find, News.php:
WHERE m.ID_MSG >= " . ($modSettings['maxMsgID'] - 4 * $_GET['limit']) . "
Replace:
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.
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
Quote from: Robinski on March 03, 2005, 05:23:43 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.
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
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...
WFM? Try rss2 instead of rss.
-[Unknown]
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)
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?
http://www.simplemachines.org/community/index.php?board=72.0;sa=news;type=rss;action=.xml
-[Unknown]
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
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
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.
I think the RSS output is only avaible for version 1.1 right?
Well it wont work on the Thundserbird RSS, it says its not a valid url, any tips?
Quote from: 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?
Use ;sa=news. This will be the first post in each topic, not the last.
Quote from: nibb on May 04, 2005, 04:49:47 PM
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.
Quote from: 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?
In my experience, Thunderbird prefers RSS 2.0. However, if type=rss2 fails you, try type=rss.
-[Unknown]
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.
Quote from: 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.
Try a different format.... something like this:
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...
How do you get the little rss icon to show up next to the url?
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
// 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
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!
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
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?
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.
You're ommitting the "type=rss".
http://www.simplemachines.org/community/index.php?topic=25009.msg229536#msg229536
-[Unknown]
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.
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?
How can we get a RSS feed, that gives the last X posts from specific member ?
thanks !
Quote from: inthe80s on February 11, 2005, 12:46:42 PM
I actually want the most recently updated topics, not the posts themselves. I guess I could do that by ignoring duplicate topics. That is I actually got a response from the server for the appropriate board.
I found an answer on that.
Find News.php go to the function getXmlNews($rss)
then change
AND m.ID_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.
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?
Quote from: 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?
Works now. Probably just a glitch last time I tried.
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.
In 1.1, you can use boards=1,2,3,4.
-[Unknown]
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
That's how news works. Try recent instead.
-[Unknown]
Is there a way that my users can get a feed for "upcoming events" from the calendar?
Thanks,
TG
QuoteIn 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 board
s=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?
Quote from: Oldiesmann on January 20, 2005, 12:55:32 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.
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
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.
Quote from: 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.
Niether can I locate it anywhere in 1.1 rc1
To enable RSS feeds in 1.1rc:
>News and Newsletters>Settings>Enable XML/RSS news
Quote from: redone on November 22, 2005, 01:46:41 PM
To enable RSS feeds in 1.1rc:
>News and Newsletters>Settings>Enable XML/RSS news
Thanks
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.
Not unless your RSS reader supports cookies, and you're logged in to that particular board.
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
::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:
// 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!
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
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.
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
<rss version=', $xml_format == 'rss2' ? '"2.0" xmlns="http://backend.userland.com/rss2"' : '"0.92"', ' xml:lang="', strtr($txt['lang_locale'], '_', '-'), '">
Replace
<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.
same as TriGrrrl
Any chance of getting this to work for making an RSS feed for calendar events?
Quote from: 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?
bump?
Quote from: 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
Quote from: 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
I know it's been awhile since these posts... but you could try using PHP Curl (http://www.php.net/curl) to do this!
I know RSS feeds are enabled on my forum. I can't find the setting under features and Options.
I am running 1.1RC2
Quote from: 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
See this post above (http://www.simplemachines.org/community/index.php?topic=25009.msg401798#msg401798)
Gidget
How can we get a RSS feed, that gives the last X posts from specific member ?
thanks !
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
I enabled it. I assum it does something ::)
Is something meant to show up on the Forum?
;D
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
This is great, thanks ;D
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.
How do I change the RSS number from 5 to 10?
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?
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.
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.
Is it possible to display news from another RSS feed on my forum?
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
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
Quote from: 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.
How about for recent threads ? News does not work right and posts can show the last 10 in the same thread
Quote from: 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
/
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:
<?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? :-[
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.
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?
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
Quote from: 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?
For my.yahoo, it worked when I did this:
index.php?option=com_rss&feed=RSS2.0&no_html=1
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.
Quote from: Oldiesmann on January 20, 2005, 12:55:32 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.
Quote from: Spirestar on May 13, 2006, 04:48:28 PM
So much for the fun stuff.
Post 47 in this very thread.... :D
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.
Quote from: 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
// 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
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
Quote from: 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.
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?
Quote from: LukaszP on November 14, 2005, 03:38:25 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?
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!
Quote from: iBroodI 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
Thanks. That does the job.
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 ?
Is there away to display RSS feeds....from other sites...as new topics on a designated forum with SMF?
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
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?
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.
QuoteAdmin -> 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.
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
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
thanks for the help. but how to show the RSS Feed icon beside each forum name on the forum index page?
thanks again
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???
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?
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?
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?
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.
Quote from: iago23 on June 01, 2006, 11:59:30 AM
Quote from: 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.
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
global $db_prefix, $user_info, $scripturl, $modSettings, $board;
Add after that
if(isset($_GET['u']) && !empty($_GET['u']))
$_GET['u'] = (int) $_GET['u'];
Find
AND $user_info[query_see_board]
Add before that
" . (!empty($_GET['u']) ? " AND m.ID_MEMBER = $_GET[u]" : "") . "
1.1:
Sources/News.php
Find
global $query_this_board;
Add after that
if(isset($_GET['u']) && !empty($_GET['u']))
$_GET['u'] = (int) $_GET['u'];
Find
AND $query_this_board
Add before that
" . (!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.
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...
i can't find the option to activate the rss.. anyone can help me? :(
Quote from: layer on August 08, 2006, 08:24:43 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.
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
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:
<title><![CDATA[Re: Slayer - "Christ Illusion" ]]></title>
If I change Querystring.php to stop "
from becoming "
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 "
Any ideas?
Nermeen ~ I'm having the same problem. Did you ever get this resolved?
Quote from: 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???
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 & 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:
QuoteThe 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 "&"?
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('~&#(\d{4,5}|[3-9]\d{2,4}|2[6-9]\d);~', '&#$1;', $_POST['subject']);
Eeyore -
Are you referring to an RSS feed that looks like this?
<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
Quote from: 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
Quote from: 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
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?
Quote from: Lew Cipher on September 01, 2006, 02:28:16 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.
Quote from: Ajay on September 02, 2006, 11:00:56 PM
Quote from: Lew Cipher on September 01, 2006, 02:28:16 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?
Quote from: Lew Cipher on September 06, 2006, 01:38:15 AM
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.
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.
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?
is there any way to delete CDATA from rss?
What should i change?
I need this for my irc chat room
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)
Quote from: 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)
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.
I'm getting this error?... it worked well before but this error pops up lately - any suggestions?
QuoteXML error: Attribute without value at line 57
Is possible make the tag in RSS <author>
[email protected]</author> dont write the email?
Only the name or login in <author> tag...
I really dont like make my users spam bot victim .
Thanks
Quote from: ideiafacil on September 16, 2006, 12:32:14 PM
Is possible make the tag in RSS <author>[email protected]</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
function getXmlRecent($rss)
look for the line
'author' => empty($row['hideEmail']) ? '[' . $row['posterEmail'].']' : null,
(around line 348)
and modify it to read
'author' => '<![CDATA[' . $row['posterName'] . ']]>' . (empty($row['hideEmail']) ? ' [' . $row['posterEmail'].']' : null),
This will put
<author><![CDATA[ForumUser]]> [[email protected]]</author>into the feed if mail is enabled and
<author><![CDATA[ForumUser]]><author>if mail is off.
Greetz
-Jaryic
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
Quote from: 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.
QuoteAdmin -> 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!!
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
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?
Quote from: 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?
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".
Quote from: 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
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 ;)
"Do not reveal contact details of members to guests"
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.
Quote from: alexsbrown on October 18, 2006, 09:21:33 PM
Quote from: 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?
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".
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!
Sorry, I just found it by myself, It´s in News and Newsletters -> Settings
Cheers!
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 :)
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?
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
bump.
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..
Yup...
http://forum.kgiii.info
How?
Edit:
/<forum_directory>/Themes/default/index.template.php
<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.
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.
Quote from: KGIII on November 18, 2006, 04:47:02 PM
Yup...
http://forum.kgiii.info
How?
Edit:
/<forum_directory>/Themes/default/index.template.php
<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...
Quote from: 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.
Sorry for the delayed response. I really should subscribe to this topic :P
Sources/News.php
Find
'author' => empty($row['hideEmail']) ? $row['posterEmail'] : null,
Replace
'author' => empty($row['hideEmail']) && (!$user_info['is_guest'] || empty($modSettings['guest_hideContacts'])) ? $row['posterEmail'] : null,
That should fix the issue.
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. :)
Quote from: 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.
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
Quote from: Witte on December 07, 2006, 01:28:44 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.
Quote from: KGIII on December 07, 2006, 01:43:56 PM
Quote from: Witte on December 07, 2006, 01:28:44 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!
Quote from: Witte on December 08, 2006, 06:47:30 PM
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
<link rel="alternate" type="application/rss+xml" title="EU Nationalist" href="http://eunationalist.org/smf/index.php?type=rss;action=.xml" />
Quote from: KGIII on December 09, 2006, 05:31:58 AM
Quote from: Witte on December 08, 2006, 06:47:30 PM
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
<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 :)
Quote from: Witte on December 09, 2006, 09:49:52 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.
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!
Quote from: SelArom on December 11, 2006, 04:29:15 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.
Quote from: KGIII on December 11, 2006, 11:27:37 AM
Quote from: SelArom on December 11, 2006, 04:29:15 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.
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: SelArom on December 11, 2006, 03:31:45 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.
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
Quote from: SelArom 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
I'd certainly give it a shot. I'd also be sure to backup first of course.
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
Anyone figure out a fix for IE7 autodiscovery as the fix in this thread still doesn't work for me ?
TIA,
Veldfire
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.
Quote from: 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.
Head to:
yourdomain/forumdirectory/Themes/default/languages/Stats.english.php
All will be revealed.
Alright, well...
$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.)
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.
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/
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?
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.
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!
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?
http://blogs.msdn.com/rssteam/articles/PublishersGuide.aspx
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?
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.
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!
QuoteThere 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
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
QuoteThere 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
Quote from: MatthewSchenker on February 22, 2007, 02:54:57 PM
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.
QuoteNo. 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
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?
QuoteHow 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.
Ah...
index.template.php in your theme find the bit that should look like this:
// 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:
// 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.
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!
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.
QuoteHmm... 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!!
I already tried that change before you mentioned it, and it does indeed NOT work, unfortunately.
Quote from: Oldiesmann on August 03, 2006, 11:53:19 AM
Quote from: iago23 on June 01, 2006, 11:59:30 AM
Quote from: 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.
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).
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.
QuoteI 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?
Quote from: MatthewSchenker on March 01, 2007, 07:55:40 PM
QuoteI 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.
QuoteJust 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?
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
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?
I vote for getting the name of the poster visible!
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?
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.
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.
Excellent. *ponders making this a mod*
Quote from: 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.
Are you referring to RSS displaying the AUTHOR NAME?
KGIII, You say:
QuoteAlright. 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...
My response was geared towards getting more than the default 5 topics to display, I am not sure what you are asking.
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?
Quote from: Matthew Schenker on March 01, 2007, 07:55:40 PM
QuoteI 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
// 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
// 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.
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.
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.
Is it possible to pull forum statistics in a rss feed ? I searched the site but come up with nothing
Quote from: 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
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
Can I exclude certain boards?
Quote from: Philip dT on March 28, 2007, 04:53:40 AM
Quote from: 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
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.
Quote from: tsmalmbe on April 02, 2007, 01:31:13 AM
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).
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.
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!
Quote from: 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!
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
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'],
Replace
'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).
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.
Try www.rss2javascript.com
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.
Quote from: Oldiesmann on May 03, 2007, 11:12:07 AM
Try www.rss2javascript.com
Thanks for the tip!
Youre awesome!
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?
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.
Quote from: 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.
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.
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.
Quote from: devx on March 01, 2007, 03:41:49 PM
Quote from: Oldiesmann on August 03, 2006, 11:53:19 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.
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
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 :)
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
ORDER BY t.ID_FIRST_MSG DESC
to
ORDER BY RAND
and
ORDER BY m.ID_MSG DESC
to
ORDER BY RAND
and
ORDER BY m.ID_MSG DESC
to
ORDER BY RAND
and it works like I wanted. The database does the randomization
I find my RSS2 feed defaults to an excerpt rather than full text. Is that consistent with everyone else? Version 1.1.1.
Quote from: 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.
Never mind. Found the setting on the Admin panel.
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?
Quote from: LukaszP on November 14, 2005, 03:38:25 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
This is interesting. Any other undocumented features? I would love it if you told me that you could limit it to a single topic.
Quote from: 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?
try sa=news
Unless I misunderstand your question.
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
Quote from: 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
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.
Quote from: Oldiesmann on April 25, 2007, 02:05:36 PM
Quote from: 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!
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
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'],
Replace
'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?
IS there an RSS FEED that shows the list of the boards only?
Quote from: will888 on October 24, 2007, 07:30:49 AM
IS there an RSS FEED that shows the list of the boards only?
Not that I've been able to find. So far.
Wow, that's alot of reading.
Thanks everyone for their imput, I managed to get an rss feed working using this code/link:
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?:
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
Quote from: tsmalmbe on April 02, 2007, 01:31:13 AM
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
Quote from: Sybille Yates on November 30, 2007, 06:41:53 PM
Quote from: tsmalmbe on April 02, 2007, 01:31:13 AM
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.
Quote from: Sybille Yates on November 30, 2007, 06:41:53 PM
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?
Why cannot in rss see author tag?
http://www.mojportal.com.hr/forum/index.php?type=rss;action=.xml
moj do you still need help
I was not knowing of this.
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
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.
THANK YOU for the first post... works brilliantly!! :D
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
Quote from: dimkar on February 08, 2008, 02:16:13 AM
try
www.simplemachines.org/index.php?action=.xml;type=rss2
Try http://www.simplemachines.org/community/index.php?action=.xml;type=rss2
The same. It opens an unknown file type window.
Only on IE (version 6 - 7)
Looks fine on IE7 here.
Can you post a screenshot?
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.
I found the problem , it should be" elseif ($xml_format == 'rdf') header('Content-Type: text/xml;..."
because in other case it misconfuses IE.
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.
Quote from: Oldiesmann on January 20, 2005, 12:55:32 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!
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.
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.
Quote from: 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.
In the URL for the board, the board ID is the part between "board=" and ".".
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.
Quote from: algo_man on February 22, 2008, 07:21:47 AM
Why iGoogle reads RSS feeds of closed to guests boards.
Why do you think iGoogle can read restricted feeds?
Quote from: Sarge on February 22, 2008, 07:48:03 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.
Did you log out of your account before trying that?
Quote from: Sarge on February 22, 2008, 08:12:48 AM
Did you log out of your account before trying that?
Yes, of course. Try it yourself.
I understood. Google took data from the cache. Now RSS-feed is working correctly.
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
Can I burn a feed for every board using Feedburner?
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...
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.
Quote from: 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.
All of the feeds are handled by functions in Sources/News.php.
Thanks OldiesMann. I'll check this out.
Anyway to get the next x calendar entries?
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
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?
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
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
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'],
Replace
'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.
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
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).
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).
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?
Quote from: 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
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterEmail'],
Replace
'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
cdata_parse($row['posterName'])
only, hoping this wont pose an issue, since I didn't want the e-mail to show up either way.
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.
What do i have to edit to get the date posted along with my news on my frontpage?
www.digitalsat.nu
Can I feed the news with some feeder different than my SMF forum? By example a Blog or something...
Thank you
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
Hello, is there a way to show only posts from the last week ?
Quote from: rodrigosoares on July 23, 2008, 08:24:51 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?
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
Is there any way of making a feed to show whos online??
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....
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 :)
(http://www.diy-pc-fix.com/wp-content/uploads/2008/12/sig4pcfix.jpg) (http://"http://www.diy-pc-fix.com")
Awesome! Thanks for this Oldies! :D
Quote from: poveyjo on April 23, 2008, 02:52:27 AM
Hi, Back on page 5 of this thread, Carla asked the following:
"Is there a way to create an RSS feed of a single topic?. For example this one that we're reading. Can it be downloaded it as an RSS feed?. I wrote the URL and the XML option at the end but I keep getting the whole forum RSS feed.
Best regards,
Carla"
Someone else asked it again later in the thread, but I haven't seen any answers. is there a way to do this?
I tried topic=x, but that didn't seem to work.
Any ideas?
Many thanks
No ideas for only feeding topics?
Or is it not possible?
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.
THANK YOU!!! This article was so useful :)
Quote from: Ricky. on December 13, 2008, 05:33:39 PM
Well, I went into the same need and reading all stuff, I think feed for single topic is not available. Can be good addition to RSS feature of smf.
Ciao, me too need feed for single topic ... any idea?
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.
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.
Anyone have any ideas for this? :(
Quote from: jglonek on December 16, 2008, 01:02:43 PM
Alright, this question as it probably seems.. I know I can add options at the end of the URL to change the feed settings.
But, if I go to Google Reader and put in say, http://www.gadvoutpost.com/home.php?action=.xml;sa=news;board=19;limit=10
Google Reader doesn't have a clue what I want to do.
But if I put in "www.gadvoutpost.com" into Google Reader, it finds a feed fine and starts working.
Problem is, that feed is the default display last 5 posts thing.
Where in the actual PHP files can I go to change what the default RSS feed is that is being picked up when someone enters "www.gadvoutpost.com" as the feed address? I want to set it to look at only 2 boards, and show news only.
Edit your index.template.php of the theme which you are using.
Is RSS2 easy enough to work with or is it a lot of nothing?
Quote from: Oldiesmann on January 20, 2005, 12:55:32 PM
One of the best features in SMF is its news feeds. However, many people aren't aware of how many options there are, or that this is even available. So, here's a list of available options and what they do...
I kinda lucked out and found this post after considerable searching around.
Is there anything in the admin documentation that talks about using this feature, or is this post the only guide available?
Quote from: xerson on August 01, 2005, 11:41:51 AM
Quote from: inthe80s on February 11, 2005, 12:46:42 PM
I actually want the most recently updated topics, not the posts themselves. I guess I could do that by ignoring duplicate topics. That is I actually got a response from the server for the appropriate board.
I found an answer on that.
Find News.php go to the function getXmlNews($rss)
then change
AND m.ID_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?
Great info!
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/
I also want to change the info that my RSS shows. I want two things:
- Show author of the message in the RSS.
- RSS show last messages. I want appear the last topics with answer, not the last messages, because is possible that the last three message in the forum be in one topic, and then, the rss show three times the same topic.
I have 1.1.8 version, anyone can help me? thanks you
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?
So what input are they using for their rss2html.php page?
http://www.accurateshooter.com/forums/index.php%3ftype%3drss;action%3d.xml;board%3d12196
I believe what they need is http://www.accurateshooter.com/forums/index.php?type=rss;action=.xml;board=12196;sa=news
Cool, I think that did it. I added the encoded ;sa%3dnews and it worked. I'll have them confirm. Thanks!
I cannot open a topic in this section, why is that?
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.
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.
Not without modifying the underlying code, no. You'd have to modify the database query that gets posts.
Hmmm, that doesn't sound sooo hard ;D
Thanks, I'll have a poke around...
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.
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. ???
Can the MOD make this topic sticky?
Quote from: humbleworld on October 26, 2009, 07:02:41 AM
Can the MOD make this topic sticky?
No, because by definition we'd have to make every topic in this board a sticky.
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. :)
Thanks Garou. You have a strong point there. Cheers!
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 ?
Quote from: talktoanil 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 ?
Add this to the RSS link:
;sa=news
Quote from: Oldiesmann on January 20, 2005, 12:55:32 PM
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..? :(
lorenzone92: add ;type=rss to the end of the URL.
Quote from: Arantor on November 16, 2009, 10:40:24 AM
lorenzone92: add ;type=rss to the end of the URL.
Thanks!!
Is there a way to display only the first post of each topic?
Also add ;sa=news to the end of the URL for that as mentioned about 4 posts up.
Quote from: xerson on August 01, 2005, 11:41:51 AM
Quote from: inthe80s on February 11, 2005, 12:46:42 PM
I actually want the most recently updated topics, not the posts themselves. I guess I could do that by ignoring duplicate topics. That is I actually got a response from the server for the appropriate board.
I found an answer on that.
Find News.php go to the function getXmlNews($rss)
then change
AND m.ID_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.
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)
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).
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.
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.
That also changes how the results are ordered though...
Quote from: Arantor on November 19, 2009, 06:46:36 PM
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.
And how to change the feed <title>?
I've tried replacing in Sources/News.php all the:
<title>', $feed_title, '</title>
...with my custom title but it shows the forum title as before!
can we add a copyright notice for those who publishing our content via rss?
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ı?
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.
Hi I am facing a small problem, and don't know how exactly the rss is working here.
Can somebody help me please?
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.
techfreak.in/smf/index.php/$1.html$2
How can I fix this?
So, what mods do you have installed?
Why doesn't this have a link to the RSS feed source? Anyway to get that to post an auto link to the source?
Quote from: 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?
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.
poolhall: Not without some code changes to News.php IIRC.
Not huge, but very carefully written ones.
please how do i make recent topics on my forum show on my signature using Feeds???
You will need a third-party service like FeedBurner to create a signature image for that.
Quote from: 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.
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>
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:
[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:
(http://feeds.feedburner.com/Derbhotjobs.1.gif) (http://feeds.feedburner.com/~r/Derbhotjobs/~6/1)
Quote from: 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:
[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:
(http://feeds.feedburner.com/Derbhotjobs.1.gif) (http://feeds.feedburner.com/~r/Derbhotjobs/~6/1)
thanks
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 ??? :-\
Can you throw me a link to the page you're trying to use please?
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....
It's not visible to guests at all, and shows a login page, which is why you get an invalid feed.
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?
::)
Sorry to bump. recieved a notification of a reply, but nothing's showing ??? :o
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
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.
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).
Quote from: Garou on February 11, 2010, 11:21:43 PM
Sorry to hear about your dad Arantor. :(
Same for me, really. :(
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
funindia I've asked the same thing, 1 or 2 pages ago you can find the reply.. :)
Or even read the OP, it's listed in there, about how to add ;sa=news to the URL...
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
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.
Quote from: Arantor on March 18, 2010, 05:56:14 AM
Either make the board open to guests
Unacceptable
Quote from: Arantor on March 18, 2010, 05:56:14 AM
or find a method of having Google Reader authenticate itself as a regular user.
that's what i'm asking. any ideas about that?
Not without rewriting substantial parts of SMF.
any way to pass login|password within url?
Quote from: Aramaki on March 18, 2010, 07:56:26 AM
any way to pass login|password within url?
No because that's incredibly insecure.
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.
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
So you want the last post in each topic by topic, or do you want new topics as they appear?
Quote from: 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?
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
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)
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
Can I make this, or something similar into a HTML code so it displays on a page and not as a RSS feed?
For that you'd use a PHP page and the SSI functions, e.g. ssi_boardNews and ssi_recentTopics to output HTML.
Quote from: 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.
Thanks! :)
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.
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
Take a look through the mod site for the RSS feed posting mods.
Quote from: Arantor on June 08, 2010, 01:54:27 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
Thanks for sharing m8 :)
Blogs
--------------------------
www.hulosoft.com (http://www.hulosoft.com)
forum.hulosoft.com (http://forum.hulosoft.com)
cheers
Thanks
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
Quote from: jay.clark on June 10, 2010, 08:35:17 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.
Quote from: Arantor on June 10, 2010, 10:38:53 AM
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
Could I somehow make it a pretty URL? For example using a domain forward so it could be rss.mysite.com? Thank you
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
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.
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?
Quote from: 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
Look at the first page, it's covered there! :)
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... ::)
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)
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
it was really helpful post! thanks a lot for sharing..
Thanks for sharing ::) :P
I cant find a way to work this out. feedburner report error with xml:
QuoteThe 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? :)
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.
Quote from: Dzonny on August 04, 2010, 05:59:53 AM
I cant find a way to work this out. feedburner report error with xml:
QuoteThe 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.
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]/>])
Quote from: 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]/>])
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.
Quote from: 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]/>])
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
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?
Paracelsus
what is the url you used in feedburner to make it work?
thanks
Quote from: metro on August 09, 2010, 09:30:42 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.
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
Quote from: 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
If your site forum is closed to visitors then feedburner won't work as it (feedburner) receives info as visitor, that's why.
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
Quote from: 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
Can this be done? Never heard of such thing...
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?
Quote from: 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?
No, except if you open your forum for guests, then rss can be viewed by those bots.
Thanks for the info... I'm working on trying to integrate without changing from SMF, even though it seems it would be easier.
Is there any way to get only the new opened topics and not the new posts in a topic?!
Quote from: Zeri YT! 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?!
put ;sa=news in teh url
and please dont bump in less than 24 hours in future everyones a volunteer here
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
in teh url
http://yourforum.com/index.php?action=.xml;type=rss;limit=100;board=1 for example
Quote from: Oldiesmann on January 20, 2005, 12:55:32 PM
One of the best features in SMF is its news feeds. However, many people aren't aware of how many options there are, or that this is even available. So, here's a list of available options and what they do...
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)
How do I feed the board news or recent topics to a forum?
I am getting this error
XML error: Not well-formed (invalid token) at line 1
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
Quote from: Oldiesmann on August 03, 2006, 11:53:19 AM
Quote from: iago23 on June 01, 2006, 11:59:30 AM
Quote from: 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.
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.
Quote from: 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
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
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)
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?
i don't get that error, looks like correct xml to me (rss is an xml format)
Quote from: 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)
That is where I am lost...!!! I don't get what I am doing wrong, or where the error is occurring from...
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?
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.
I am currently using the following feed without problems:
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?)
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.
how can I show a username instead of email in the RSS feeds?
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:
'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:
'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.
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
Quotelimit=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.
Could someone PLEASE put this on the wiki?
Thanks,
Josh
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
Quote from: 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
For the benefit of anyone still looking to do this, I changed
$row['poster_email']
to
$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.
http://wiki.simplemachines.org/smf/XML_feeds I put it up there but it needs formatting conversion.
can we inject attachment thumbnails into a rss feed from our message board
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;
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?
Quote from: TLMB on June 25, 2011, 02:09:10 PM
Quote from: 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
For the benefit of anyone still looking to do this, I changed $row['poster_email']
to $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.
Quote from: 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?
Bump
there is no news rss feed by default.
Quote from: Illori on August 06, 2011, 03:03:54 PM
there is no news rss feed by default.
So it's not possible?
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?
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.
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.
index.php?type=rss;limit=20;action=.xml
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.
link in the browser
ok thank you, now it's clear
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.
@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
Quote from: bildo55 on December 20, 2011, 08:15:49 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?
Anyone can help me?
hi there i need help my rss feeds will not rite in my forums ?
Quote from: lufcwatson on January 24, 2012, 06:06:44 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.
Quote from: smartmouse on December 21, 2011, 10:32:15 AM
Quote from: bildo55 on December 20, 2011, 08:15:49 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.
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?
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
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 :)
Quote from: 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,
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!
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?
Quote from: Sabrinova 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 :)
Anyone figured this one?
The RSS protocol doesn't really work that way and it will produce unreliable results if that is done.
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?
Quote from: 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?
Yes, for Twitter you use the "Twitter feed" application and for Facebook there is something called RSS Graffiti (Twitter feed works as well).
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.
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!
As the first post sort of says, use sitexyz.com/index.php?action=.xml;type=rss2;board=1
No .0, just the 1.
DANKE SEHR!
:laugh:
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
So, what URL is that exactly?
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.
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.
Ah thanks, so I take if from what you have said that it isn't possible with any feed reader?
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:
[email protected] which is *very* secure)
Thanks back to the drawing board then.
I need help here. How can I limit the content of my forum RSS feed to new topics without showing replies.
As per the original post, put an ;sa=news part into the URL.
Quote from: Arantor on September 27, 2012, 03:03:35 PM
As per the original post, put an ;sa=news part into the URL.
Thanks.
Gracías por el aporte ;), estaba bujscado esto desde hace mucho.
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:
Quote from: Oldiesmann on January 20, 2005, 12:55:32 PMNews (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
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?
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.
Thanks guys, really helped me out with integrating SMF into WordPress stuff!
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 :/
Not through the feeds, no, it's just not designed for that.
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
How do i get RSS feed based on certain FROM DATER and TO DATE ?
You don't. It isn't designed for that.
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 :(
You don't have any boards accessible to guests, so nothing in the RSS feed.
Quote from: Arantor Beeblebrox the First on December 19, 2013, 10:40:50 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?
http://plavusin-kutak.com/forum/index.php?action=.xml;type=rss
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.
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
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...
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.
(http://fotkica.com/thumbs3/1_tmb_199601816_rss.png) (http://fotkica.com/slike.php?slika=1_199601816_rss.png)
All of the content provided by action=.xml is generated in Sources/News.php
// 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?
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
(http://fotkica.com/imgs3/1_116436938_rss01.jpg)
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...
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.
(http://fotkica.com/imgs3/1_155249874_rss%20title.jpg)
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 "
(http://fotkica.com/imgs3/1_155249874_rss02.jpg)
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.
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
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)
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.
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.
Quote from: [Unknown] on May 04, 2005, 07:40:12 PM
Quote from: Zenigata on April 06, 2005, 11:45:19 AM
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
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.
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
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:
$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.
Quote from: 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:
$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
Thank you for reading my signature.
Quote from: Arantor on December 02, 2014, 12:35:17 PM
Thank you for reading my signature.
Just to give you the full link; sent PM and reply at about the same time ;p
Quote from: devnullius on December 02, 2014, 12:31:04 PM
Quote from: Arantor on December 02, 2014, 12:21:46 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 :(
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.
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.
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.
I see, yes that seems to be working. Is there a way to make it show 10 now instead of 5?
Like the first page of this topic says, add ;limit=10 to the URL.
Quote from: rosoner on September 10, 2006, 01:00:06 PM
is there any way to delete CDATA from rss?
What should i change?
How to do that?
My rss feed are not working at all. :-[
In my blog now I can do this all tricks with XML.
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 :)
how to get topic or post by member?
does not look like it is possible.
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
Quote from: 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.
Didn't know you could do this
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.
Quote from: 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
The first post in this thread outlines how you do it, put ;sa=news in the URL...
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?
no.
there is no external post feature in SMF.
There are two RSS-feed-importers mods, however
Hi kindred, please give me links to the mods. Thanks.
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
I searched before asking. Didn't find nothing.
Thanks anyway.
you went to the mod site and searched on "RSS"? that's where those two came from...
Oh, i did it differently. Searched the forum instead.
I just learnt how to use search. Lol
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
no there is not.
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.
Quote from: 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.
This post is in reference to whom?
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)
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.
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.
And not to be presumptions, but I don't think a small forum would require such functionality
His use case does make sense, somewhat.
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:
ORDER BY t.id_first_msg DESC
Replace with:
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.
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?
No
Hi guys, tell me please where generates RSS channel in ?action=.xml;type=rss
? I need to edit xml tags but i don't know where...
What do you need to edit?
It was necessary to add a few tags for the search engine yandex, but already figured out, thank you!
Is there any way to to avoid & character in XML? It leads to errors in XML readers due to invalid characters action=.xml;type=rss2;sa=recent;limit=5 is invalid XML, likely due to invalid characters. XML error: XML_ERR_NAME_REQUIRED