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

Witte

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 page but to no avail..

KGIII

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.

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?

monkeyangst

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.

Oldiesmann

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
Code (Line 259 and Line 348) Select
'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.
Michael Eshom
Christian Metal Fans

KGIII

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

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?

Witte

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

KGIII

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.

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?

Witte

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

KGIII

Quote from: Witte on December 08, 2006, 06:47:30 PM
yes, here...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" />

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?

Witte

Quote from: KGIII on December 09, 2006, 05:31:58 AM
Quote from: Witte on December 08, 2006, 06:47:30 PM
yes, here...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 :)

KGIII

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.

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?

sonofabit

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!

KGIII

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.

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?

sonofabit

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

KGIII

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.

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?

sonofabit

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

KGIII

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.

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?

HecKel

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
Quote from: Eliana Tamerin on August 23, 2008, 04:10:10 PM
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

veldfire

Anyone figure out a fix for IE7 autodiscovery as the fix in this thread still doesn't work for me ?

TIA,
Veldfire

maritimesbob

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.

Advertisement: