News:

Want to get involved in developing SMF, then why not lend a hand on our github!

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

rosoner

is there any way to delete CDATA from rss?

What should i change?

I need this for my irc chat room
Ko je ukrao moj sir?

drummbox

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)

alexsbrown

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.

There is also an RSS mod 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.

sanax

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

ideiafacil

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
Comunidade de usuários openSuSE Linux Brasil
http://www.susebr.org/forum/ [nofollow]

Jaryic

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]]> [user@host]</author>
into the feed if mail is enabled and
<author><![CDATA[ForumUser]]><author>
if mail is off.

Greetz
-Jaryic

spiros


sanax

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!!

s0me0ne

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

Me_angus

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?

alexsbrown

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

Oldiesmann

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 ;)
Michael Eshom
Christian Metal Fans

spiros


Me_angus

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

onecha

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!
José Manuel Gago Onecha

www.Universidad.Gratis.gago.info
www.Free.University.gago.info
www.Gago.Info MAKE POVERTY HISTORY!

onecha

Sorry, I just found it by myself, It´s in News and Newsletters -> Settings

Cheers!
José Manuel Gago Onecha

www.Universidad.Gratis.gago.info
www.Free.University.gago.info
www.Gago.Info MAKE POVERTY HISTORY!

Oldiesmann

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 :)
Michael Eshom
Christian Metal Fans

rebus

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?

yynwebhsu

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


Advertisement: