Extension talk:SimpleFeed

https feeds
I had trouble using this extension with https-feeds. Turns out that the extension sends "ssl://$host" as the hostname in the Host header.

My ugly fix: $ diff -u simplepie.inc simplepie.fixed.ssl.inc --- simplepie.inc	2008-11-17 16:20:04.000000000 +0100 +++ simplepie.fixed.ssl.inc	2008-11-17 16:20:41.000000000 +0100 @@ -7727,7 +7727,15 @@ 						$get = '/'; } 					$out = "GET $get HTTP/1.0\r\n"; -					$out .= "Host: $url_parts[host]\r\n"; +					if (preg_match("/^ssl:\/\//", $url_parts[host])) +					{ +					 $foo = preg_replace("/^ssl:\/\//", "", $url_parts[host]); +					 $out .= "Host: $foo\r\n"; +					} +					else +					{ +					 $out .= "Host: $url_parts[host]\r\n"; +					} 					$out .= "User-Agent: $useragent\r\n"; if (extension_loaded('zlib')) {

Cache Directory
When installing, I had to put the cache directory in the root wiki folder, rather than extensions/. Anything else gave me an error. Seems that SimplePie looks there. Cheezerman 19:08, 11 December 2007 (UTC)

--

No error for me, but also nothing in the cache folder. (Le Pubard)

I had to change something in simplepie.inc :

before : var $cache_location = './cache'; after : var $cache_location = 'extensions/cache';

Other
Hi, I have a problem it seems your extension does not work with feeds generated by php-scripts. It does not show anything, only a blank page. The URL of my RSS feed: http://galdom.portal-werner.de/e107_plugins/rss_menu/rss.php?1.2 This is a big problem since there are many php generated feeds. Could this be fixed?


 * Ditto. When I paste your BBC example into my page, I just get the same thing as the output. MatthewBurton 20:56, 7 April 2007 (UTC)

This extension really does not work for me. Just crashes the page on which I try to include the tags

Try changing $feed->feed_url($args['url']); to $feed->set_feed_url($args['url']);

How to install
I couldn't make it work using the provided instructions either. This worked for me
 * 1) Save SimpleFeed.php to /extensions
 * 2) Save simplepie.inc to /extensions
 * 3) Create /extensions/cache. Set correct write permission (chmod). Webserver-user should be allowed to write.
 * 4) Add include("./extensions/SimpleFeed.php"); to LocalSettings.php. Last line works fine.

Note: If you are in a corporate environment, check out any proxy servers or firewalls

SimplePie have their own extension for MediaWiki. I installed that first and the instructions are really good. However, you are not able to modify the layout as much as with SimpleFeed.

13:38, 16 April 2007 (UTC)

MediaWiki 1.10 Support
Anyone get this to work in MediaWiki 1.10?

Not Yet
I get Fatal error: Call to undefined method SimplePie::feed_url in / /SimpleFeed.php on line 71

The other SimplePie extension does not work either.

Any help would be appreciated.

Mguentz 01:58, 13 August 2007 (UTC)


 * See Extension:SimpleFeed--Arcy 18:39, 7 November 2007 (UTC) That worked for me.

Howto use SimplePie Addons
Hi,

I tried to use one of the SimplePie Addons (i.e. http://simplepie.org/wiki/addons/yahoo_weather)

By adding require_once('simplepie_yahoo_weather.inc'); [...] $itemwikitext = str_replace('{WEATHER_CONDITION}', $weather->get_condition, $itemwikitext); I just get the error Fatal error: Call to a member function get_condition on a non-object in /is/htdocs/wp1064305_TTQI81XDD8/www/wiki/extensions/SimpleFeed.php on line 114

But isn't that definied in simplepie_yahoo_weather.inc? I'm using the file from Ryan

Minor bugs
To get rid of PHP Notice errors ...

PHP Notice: Undefined index:  type in /var/www/wiki/wk/extensions/SimpleFeed.php on line 117

... replace ...

if ($args['type'] == 'planet')

... in line 117 with ...

if (isset($args['type']) && $args['type'] == 'planet')

Ivan Pepelnjak 14:03, 6 May 2008 (UTC)

In reverse order
aug 28: I think there's a bug when displaying multiple feed-tags on one page. I made a page with feeds from various sources on a clean install and the Wiki is grinding to a halt after a few refreshes.

--

Hi,

This extension almost works fine but as for my Hungarian wiki, it publicate the feeds in reverse order. The latest news are below... :( What should I do? Thanks!

after some minutes....

Hmmm.... I have solved. :D In the simplepie.inc there is in the line of 515 the next 'var': var $order_by_date = false; You should change it from true to false. That's all. :)

(sorry for my grammar mistakes if...)

Firefox CSS issues in Mediawiki 1.14
Is anyone else having issues with this extension and importing common.css, etc for Mediawiki 1.14? With my install it seems to be overriding things that should be content type of type/css and forcing type/html which ends up breaking the css import. Anyone else see this and know how to fix it?