Comparing revisions for RecentChangesAction

Additions:
[[RecentChangesActionInfo Documentation page]]
- LoadRecentChanges now only loads part of the pages (see first item on WikkaOptimization, thanks to DotMg)
print('<p><link rel="alternate" type="application/rss xml" title="RSS" href="'.$this->href("recentchanges.xml", $this->page["tag"]).'" ><img src="images/xml.png" width="36" height="14" alt="XML" /></link></p>\n');
print("
Deletions:
[[Docs:RecentChangesActionInfo Documentation page]]
- ""LoadRecentChanges()"" now only loads part of the pages (see first item on WikkaOptimization, thanks to DotMg)
print('<p><link rel="alternate" type="application/rss+xml" title="RSS" href="'.$this->href("recentchanges.xml", $this->page["tag"]).'" ><img src="images/xml.png" width="36" height="14" alt="XML" /></link></p>\n');
print("    (".$this->Link($pagetag, "revisions", $timeformatted, 0, 1, "View recent revisions list for ".$pagetag).") [".$this->Link($pagetag, "history", "history", 0, 1, "View edit history of ".$pagetag)."] -  ".$this->Link($pagetag, "", "", 0)." ⇒ $page_edited_by ".$note."<br />");
} else {
print("    ($timeformatted) [history] -  ".$page["tag"]." ⇒ $page_edited_by ".$note."<br />");
}
print "</span>\n";
$wikipingserver = $this->config["wikiping_server"];
if ($wikipingserver) {
$wikipingserver_url_parsed = parse_url($wikipingserver);
$wikipingserver_host = $wikipingserver_url_parsed["host"];
echo "<br /><br />[WikiPing enabled: Changes on this wiki are broadcast to <a href=\"http://$wikipingserver_host\">http://$wikipingserver_host</a>]";
}
?>
%%
addition to ##wikka.php## (right behind ""LoadRecentlyChanged()"")
%%(php)
function LoadRecentChanges($max=50)
if ($pages = $this->LoadAll("select tag, time, user, note from ".$this->config["table_prefix"]."pages order by time desc limit ".$max))
{
foreach ($pages as $page)
$this->CachePage($page);
return $pages;
}
}
%%
----
CategoryDevelopmentActions CategoryDevelopmentCore
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki