SimplePortal

Support => English Support => Topic started by: combinator on August 28, 2009, 12:29:45 PM

Title: RSS feed displays in preview mode but displays "invalid feed" on portal page
Post by: combinator on August 28, 2009, 12:29:45 PM
Hello Support Community,

Thanks for the opportunity to have your able assistance with this issue.

I am running Simple Portal 2.2.2 and SMF 1.1.10 on the site http://photospa.com

This and other flickcr feeds from the Library of Congress display properly in preview mode but show up as invalid on the portal page itself.>> http://api.flickr.com/services/feeds/photos_public.gne?id=8623220@N02&lang=en-us&format=rss_200

Other Library of Congress Flickr feeds, (such as this one- http://api.flickr.com/services/feeds/photoset.gne?set=72157612249760312&nsid=8623220@N02&lang=en-us), come up as invalid feeds in 2.2.2.  I attempted to address the issue by converting this particular feed to a Feedburner feed but that didn't work either (even though the feedburner diagnostic tool described it as "healthy").

Screenshot of the preview view is attached

Any workarounds or fixes you may be able to suggest would be highly appreciated.

Thanks!

Title: Re: RSS feed displays in preview mode but displays "invalid feed" on portal page
Post by: Nathaniel on August 28, 2009, 07:23:40 PM
Well, according to a RSS feed validator (http://validator.w3.org) they are both invalid feeds.

There are a few unresolved issues with SimplePortal, relating to RSS feeds. However, SimplePortal uses inbuilt PHP functions to parse RSS feeds, so it depends on those (which can't really be changed that easily). I will make a note of this for the devs though, to see if they can find a solution.
Title: Re: RSS feed displays in preview mode but displays "invalid feed" on portal page
Post by: combinator on September 01, 2009, 09:13:28 PM
Thanks Nathaniel.  I sincerely appreciate your timely response and regret my delayed thanks!
Title: Re: RSS feed displays in preview mode but displays "invalid feed" on portal page
Post by: [SiNaN] on January 20, 2010, 01:59:46 PM
Try this:

./Sources/PortalBlocks.php

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

$items = array();
$counter = 0;
foreach ($xml_array->set('entry') as $item)
{
$items[$counter] = array(
'title' => strip_tags($item->fetch('title')),
'content' => strip_tags($item->fetch('content')),
'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'];
SimplePortal 2.3.8 © 2008-2024, SimplePortal