Extension talk:News Channel

Blank line; missing properties.
I have been trying to implement this extension. Much seems to be going OK, but I cannot display the feed (or subscribe to it successfully.) The main problem seems to be that the feed XML has a blank line at the beginning. However, there are other issues. The Apache2 error log shows the following Undefined properties:
 * NewsChannel::$newsWikiExcludeCategory
 * NewsChannel::$authorizedEditors

and undefined variables:
 * $wgNewsChannelExportTextOnly

all in NewsChannel_body.php

The blank line shows up in the Recent Changes feed, also.

Any help would be greatly appreciated.

Susan 18:22, 17 February 2009 (UTC)


 * Sorry, I can't help with blank line. It's not the first time I here about blank line, that breaks the feed recognition, but I have no solution, and that line doesn't seem to be connected with "News Channel" extension. Please, send me a note, if you find out something. --CodeMonk 18:15, 27 February 2009 (UTC)


 * I'll fix other mentioned minor problems in next release. --CodeMonk 18:15, 27 February 2009 (UTC)


 * The tip about the blank lines worked. The undefined variable is fixed by adding  $wgNewsChannelExportTextOnly the global declaration line:
 * global $wgServer, $wgNewsChannelExportTextOnly;
 * in the function renderWikiMarkup  206.112.75.239 12:54, 14 April 2009 (UTC)

RemoveArticlePrefix and namespace
Just a note to anyone who, like me initially, wonders how to strip both namespace and prefix from article titles: the namespace won't be included in the title, so it shouldn't be mentioned in 's value. So even if the News/...-titled pages you want to follow are in the Talk: namespace, you should still specify  as just 'News/' instead of 'Talk:News/' if you want the titles without the Talk:News/ prefix. -Jani Uusitalo 14:14, 24 February 2009 (UTC)


 * Yes, that's right. I'll mention that in documentation. --CodeMonk 18:15, 27 February 2009 (UTC)

Does not work well with my German wiki
I installed this extension on my local wiki (language de). When subscribing a single page history everything works just fine: a rss feed is created as follows (Firefox): feed location: http://127.0.0.1/mediawiki/index.php?title=News_1&feed=rss&action=history site location: http://127.0.0.1/mediawiki/index.php?title=News_1&action=history also the feed changes when the page is revised.

However the category subscription does not work on my wiki. When using IE6 I go to the Special page and don't have to select anything because it's just fine: rss & Category=News. After clicking "Create feed" I get a file for downloading as follows:   MyWikiSite.com IT News http://127.0.0.1/ Most hot IT news on MyWikiSite. en-US Copyright © MyWikiSite.com. All rights reserved. http://www.mywikisite.com/rssicon.png MyWikiSite.com IT News http://127.0.0.1/ Wed, 04 Mar 2009 00:19:04 +0100 News Channel 1.61 (MediaWiki extension) http://www.rssboard.org/rss-specification 60 		

but I cannot open the file (in IE or Outlook). Using the special page with Firefox and after clicking "create feed" I get a.m. contents on screen and I can click on "create" again. But then a feed is created as follows: feed location: http://127.0.0.1/mediawiki/index.php?title=Spezial:Nachrichtenkanal&format=rss20&limit=10&wpSubmitNewsChannelParams=Feed+erstellen site location: http://127.0.0.1/

does anybody else have this kind of problem? is the usage of the German language causing this issue? any help is appreciated K.W.


 * If I remember correctly, IE 6 doesn't support feeds, you need to upgrade to IE 7. --CodeMonk 01:11, 5 March 2009 (UTC)


 * I spent a lot of time - but finally I got it - some settings in LocalSettings.php are mandatory - otherwise you can run into trouble - as I've seen. Following settings I needed to activate:
 * OLD: (did not work)

$wgNewsChannelAuthorizedEditors = array( 'John Doe', 'Jane Doe', 'Alex' );
 * 1) $wgNewsChannelLogoImage = 'http://www.mywikisite.com/rssicon.png';
 * 2) $wgNewsChannelRemoveArticlePrefix = 'News/';
 * NEW: (works)

$wgNewsChannelRemoveArticlePrefix = 'News/'; $wgNewsChannelAuthorizedEditors = array; $wgNewsChannelLogoImage = 'http://www.mywikisite.com/rssicon.png';
 * Maybe someone will shed some light on which setting is mandatory and which is optional - but for now I'm satisfied. --K.W. 84.149.230.168 11:51, 5 March 2009 (UTC)