SimplePortal
Support => English Support => Topic started 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!
-
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.
-
Thanks Nathaniel. I sincerely appreciate your timely response and regret my delayed thanks!
-
Try this:
./Sources/PortalBlocks.php
$xml_parser = xml_parser_create();
$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();
if (empty($items))
{
echo '
', $txt['error_sp_invalid_feed'];
*/
if (empty($items))
{
echo '
', $txt['error_sp_invalid_feed'];