==== Wikka Mod 006 ==== Type: Bug fix ---- ===Credit:=== **""MatthiasAppel""** [[http://web.archive.org/web/20040810215014/http://www.wakkawiki.com/MatthiasAppel | MatthiasAppel]] **IanAndolina** [[http://web.archive.org/web/20041204030136/http://nontroppo.org/wiki/ | http://nontroppo.org/wiki/]] //(archive)// **[[http://web.archive.org/web/20040811013824/http://www.wakkawiki.com/SaschaCarlin | SaschaCarlin]]** [[http://web.archive.org/web/20040813204846/http://www.wakkawiki.com/RecentChangesRss | RecentChangesRss @ WakkaWiki]] ---- Wakka has a XML link on the RecentChanges page, but it didn't work. Grabbed a working implementation from Gadma/Nontroppo. Modified: /wakka.php /actions/recentchanges.php ---- **Updated** Switched over to implementation from ""SaschaCarlin"". [[http://web.archive.org/web/20040813204846/http://www.wakkawiki.com/RecentChangesRss | 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) \n"; $xml .= "\n"; $xml .= "\n"; $xml .= "".$this->GetConfigValue("wakka_name")." - ".$this->tag."\n"; $xml .= "".$this->GetConfigValue("base_url")."\n"; $xml .= "Recent changes of ".$this->GetConfigValue("wakka_name")."\n"; $xml .= "en-us\n"; if ($pages = $this->LoadRecentlyChanged()) { $max = $this->GetConfigValue("xml_recent_changes"); $c = 0; foreach ($pages as $page) { $c++; if (($c <= $max) || !$max) { $xml .= "\n"; $xml .= "".$page["tag"]."\n"; $xml .= "".$this->href("show", $page["tag"], "time=".urlencode($page["time"]))."\n"; $xml .= "\t".$page["time"]." by ".$page["user"]." - ".$page["note"]."\n"; //$xml .= "\t".$page["id"].""; $xml .= "\t".date("r",strtotime($page["time"]))."\n"; $xml .= "\n"; } } } else { $xml .= "\n"; $xml .= "Error\n"; $xml .= "".$this->href("show")."\n"; $xml .= "You're not allowed to access this information.\n"; $xml .= "\n"; } $xml .= "\n"; $xml .= "\n"; print($xml); ?> %%