Revision history for Mod006bRecentChangesXML
Revision [23274]
Last edited on 2016-05-20 07:38:47 by JavaWoman [Replaces old-style internal links with new pipe-split links.]Additions:
[[http://www.wakkawiki.com/MatthiasAppel | MatthiasAppel]]
[[http://nontroppo.org/wiki/ | http://nontroppo.org/wiki/]] //(archive)//
**[[http://www.wakkawiki.com/SaschaCarlin | SaschaCarlin]]**
[[http://www.wakkawiki.com/RecentChangesRss | RecentChangesRss @ WakkaWiki]]
[[http://www.wakkawiki.com/RecentChangesRss | RecentChangesRss]]
[[http://nontroppo.org/wiki/ | http://nontroppo.org/wiki/]] //(archive)//
**[[http://www.wakkawiki.com/SaschaCarlin | SaschaCarlin]]**
[[http://www.wakkawiki.com/RecentChangesRss | RecentChangesRss @ WakkaWiki]]
[[http://www.wakkawiki.com/RecentChangesRss | RecentChangesRss]]
Deletions:
[[http://nontroppo.org/wiki/ http://nontroppo.org/wiki/]] //(archive)//
**[[http://www.wakkawiki.com/SaschaCarlin SaschaCarlin]]**
[[http://www.wakkawiki.com/RecentChangesRss RecentChangesRss @ WakkaWiki]]
[[http://www.wakkawiki.com/RecentChangesRss RecentChangesRss]]
Revision [19301]
Edited on 2008-01-28 00:14:45 by JavaWoman [Modified links pointing to docs server]No Differences
Additions:
**IanAndolina**
Deletions:
Additions:
[[http://www.wakkawiki.com/RecentChangesRss RecentChangesRss @ WakkaWiki]]
Deletions:
Additions:
[[http://www.wakkawiki.com/MatthiasAppel MatthiasAppel]]
**[[http://www.wakkawiki.com/IanAndolina IanAndolina]]**
[[http://nontroppo.org/wiki/ http://nontroppo.org/wiki/]] //(archive)//
**[[http://www.wakkawiki.com/SaschaCarlin SaschaCarlin]]**
[[http://www.wakkawiki.com/RecentChangesRss RecentChangesRss]]
**[[http://www.wakkawiki.com/IanAndolina IanAndolina]]**
[[http://nontroppo.org/wiki/ http://nontroppo.org/wiki/]] //(archive)//
**[[http://www.wakkawiki.com/SaschaCarlin SaschaCarlin]]**
[[http://www.wakkawiki.com/RecentChangesRss RecentChangesRss]]
Deletions:
** Ian Andolina **
http://nontroppo.org/wiki/
**""SaschaCarlin""**
Additions:
**""MatthiasAppel""**
http://www.wakkawiki.com/MatthiasAppel
**""SaschaCarlin""**
http://www.wakkawiki.com/RecentChangesRss
Grabbed a working implementation from Gadma/Nontroppo.
**Updated**
Switched over to implementation from ""SaschaCarlin"".
http://www.wakkawiki.com/RecentChangesRss
... and then merged it just a bit with some of the Gadma/nontroppo code. Here's the final code:
**handlers/page/recentchanges.xml.php**
%%(php)
<?php
header("Content-type: text/xml");
$xml = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
$xml .= "<rss version=\"0.92\">\n";
$xml .= "<channel>\n";
$xml .= "<title>".$this->GetConfigValue("wakka_name")." - ".$this->tag."</title>\n";
$xml .= "<link>".$this->GetConfigValue("base_url")."</link>\n";
$xml .= "<description>Recent changes of ".$this->GetConfigValue("wakka_name")."</description>\n";
$xml .= "<language>en-us</language>\n";
if ($pages = $this->LoadRecentlyChanged())
{
$max = $this->GetConfigValue("xml_recent_changes");
$c = 0;
foreach ($pages as $page)
{
$c++;
if (($c <= $max) || !$max)
{
$xml .= "<item>\n";
$xml .= "<title>".$page["tag"]."</title>\n";
$xml .= "<link>".$this->href("show", $page["tag"], "time=".urlencode($page["time"]))."</link>\n";
$xml .= "\t<description>".$page["time"]." by ".$page["user"]." - ".$page["note"]."</description>\n";
//$xml .= "\t<guid>".$page["id"]."</guid>";
$xml .= "\t<pubDate>".date("r",strtotime($page["time"]))."</pubDate>\n";
$xml .= "</item>\n";
}
}
}
else
{
$xml .= "<item>\n";
$xml .= "<title>Error</title>\n";
$xml .= "<link>".$this->href("show")."</link>\n";
$xml .= "<description>You're not allowed to access this information.</description>\n";
$xml .= "</item>\n";
}
$xml .= "</channel>\n";
$xml .= "</rss>\n";
print($xml);
?>
%%
http://www.wakkawiki.com/MatthiasAppel
**""SaschaCarlin""**
http://www.wakkawiki.com/RecentChangesRss
Grabbed a working implementation from Gadma/Nontroppo.
**Updated**
Switched over to implementation from ""SaschaCarlin"".
http://www.wakkawiki.com/RecentChangesRss
... and then merged it just a bit with some of the Gadma/nontroppo code. Here's the final code:
**handlers/page/recentchanges.xml.php**
%%(php)
<?php
header("Content-type: text/xml");
$xml = "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n";
$xml .= "<rss version=\"0.92\">\n";
$xml .= "<channel>\n";
$xml .= "<title>".$this->GetConfigValue("wakka_name")." - ".$this->tag."</title>\n";
$xml .= "<link>".$this->GetConfigValue("base_url")."</link>\n";
$xml .= "<description>Recent changes of ".$this->GetConfigValue("wakka_name")."</description>\n";
$xml .= "<language>en-us</language>\n";
if ($pages = $this->LoadRecentlyChanged())
{
$max = $this->GetConfigValue("xml_recent_changes");
$c = 0;
foreach ($pages as $page)
{
$c++;
if (($c <= $max) || !$max)
{
$xml .= "<item>\n";
$xml .= "<title>".$page["tag"]."</title>\n";
$xml .= "<link>".$this->href("show", $page["tag"], "time=".urlencode($page["time"]))."</link>\n";
$xml .= "\t<description>".$page["time"]." by ".$page["user"]." - ".$page["note"]."</description>\n";
//$xml .= "\t<guid>".$page["id"]."</guid>";
$xml .= "\t<pubDate>".date("r",strtotime($page["time"]))."</pubDate>\n";
$xml .= "</item>\n";
}
}
}
else
{
$xml .= "<item>\n";
$xml .= "<title>Error</title>\n";
$xml .= "<link>".$this->href("show")."</link>\n";
$xml .= "<description>You're not allowed to access this information.</description>\n";
$xml .= "</item>\n";
}
$xml .= "</channel>\n";
$xml .= "</rss>\n";
print($xml);
?>
%%
Deletions:
Additions:
** Ian Andolina **