Advertisement:

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

Offline merc123

  • Semi-Newbie
  • *
  • Posts: 14
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #480 on: February 06, 2013, 12:03:45 PM »
Thanks guys, really helped me out with integrating SMF into WordPress stuff!

Offline s1r10n

  • Newbie
  • *
  • Posts: 6
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #481 on: February 21, 2013, 06:57:33 AM »
Hi,

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

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

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

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 :/

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,667
    • StoryBB/StoryBB on GitHub
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #482 on: February 21, 2013, 10:31:43 AM »
Not through the feeds, no, it's just not designed for that.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline luuuciano

  • SMF Hero
  • ******
  • Posts: 2,978
    • http://cbasites.net/
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #483 on: October 24, 2013, 12:25:28 PM »
I need to NOT show news of certain boards... any idea about how to hack it to achieve it?

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

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

Will continue reading and searching too...

NEWSSSS: On the #smf IRC channel emanuele pointed me to: http://custom.simplemachines.org/mods/index.php?mod=3186
Amazing! thanks a lot
« Last Edit: October 24, 2013, 12:42:42 PM by luuuciano »
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Offline NoobDeveloper

  • Jr. Member
  • **
  • Posts: 331
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #484 on: November 27, 2013, 06:29:36 AM »
How do i get RSS feed based on certain FROM DATER and TO DATE ?

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,667
    • StoryBB/StoryBB on GitHub
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #485 on: November 27, 2013, 09:34:31 AM »
You don't. It isn't designed for that.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Booboy

  • Newbie
  • *
  • Posts: 8
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #486 on: December 19, 2013, 05:47:18 AM »
I hope that someone ca help me.
On my new site RSS displayed correctly, but when someone want to put my rss on their site - return error. Without any other explanation.
Exactly - when my friend want to put my rss on his wordpress site (on same domain) - return feed is not available. I was try with all parameters here mention (rss2, atom...) but nothing

Here is a  link: hxxp:plavusin-kutak.com/forum/index.php?action=.xml;type=rss [nonactive], I was also try on some online reader, and nothing :(

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,667
    • StoryBB/StoryBB on GitHub
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #487 on: December 19, 2013, 10:40:50 AM »
You don't have any boards accessible to guests, so nothing in the RSS feed.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline Booboy

  • Newbie
  • *
  • Posts: 8
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #488 on: December 19, 2013, 10:54:14 AM »
You don't have any boards accessible to guests, so nothing in the RSS feed.

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

Code: [Select]
http://plavusin-kutak.com/forum/index.php?action=.xml;type=rss

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,667
    • StoryBB/StoryBB on GitHub
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #489 on: December 19, 2013, 11:00:24 AM »
NOW you have boards available to guests. Before I said that before, I did actually check your site to verify that was the case.

And now I see items in the RSS feed as there should be because you have 3 boards visible to guests with a total of 9 posts in 8 topics.
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.

Offline burtedwag

  • Newbie
  • *
  • Posts: 1
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #490 on: March 27, 2014, 11:07:04 AM »
Richard03 asked this back in 2011 [http://www.simplemachines.org/community/index.php?topic=25009.msg3114285#msg3114285] and i probably missed any responses to it but i'll throw my body into the flames

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

action=profile;area=showposts;u=8

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

..or of the entire forum (which i assume is being parsed by recent posts associated from index.php):
type=rss;action=.xml;sa=profile;sa=recentposts;u=8

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #491 on: April 01, 2014, 08:14:29 AM »
It *should* be possible to add an extra condition to the query that fetches the recent posts. But I just had a quick glance at that, not totally sure...

I don't think this works out of the box, though...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline novii

  • Semi-Newbie
  • *
  • Posts: 17
  • Gender: Male
    • http://rs.linkedin.com/pub/nikola-vejina/60/307/a3 on LinkedIn
    • @novii025 on Twitter
    • http://novii.bajeonline.net/
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #492 on: April 11, 2014, 05:50:15 AM »
I'd like to see how that change in the way of displaying RSS. I tried to find where it is set, but I did not find instructions nowhere.

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

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

[nofollow]

Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #493 on: April 11, 2014, 06:50:20 AM »
All of the content provided by action=.xml is generated in Sources/News.php
Code: [Select]
// Show an xml file representing recent information or a profile.
function ShowXmlFeed()
{

I'm not totally sure of what you meant, sorry...
What do you want to change?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline novii

  • Semi-Newbie
  • *
  • Posts: 17
  • Gender: Male
    • http://rs.linkedin.com/pub/nikola-vejina/60/307/a3 on LinkedIn
    • @novii025 on Twitter
    • http://novii.bajeonline.net/
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #494 on: April 11, 2014, 02:18:10 PM »
Website where I want to show the last message from the forum was made, using Joomla. Below is a picture where I marked the part of the text that we do not want to be displayed.

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



Offline margarett

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 19,761
  • Gender: Male
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #495 on: April 11, 2014, 02:32:49 PM »
Can you please switch to English for a moment and attach another image?
It's just so that I understand clearly what is the text there...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

Quote
Over 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Offline novii

  • Semi-Newbie
  • *
  • Posts: 17
  • Gender: Male
    • http://rs.linkedin.com/pub/nikola-vejina/60/307/a3 on LinkedIn
    • @novii025 on Twitter
    • http://novii.bajeonline.net/
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #496 on: April 11, 2014, 03:52:48 PM »
That is not a problem. The first text is the Forum Title "Zanimljiv forum - boravak u prirodi". That text is actually a link that takes you to the home page forum.



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 "



Offline novii

  • Semi-Newbie
  • *
  • Posts: 17
  • Gender: Male
    • http://rs.linkedin.com/pub/nikola-vejina/60/307/a3 on LinkedIn
    • @novii025 on Twitter
    • http://novii.bajeonline.net/
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #497 on: April 13, 2014, 04:08:01 AM »
After a lot of testing, I finally did it so I intalirao module on site, Simple RSS Feed Reader [nofollow]. For all who would like to appear on Joomla Websites RSS feed from SMF forum may suggest to use this module.

Offline cbsarge

  • Newbie
  • *
  • Posts: 5
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

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 71,667
    • StoryBB/StoryBB on GitHub
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)
Don’t try to tell me that some power can corrupt a person. You haven’t had enough to know what it’s like.

No good deed goes unpunished / No act of charity goes unresented.