collapse

* Simple Portal Archived Forum

This is an Archive Forum.

The content in this forum may be out-of-date or have been superseded by newer information, and links in forum pages to other sites may not work.
This forum contains archives for future reference.

Visit our thread at Simple Machines Forum for current support.

SMF 2.1 users: EhPortal is a ported version of Simple Portal specifically designed for the SMF 2.1 branch.
Please visit web-develop.ca to download EhPortal and for its support.

* User Info

 
 
Welcome, Guest. Please login or register.

* Who's Online

  • Dot Guests: 395
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Shoutbox

Refresh History
  • Shoutbox is not for support!
  • {OCS}MasterSeal: Yup, Still adore SP
    April 21, 2019, 07:08:06 PM
  • {OCS}MasterSeal: STILL love SP :)
    November 24, 2018, 05:05:50 AM
  • ♦ Ninja ZX-10RR ♦: <3 aegersz
    September 13, 2018, 03:36:09 PM
  • aegersz: I STILL <3 LOVE SimplePortal
    September 13, 2018, 07:11:39 AM
  • aegersz: o LOVE you guys - Simple Portal rocks !
    May 09, 2018, 05:18:59 AM
  • Chen Zhen: our apologies for the site being down.. please read server issues topic
    March 22, 2018, 05:32:38 AM
  • {OCS}MasterSeal: LOL PLEASE forget I just posted that. I found the answer in my own dang post back in 2015. lol sorry!
    July 04, 2017, 10:47:55 PM
  • {OCS}MasterSeal: I know this SB isnt' for support, but I just have a general question. Who would I contact to find out where SP stores its block info? Is it DB driven or files? I searched the site but came up with nothing. probably my fault any insight is appreciated.
    July 04, 2017, 10:43:36 PM
  • ♦ Ninja ZX-10RR ♦: Excuse me but what does Simpleportal have to deal with that?
    February 05, 2017, 08:21:14 PM
  • WhiteEagle: of course IMHO that site appears to be dead :(
    February 04, 2017, 01:08:05 PM
  • WhiteEagle: If I can get that, then I'll use it for that site...
    February 04, 2017, 01:07:35 PM
  • WhiteEagle: decided to not use SMF for any projects, unless I can get a copy of the premium version of the fanfiction archive plugin
    February 04, 2017, 01:06:54 PM
  • expertdecisions: cloudflare
    January 28, 2017, 08:01:47 AM
  • aegersz: SM release 2.0.13 !
    January 12, 2017, 06:00:13 AM
  • raffo: Tks Emanuele, even if I didn't understand the fix :D
    November 07, 2016, 02:01:20 AM
  • emanuele: [link]
    November 01, 2016, 12:43:50 PM
  • emanuele: raffo: the English support board is a good place. ;)
    November 01, 2016, 12:43:38 PM
  • raffo: Where can I find the fix for the shoutbox?
    November 01, 2016, 05:06:09 AM
  • {OCS}MasterSeal: To the SP team, I make a point to come here and thank you as much as possible for your work.  so again, THANK YOU!
    October 28, 2016, 10:38:05 AM
  • emanuele: That's indeed funny, the limit is present only in the patch and not the full install.
    October 22, 2016, 06:14:58 PM

* Recent Posts

Adding Forums Button to Nav bar by jirapon
[August 01, 2019, 09:07:12 AM]


Re: Board Icons by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 04:03:41 PM]


MOVED: Czech translation???? by ♦ Ninja ZX-10RR ♦
[July 30, 2019, 03:04:51 PM]


Board Icons by jirapon
[July 30, 2019, 07:28:44 AM]


Re: Thankyou Simpleportal, by ♦ Ninja ZX-10RR ♦
[July 29, 2019, 09:41:29 AM]

Blocks speak! Do you have an interest in getting more blocks - or even making your own? The Blocks Board is for you!

Author Topic: RSS Feeds  (Read 12794 times)

0 Members and 2 Guests are viewing this topic.

Offline ronnie42

  • Semi Newbie
  • *
  • Posts: 24
  • SMF Version: 2 RC1-1
  • SP Version: 2.2.2
RSS Feeds
« on: November 03, 2009, 06:13:10 PM »
Hello Nathaniel,

Here's another little prob where i run in to.

I trie to set up a block on the left site of the index page an RSS block,
i copy the specific RSS link in the field and it says "invalid feed" do you know at could be wrong here?

It seems that the block does it with other feeds to i have tried others and still it tells me "invalid feed"

thanks m8

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: RSS Feeds
« Reply #1 on: November 03, 2009, 06:22:42 PM »
Can you post the feed urls that you are trying to use?

The RSS feed block uses the inbuilt SMF rss functions, which aren't very tolerant. Hence some feeds may actually be invalid, but they will still be shown okay by more tolerant RSS viewers (firefox seems to display RSS feeds even if they are quite broken).
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline ronnie42

  • Semi Newbie
  • *
  • Posts: 24
  • SMF Version: 2 RC1-1
  • SP Version: 2.2.2
Re: RSS Feeds
« Reply #2 on: November 03, 2009, 06:27:58 PM »
This is the link:

http://www.ttm.nl/nieuws/rss.php

and i tried this one to:

http://www.ttm.nl/nieuws/rss

but they do not work

Offline Nathaniel

  • Comrade
  • *
  • Posts: 5203
  • Gender: Male
    • Verbtest.com
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: RSS Feeds
« Reply #3 on: November 03, 2009, 06:39:23 PM »
The first RSS feed is appears to have an incorrect encoding (validator link), while it is a valid feed, encoding issues could be causing the PHP rss functions to fail.

The second link is a webpage, not an RSS feed.
SMF Friend (Former Support Specialist) | SimplePortal DeveloperMy SMF Mods | SimplePortal"Quis custodiet ipsos custodes?" - Who will Guard the Guards?Please don't send me ANY support related PMs. I will just delete them.

Offline ronnie42

  • Semi Newbie
  • *
  • Posts: 24
  • SMF Version: 2 RC1-1
  • SP Version: 2.2.2
Re: RSS Feeds
« Reply #4 on: November 04, 2009, 05:37:03 AM »
Hmm  :'(

It seems that all the feeds to be found no matter wich gives the message "invalid feed"

I have tried more then 25 different feeds and they all come up with the same message.

 :'(

Offline Everton

  • Just Registered
  • Posts: 1
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: RSS Feeds
« Reply #5 on: November 14, 2009, 10:26:35 AM »
Hi

I'm having the same problem with every feed I try e..g http://www.windows7news.com/feed and http://www.windows8news.com/feed to name a few.  Any ideas how to fix please?

Thanks

EB

Offline leonpadi

  • Newbie
  • Posts: 4
  • SMF Version: 2 RC2
  • SP Version: None
Re: RSS Feeds
« Reply #6 on: November 19, 2009, 06:12:34 AM »
Bump! :)
Please, i would like to kindly request the Developers Team to fix this little incompatibility issue, so we can use those rss feeds. We already know this is NOT sm portal's fault...

Offline Chas

  • Jr. Member
  • **
  • Posts: 74
  • Gender: Male
    • Fifty Plus Forum
  • SMF Version: 2 RC5
  • SP Version: 2.3.3
Re: RSS Feeds
« Reply #7 on: November 19, 2009, 11:18:07 AM »
I too am having a similar problem but mine is strange in that the feed WORKS when previewed but gives invalid feed when the block is placed anywhere on the site.

Here is the feed.

http://www.calendarofupdates.com/updates/index.php?act=rssout&type=calendar&id=1

Offline KTFO

  • Semi Newbie
  • *
  • Posts: 10
  • SMF Version: 1.1.9
  • SP Version: 2.2.1
Re: RSS Feeds
« Reply #8 on: December 13, 2009, 11:28:09 PM »
I too am having trouble with the RSS feed :( This would be so great if it actually worked  :'(
My Info:* Which version of SMF you're using.SMF 1.1.9* Which version of SimplePortal you're using.SimplePortal 2.2.1* A link to your forum. http://ktfo.host56.com/index.php

Offline DonMucios

  • Just Registered
  • Posts: 1
  • SMF Version: 2 RC2
  • SP Version: 2.3.1
Re: RSS Feeds
« Reply #9 on: December 14, 2009, 08:28:34 AM »
you can create an custom php block and insert any php rss reader free on the net.
Example: use http://www.scriptol.com/rss/rss-reader.php and put content of rsslib.php in block content and call the function to view rss from the example.

Offline KTFO

  • Semi Newbie
  • *
  • Posts: 10
  • SMF Version: 1.1.9
  • SP Version: 2.2.1
Re: RSS Feeds
« Reply #10 on: January 02, 2010, 05:41:56 PM »
you can create an custom php block and insert any php rss reader free on the net.
Example: use http://www.scriptol.com/rss/rss-reader.php and put content of rsslib.php in block content and call the function to view rss from the example.

Thanks DonMucios, I will look into this. I appreciate the response.
 8)
My Info:* Which version of SMF you're using.SMF 1.1.9* Which version of SimplePortal you're using.SimplePortal 2.2.1* A link to your forum. http://ktfo.host56.com/index.php

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: RSS Feeds
« Reply #11 on: January 20, 2010, 02:15:32 PM »
ronnie42, try this:

./Sources/PortalBlocks.php

Code: (Find) [Select]
$xml_parser = xml_parser_create();
Code: (Replace) [Select]
$xml_array = new xmlArray($xml_data);

if (!$xml_array->exists('rss[0]'))
echo 'error';
$xml_array = $xml_array->path('rss[0]');
$xml_array = $xml_array->path('channel[0]');

$items = array();
$counter = 0;
foreach ($xml_array->set('item') as $item)
{
$items[$counter] = array(
'title' => strip_tags($item->fetch('title')),
'content' => strip_tags($item->fetch('description')),
'href' => strip_tags($item->fetch('link')),
);
$items[$counter]['link'] = '<a href="' . $items[$counter]['href'] . '" target="_blank" class="new_win">' . $items[$counter]['title'] . '</a>';
$counter++;
}
/*
$xml_parser = xml_parser_create();

Code: (Find) [Select]
if (empty($items))
{
echo '
', $txt['error_sp_invalid_feed'];

Code: (Replace) [Select]
*/
if (empty($items))
{
echo '
', $txt['error_sp_invalid_feed'];

This may not work for everyone. If you want a fix too, please ask.

Bump! :)
Please, i would like to kindly request the Developers Team to fix this little incompatibility issue, so we can use those rss feeds. We already know this is NOT sm portal's fault...

Yeah, it isn't very easy since people like ignoring standards and creating their own.
And slowly, you come to realize... It's all as it should be...

Offline leonpadi

  • Newbie
  • Posts: 4
  • SMF Version: 2 RC2
  • SP Version: None
Re: RSS Feeds
« Reply #12 on: January 20, 2010, 05:53:51 PM »
I know what you mean dear Sinan, at least we could try ... :)

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: RSS Feeds
« Reply #13 on: January 21, 2010, 03:03:59 AM »
So do you want to link me to your feed to check it out?
And slowly, you come to realize... It's all as it should be...

Offline leonpadi

  • Newbie
  • Posts: 4
  • SMF Version: 2 RC2
  • SP Version: None
Re: RSS Feeds
« Reply #14 on: January 21, 2010, 08:32:47 AM »
Sadly, i don't have online (at least not yet) my smf forum, all the tests i made, were locally. But i suppose i could share with you a couple of interesting greek rss feeds just to check it out with your time...

http://www.naftemporiki.gr/news/static/rss/news.xml
http://www.in.gr/RSS/feed.asp?FeedSelect=FirstPage

The above feeds i tried to use with the smf's rss reader (locally) with no success :(
According to online rss validators the 1st link complies with most of the rss rules, the second does not, but still remains a good rss source.
I must inform you that i tested valid rss links too, but no luck :(

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: RSS Feeds
« Reply #15 on: January 21, 2010, 12:16:46 PM »
For the first one, the code I suggested for ronnie42 above should work.

For the second one, I'm not sure but again the same code with this minor change should work:

Code: (Find) [Select]
   if (!$xml_array->exists('rss[0]'))
      echo 'error';
   $xml_array = $xml_array->path('rss[0]');

Code: (Replace) [Select]
   if (!$xml_array->exists('rdf:RDF[0]'))
      echo 'error';
   $xml_array = $xml_array->path('rdf:RDF[0]');
And slowly, you come to realize... It's all as it should be...

Offline leonpadi

  • Newbie
  • Posts: 4
  • SMF Version: 2 RC2
  • SP Version: None
Re: RSS Feeds
« Reply #16 on: January 22, 2010, 03:36:36 AM »
I will check it out and reply about dear Sinan, thanks for your time helping us :)

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: RSS Feeds
« Reply #17 on: January 22, 2010, 08:12:35 AM »
Okay, let us know how it goes.
And slowly, you come to realize... It's all as it should be...

Offline ronnie42

  • Semi Newbie
  • *
  • Posts: 24
  • SMF Version: 2 RC1-1
  • SP Version: 2.2.2
Re: RSS Feeds
« Reply #18 on: February 21, 2010, 12:54:08 PM »
I have read your post [SINaN]

Iwill try this options later on this week and tell you wat i have find out.

Comming weekend i have some spare time left for this.  ;)

Greetz.

Offline saosangmo

  • Semi Newbie
  • *
  • Posts: 8
    • crane
  • SMF Version: 2 RC4
  • SP Version: 2.3.3
Re: RSS Feeds
« Reply #19 on: February 22, 2010, 12:01:03 PM »
hi everyone,

I want to display RSS from my blog on the blogger.com

http://graphix.huongtinhyeu.net/feeds/posts/default

what I can do?

I configured the above URL, I get this message: "Invalid feed."

thanks