Advertisement:

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

Offline kibtwane

  • Jr. Member
  • **
  • Posts: 113
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #420 on: November 27, 2010, 05:56:57 AM »
I want to exclude some subforums from my Feedburner feed. I know how to format the urls, but I don't know where I'm supposed to change the code.  Would somebody please point me in the right direction?

Offline Oldiesmann

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 24,893
  • Gender: Male
  • Ask me about the function DB :)
    • oldiesmann on Facebook
    • Oldiesmann on GitHub
    • https://www.linkedin.com/in/michaeleshom on LinkedIn
    • @oldiesmann on Twitter
    • Archie Comics Fan Forum
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #421 on: December 29, 2010, 12:20:53 PM »
You'll just need to add the "boards" parameter to the URL to specify an exact list of which boards you want the data from. See the first post in this topic for further details.
Michael Eshom
Cincy Space - now open!

Offline origamikitsune

  • Newbie
  • *
  • Posts: 9
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #422 on: January 22, 2011, 07:42:16 PM »
I am currently using the following feed without problems:

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

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

Any way to do this? (Or can someone point me to a thread/topic with info on this specific issue?)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 72,346
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #423 on: January 23, 2011, 05:33:49 AM »
I don't think you'll find you can actually do that, it's a requirement of the RSS specification (or was last I checked) that there had to be *some* content.

Offline bmwsport

  • Semi-Newbie
  • *
  • Posts: 10
    • BMWsport '99
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #424 on: April 02, 2011, 04:44:26 PM »
how can I show a username instead of email in the RSS feeds?

Offline bmwsport

  • Semi-Newbie
  • *
  • Posts: 10
    • BMWsport '99
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #425 on: April 02, 2011, 05:13:04 PM »
Took a little bit - the search function didn't work - had to scroll to nearly the bottom - there are 2 lines exactly the same at the bottom that read:

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

Code: [Select]
'author' => (!empty($modSettings['guest_hideContacts']) && $user_info['is_guest']) || (!empty($row['hideEmail']) && !empty($modSettings['allow_hideEmail']) && !allowedTo('moderate_forum')) ? null : $row['posterName'] ,
Now it shows the username - not real name or email - did a search in this topic for this question...but, this makes it easier.

Offline NewYorker

  • Newbie
  • *
  • Posts: 1
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #426 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


Offline javierjp

  • Semi-Newbie
  • *
  • Posts: 81
Quote
limit=x - display the "x" most recent posts (if number is less than 5, it will display 5. If number is larger than 255, it will display 255).

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

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

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

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

thanks in advance.

Offline Joshua Dickerson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,778
  • Gender: Male
    • joshuaadickerson on GitHub
    • joshuaadickerson on LinkedIn
Could someone PLEASE put this on the wiki?

Thanks,
Josh
Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?

Offline KirkhamsEbooks

  • Jr. Member
  • **
  • Posts: 282
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

Offline TLMB

  • Semi-Newbie
  • *
  • Posts: 25
    • @TheVoidTLMB on Twitter
    • TLMB
I would like remove the email address from the RSS feeds on my forum too. Can you please tell me which file requires the change you detailed.

Thank you

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

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

Offline Joshua Dickerson

  • SMF Friend
  • SMF Super Hero
  • *
  • Posts: 12,778
  • Gender: Male
    • joshuaadickerson on GitHub
    • joshuaadickerson on LinkedIn
http://wiki.simplemachines.org/smf/XML_feeds I put it up there but it needs formatting conversion.
Need help? See the wiki. Want to help SMF? See the wiki!

Did you know you can help develop SMF? See us on Github.

How have you bettered the world today?

Offline srgsng25

  • Semi-Newbie
  • *
  • Posts: 19
rss with images
« Reply #432 on: July 07, 2011, 03:42:13 AM »
can we inject attachment thumbnails into a rss feed from our message board

Offline richard03

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

Offline nCogNeato

  • Jr. Member
  • **
  • Posts: 108
  • Gender: Male
  • "Mr. Neato" if you're nasty
    • 360° Fahrenheit - Casual Adult Gaming Community
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #434 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?

Casual Adult Gaming Community

Offline nCogNeato

  • Jr. Member
  • **
  • Posts: 108
  • Gender: Male
  • "Mr. Neato" if you're nasty
    • 360° Fahrenheit - Casual Adult Gaming Community
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #435 on: August 05, 2011, 12:32:20 PM »
I would like remove the email address from the RSS feeds on my forum too. Can you please tell me which file requires the change you detailed.

Thank you

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

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

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



ps.  This definitely needs to be default coding in any future SMF releases.  Just handing over email address like that is a serious privacy issue.
« Last Edit: August 05, 2011, 01:02:58 PM by nCogNeato »

Casual Adult Gaming Community

Offline nCogNeato

  • Jr. Member
  • **
  • Posts: 108
  • Gender: Male
  • "Mr. Neato" if you're nasty
    • 360° Fahrenheit - Casual Adult Gaming Community
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #436 on: August 06, 2011, 02:43:42 PM »
First, I apologize if this has already been answered.  I've been reading this topic for over 30 minutes, but cannot find it.

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

Administration Center » News and Newsletters » News

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

Is it possible?

Bump

Casual Adult Gaming Community

Offline Illori

  • Project Manager
  • SMF Legend
  • *
  • Posts: 52,359
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #437 on: August 06, 2011, 03:03:54 PM »
there is no news rss feed by default.

Offline nCogNeato

  • Jr. Member
  • **
  • Posts: 108
  • Gender: Male
  • "Mr. Neato" if you're nasty
    • 360° Fahrenheit - Casual Adult Gaming Community
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #438 on: August 06, 2011, 04:01:41 PM »
there is no news rss feed by default.

So it's not possible?

Casual Adult Gaming Community

Offline Mayhem30

  • Full Member
  • ***
  • Posts: 539
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #439 on: September 14, 2011, 01:52:34 AM »
Code: [Select]
http://www.pogocheats.net/forum/index.php?type=rss;action=.xml;sa=news
What do I need to do so ... it only shows topics from a specific user?