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: 404
  • 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]

If you're interested in helping other members with support requests, consider joining the Community Support Helpers group.

Author Topic: RSS Feeds  (Read 12772 times)

0 Members and 1 Guest are viewing this topic.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: RSS Feeds
« Reply #20 on: February 27, 2010, 05:36:30 AM »
Members in this topic, except  ronnie42, please create a new topic for your issues. We can't deal with all RSS issues in a single topic.
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 #21 on: March 20, 2010, 04:19:10 AM »
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.


It's not working yet  :|

But it does say anymore: Invalid Feed so thats a bit of progress.

It does not give an error anymore but it leaves the field blank so there is no sign of an working block.

Any ideas?

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: RSS Feeds
« Reply #22 on: March 20, 2010, 11:03:17 AM »
Can you link me to the feed your are trying it with?
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 #23 on: March 20, 2010, 01:37:49 PM »
This is the feed i wanna use.

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

It seems to be a valid one altough there are some errors on THIS check

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: RSS Feeds
« Reply #24 on: March 30, 2010, 07:24:52 AM »
I have tried feed with RSS Feed block on SP 2.3.1 and SMF 2.0 RC3; it works fine for me without any modifications.
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 #25 on: March 30, 2010, 05:24:58 PM »
Hmmm that is weird because i have un-installed all my mods and put the forum in the curve theme and did the same with the portal front page.

So i went back to basic and did an other shot and guess wat, no function of the RSS feed.

It drives me mad  :angry-yell:


Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: RSS Feeds
« Reply #26 on: March 31, 2010, 03:18:14 AM »
By "without modifications" I meant; without making any edits to RSS Feed block code. What do you mean by "no function of the RSS feed"?
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 #27 on: March 31, 2010, 05:00:08 AM »
Sorry for that: I mean it did not shows the feed in the block, and when i un-instaled all the mods i had indeed the portalblocks.php wich you presented me earlyer in this topic.

could it realy be 1 of the mods?

i use the avea mod and the contact form mod

no more.

Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: RSS Feeds
« Reply #28 on: March 31, 2010, 12:24:45 PM »
I didn't say it could be related to another mod. I just said the feed you posted (http://www.ttm.nl/nieuws/rss.php) works perfect for me without changing anything in the SimplePortal files. What error do you get when you add that feed (without the edit I provided before)?
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 #29 on: April 05, 2010, 02:39:25 AM »
What error do you get when you add that feed (without the edit I provided before)?


when i use your replaced code:

I do net get no error when i place the feed but it just shows an empty block with no feed in it, just a blanco field completley empty.


When i use the original php file as you download SP it says:  error invalid feed


Offline [SiNaN]

  • Mr. SimplePortal
  • Developer
  • *
  • Posts: 6782
  • SMF Version: 2.0.15
  • SP Version: 2.3.7
Re: RSS Feeds
« Reply #30 on: April 06, 2010, 04:12:08 AM »
Did you update your portal to 2.3.2? If you haven't yet, please do and try again. I have just tested the feed again and it works with the default RSS Feed block.
And slowly, you come to realize... It's all as it should be...