Hi,
This weekend I did install magpierss extension and it works fine on
localhost
Simply install the pack Magierss in extension/magpierss (correct the name
from the .zip)
Simply create the line "include "$IP/extension/rss.php"; (that will call
extension/magpierss/rss-fetch.inc)
Simply copy the code of rss.php (from Alexndr) with a good text editor
Simply correct with this editor a lot of pb between "abc" and
<<abc>>
(better : doubles guillements in french) in code of Alexndr (that gives the
PHP errors when MW launches)
Simply go to a wikipage and write <rss>html://tagada/rssfeed to show</rss>
... et ça roule tout seul ensuite .. que du bonheur ++ ;O)))
@+
----- Original Message -----
From: "Steve VanSlyck" <s.vanslyck(a)spamcop.net>
To: "MediaWiki Announcements List" <mediawiki-l(a)lists.wikimedia.org>
Sent: Monday, February 25, 2008 12:07 AM
Subject: [Mediawiki-l] Extension help
Does anyone know how to resolve these problems:
One gentleman suggested I check the $url variable, but I installed the
magpierss code exactly as instructed (see lines from LocalSettings.php
below) and I would not know what else to do.
I'd actually prefer to use RSSReader (which is what I'm using now) but
it had even more errors. Magpie/Alexndr had only these three.
Notice: Undefined variable: url in C:\Inetpub\olr\wiki\LocalSettings.php on
line 191
Warning: MagpieRSS: fetch_rss called without a url in
C:\Inetpub\olr\wiki\extensions\magpierss\rss_fetch.inc on line 238
Parse error: syntax error, unexpected '>' in
C:\Inetpub\olr\wiki\extensions\magpierss\rss.php on line 130
=============================
LocalSettings.php lines 189-192:
189 # AlxndrRSS
190 require_once("extensions/magpierss/rss_fetch.inc");
191 $rss = fetch_rss($url);
192 include_once("extensions/magpierss/rss.php");
=============================
rss_fetch.inc lines 228-240:
228 function error ($errormsg, $lvl=E_USER_WARNING) {
229 global $MAGPIE_ERROR;
230
231 // append PHP's error message if track_errors enabled
232 if ( isset($php_errormsg) ) {
233 $errormsg .= " ($php_errormsg)";
234 }
235 if ( $errormsg ) {
236 $errormsg = "MagpieRSS: $errormsg";
237 $MAGPIE_ERROR = $errormsg;
238 trigger_error( $errormsg, $lvl);
239 }
240 }
=============================
rss.php lines 128-130:
128 #check for errors.
129 if ($rss->ERROR) {
130 return «<div>Failed to load RSS feed from
$url: ».$rss->ERROR."</div>"; #localize...
131 }
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
---------------------------------------------------------------------------------------
Orange vous informe que cet e-mail a ete controle par l'anti-virus mail.
Aucun virus connu a ce jour par nos services n'a ete detecte.
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.20.9/1295 - Release Date: 23/02/2008
21:35