Revision history for RecentChangesAction
Revision [23304]
Last edited on 2016-05-20 07:38:47 by JavaWoman [Replaces old-style internal links with new pipe-split links.]Additions:
[[Docs:RecentChangesActionInfo | Documentation page]]
Deletions:
Revision [19426]
Edited on 2008-01-28 00:15:45 by JavaWoman [Modified links pointing to docs server]Additions:
[[Docs:RecentChangesActionInfo Documentation page]]
Deletions:
Revision [17808]
Edited on 2007-12-12 10:23:10 by JavaWoman [prevent function references looking as page links]Additions:
- ""LoadRecentChanges()"" now only loads part of the pages (see first item on WikkaOptimization, thanks to DotMg)
addition to ##wikka.php## (right behind ""LoadRecentlyChanged()"")
addition to ##wikka.php## (right behind ""LoadRecentlyChanged()"")
Deletions:
addition to ##wikka.php## (right behind LoadRecentlyChanged)
Additions:
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
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
Deletions:
print("
Additions:
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("
print("
Deletions:
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
Additions:
{{lastedit}}
To make a real recentchanges action, I have just copied the code from the "recently changed" action and made the necessary (small) modification.
- LoadRecentChanges now only loads part of the pages (see first item on WikkaOptimization, thanks to DotMg)
- the limit of pages to load is now set **before** loading the pages
if ($user = $this->GetUser()) {
$max = $user["changescount"];
} else {
$max = 50;
if ($pages = $this->LoadRecentChanges($max))
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))
To make a real recentchanges action, I have just copied the code from the "recently changed" action and made the necessary (small) modification.
- LoadRecentChanges now only loads part of the pages (see first item on WikkaOptimization, thanks to DotMg)
- the limit of pages to load is now set **before** loading the pages
if ($user = $this->GetUser()) {
$max = $user["changescount"];
} else {
$max = 50;
if ($pages = $this->LoadRecentChanges($max))
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))
Deletions:
if ($pages = $this->LoadRecentChanges())
if ($user = $this->GetUser()) {
$max = $user["changescount"];
} else {
$max = 50;
if (($i < $max) || !$max)
function LoadRecentChanges()
if ($pages = $this->LoadAll("select * from ".$this->config["table_prefix"]."pages order by time desc"))
Additions:
>>''The action which is (with wikka 1.1.6.0) named "recentchanges" is in fact a "recently changed" action (as stated on ImprovedRecentChanges by JavaWoman)''
//don't forget to rename the old recentchanges.php into recentlychanged.php first!//
//don't forget to rename the old recentchanges.php into recentlychanged.php first!//
Deletions:
''The action which is (with wikka 1.1.6.0) named "recentchanges" is infact the "recently changed" action (as stated on ImprovedRecentChanges by JavaWoman)''
//don't forget to rename the old recentchanges.php into recentlychanged.php!//