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:
[[Docs:RecentChangesActionInfo Documentation page]]


Revision [19426]

Edited on 2008-01-28 00:15:45 by JavaWoman [Modified links pointing to docs server]
Additions:
[[Docs:RecentChangesActionInfo Documentation page]]
Deletions:
[[RecentChangesActionInfo Documentation page]]


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()"")
Deletions:
- LoadRecentChanges now only loads part of the pages (see first item on WikkaOptimization, thanks to DotMg)
addition to ##wikka.php## (right behind LoadRecentlyChanged)


Revision [16989]

Edited on 2007-05-31 23:27:32 by NilsLindenberg [Reverted]
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
Deletions:
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("


Revision [16788]

Edited on 2007-05-31 10:48:27 by XfuCei [Reverted]
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("
Deletions:
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


Revision [8820]

Edited on 2005-06-04 11:46:00 by NilsLindenberg [improved (see text)]
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))
Deletions:
To make a real recentchanges action, I have just copied the code from the "recently changed" action and made the necessary (small) modification. Since all pages are loaded into "a sort of cache", this action definitely needs improvement!
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"))


Revision [8811]

Edited on 2005-06-03 19:04:23 by JavaWoman [minor]
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!//
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!//


Revision [8804]

The oldest known version of this page was created on 2005-06-03 17:58:13 by NilsLindenberg [minor]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki