Advertisement:

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

Witte

  • Guest
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #140 on: November 17, 2006, 10:43:21 AM »
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..

Offline KGIII

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,293
  • Gender: Male
  • If you can build it, I can wreck it.
    • Web Hosting
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #141 on: November 18, 2006, 04:47:02 PM »
Yup...

http://forum.kgiii.info

How?

Edit:

/<forum_directory>/Themes/default/index.template.php

Code: [Select]

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

Offline monkeyangst

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

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 #143 on: December 06, 2006, 07:03:19 PM »
Yup...

http://forum.kgiii.info

How?

Edit:

/<forum_directory>/Themes/default/index.template.php

Code: [Select]

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

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
Code: [Select]
'author' => empty($row['hideEmail']) && (!$user_info['is_guest'] || empty($modSettings['guest_hideContacts'])) ? $row['posterEmail'] : null,
That should fix the issue.
Michael Eshom
Cincy Space - now open!

Offline KGIII

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,293
  • Gender: Male
  • If you can build it, I can wreck it.
    • Web Hosting
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #144 on: December 07, 2006, 06:17:50 AM »
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

  • Guest
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #145 on: December 07, 2006, 01:28:44 PM »
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

Offline KGIII

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,293
  • Gender: Male
  • If you can build it, I can wreck it.
    • Web Hosting
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #146 on: December 07, 2006, 01:43:56 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

  • Guest
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #147 on: December 08, 2006, 06:47:30 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!

Offline KGIII

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,293
  • Gender: Male
  • If you can build it, I can wreck it.
    • Web Hosting
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #148 on: December 09, 2006, 05:31:58 AM »
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

Code: [Select]
<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

  • Guest
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #149 on: December 09, 2006, 09:49:52 AM »
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

Code: [Select]
<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 :)

Offline KGIII

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,293
  • Gender: Male
  • If you can build it, I can wreck it.
    • Web Hosting
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #150 on: December 09, 2006, 10:00:13 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?

Offline sonofabit

  • Semi-Newbie
  • *
  • Posts: 31
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #151 on: December 11, 2006, 04:29:15 AM »
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!

Offline KGIII

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,293
  • Gender: Male
  • If you can build it, I can wreck it.
    • Web Hosting
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #152 on: December 11, 2006, 11:27:37 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?

Offline sonofabit

  • Semi-Newbie
  • *
  • Posts: 31
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #153 on: December 11, 2006, 03:31:45 PM »
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

Offline KGIII

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,293
  • Gender: Male
  • If you can build it, I can wreck it.
    • Web Hosting
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #154 on: December 11, 2006, 07:24:05 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?

Offline sonofabit

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

Offline KGIII

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 6,293
  • Gender: Male
  • If you can build it, I can wreck it.
    • Web Hosting
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #156 on: December 11, 2006, 10:45:22 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?

Offline HecKel

  • Sr. Member
  • ****
  • Posts: 774
  • Gender: Male
    • Portuguese Programming Community
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #157 on: December 22, 2006, 07:49:24 AM »
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
SMF 7 is where it gets good. That has time travel. You can go back and post before the guy who flamed you. :P

Offline veldfire

  • Jr. Member
  • **
  • Posts: 159
  • Gender: Male
    • Corys "R" Us
Re: Getting the Most Out of SMF - XML, RSS and RSS2 (and Atom and RDF) feeds
« Reply #158 on: December 29, 2006, 10:17:45 AM »
Anyone figure out a fix for IE7 autodiscovery as the fix in this thread still doesn't work for me ?

TIA,
Veldfire

Offline maritimesbob

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