Comparing revisions for RecentChangesAction
- [16788] 2007-05-31 10:48:27 by XfuCei (unregistered user)
- [19426] 2008-01-28 00:15:45 by JavaWoman (unregistered user) [Modified links pointing to docs server]
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("
- 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:
- ""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