Extension talk:SimpleFeed

Setting char limits
Hi, I've modified the extension in order to set a limit of chars displayed in the description field. The new param is limit, and you should be able to use it by entering  {DESCRIPTION} Use at Wikigender(New Home) --Fladei 18:00, 06 October 2011 (UTC)
 * [{PERMALINK} {TITLE}]

Extension does not work with feeds generated by php-scripts
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
 * 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. --128.233.100.42 23:40, 29 June 2007 (UTC)
 * This is a big problem since there are many php generated feeds. Could this be fixed? 20:20, 23 July 2007
 * Try changing $feed->feed_url($args['url']); to $feed->set_feed_url($args['url']); 16:15, 8 October 2007

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)

Got errors when using
 * include("./extensions/SimpleFeed.php");</tt>

replace it with:
 * require_once("$IP/extensions/SimpleFeed.php");</tt>

helped. --sandb 15 Oct 2009

Right, same here, use "include" doesn't work. "require_once" does.

MediaWiki 1.10 Support
Anyone get this to work in MediaWiki 1.10? 16:10, 29 June 2007

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

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.

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';
 * 13:18, 6 January 2008

gzinflate
I'm trying to use SimpleFeed with simplepie 1.1.1, php 5.1.1, and mediawiki 1.11

Whenever I load a page with it returns

Warning: gzinflate [function.gzinflate]: data error in W:\www\wi\extensions\simplepie.inc on line 7743</tt>

Anyone had this issue before? 03:13, 30 March 2008

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 19:22, 7 April 2008

Get rid of PHP Notice errors
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)


 * Hello Jonny Lamb. I was not able to find any resource to contact you. Please include the patch from Ivan above.


 * Thank you --Mark Ziegler 08:28, 29 November 2010 (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! 89.132.222.148 00:49, 22 August 2008 (UTC) (NetBandita)


 * 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...)89.132.222.148 00:56, 22 August 2008

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')) { 17 November 2008

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? 16 April 2009

Outputting HTML tags
I'm noticing that URLs within the {DESCRIPTION} area are being transcluded in full markup: e.g. link text</a> Can this be fixed in any way? Coldmachine 20:39, 20 May 2009 (UTC) I have the same problem. Any solution or advice,please? --Biris 10:53, 29 June 2009 (UTC)

It can be fixed, or at least worked around. I added this line in SimpleFeed.php after  to. One or both of those fixed the problem, I think it was the date change but the other change helps things as well. -- 24.40.138.205 03:28, 16 November 2012 (UTC)

Where can I download it?
The Github link leads nowhere.


 * You need two files to get this extension to work, SimpleFeed.php and simplepie.inc. I've put both of them up on my SkyDrive for anyone who needs at: http://skydrive.live.com/?cid=92373444895FA451&id=92373444895FA451!147
 * Note that I'm not responsible for the content of those files. I just downloaded SimpleFeed.php from a SimpleFeed link a while back and simplepie.inc from simplepie.org.  Although they are working fine for me, download and use them at your own risk.

Git with simlepie.inc
Hi everybody,

we at the TDF (The Document Foundation) do use the SimpleFeed extension. I'm cleaning up the extension. It uses many deprecated functions and because of the problematic situation to get simplepie.inc, I provide our changes at Github with our modifications. Feel free to help us to expand the extension and start pull requests. You can find the repository at https://github.com/dennisroczek/simplefeed.

Regards

Dennisroczek (talk) 09:03, 6 October 2015 (UTC)