News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

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

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

Previous topic - Next topic

KGIII

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

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

goodsamaritan55

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.


jackj

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/

goitalone

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?

happy

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.

fishinsecrets

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!

fishinsecrets

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?


ScottChapman

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 [nofollow]. 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 [nofollow]

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

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?

qayyse

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.

Matthew Schenker

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


rjscott

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
RJ Scott

Matthew Schenker

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

KGIII

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.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

Matthew Schenker

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

Vandaahl

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?

Matthew Schenker

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.

KGIII

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.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

Matthew Schenker

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!

KGIII

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.

My PC Support Forum
Please ask in-thread before PMing
                   SMF Help
                   Visit My Blog

How can we improve the support process?:
http://www.simplemachines.org/community/index.php?topic=163533.0

SMF vs. Godzilla? Who do you think will win?

Advertisement: