Revision history for LastEditActionInfo


Revision [22895]

Last edited on 2016-05-20 07:38:42 by DarTar [Replaces old-style internal links with new pipe-split links.]
Additions:
This page can now be found on the [[Docs:LastEditActionInfo | Wikka Documentation Server]].
An archive of [[http://wikkawiki.org/LastEditActionInfo/revisions | old revisions of this page]] is still available for reference.<<
Deletions:
This page can now be found on the [[Docs:LastEditActionInfo Wikka Documentation Server]].
An archive of [[http://wikkawiki.org/LastEditActionInfo/revisions
old revisions of this page]] is still available for reference.<<


Revision [18106]

Edited on 2008-01-27 02:34:53 by DarTar [Migrated to doc server]
Additions:
<<===This page has moved===

This page can now be found on the [[Docs:LastEditActionInfo Wikka Documentation Server]].
Thanks for updating your bookmarks!
----
An archive of [[http://wikkawiki.org/LastEditActionInfo/revisions
old revisions of this page]] is still available for reference.<<
::c::
----
CategoryMigratedDocs
Deletions:
[[WikkaDocumentation Wikka Documentation]]
----
=====""LastEdit"" Action Documentation=====
//Included in Wikka since version 1.1.6.0.//

>>==See also:==
Development: LastEdit.>>This is the documentation page for the lastedit action.::c::

In order to avoid clicking on RecentChanges to know //who// edited a page and //why//,
here's an action that prints short lastedit information in the page body:
{{lastedit show="3"}}
**Usage** ""{{lastedit}}""

**Optional parameter**: ##show##
""{{lastedit show="0"}}"" //show user only//
{{lastedit show="0"}}
""{{lastedit}}"" or ""{{lastedit show="1"}}"" //show user and notes// (default)
{{lastedit show="1"}}
""{{lastedit show="2"}}"" //show user, notes, date//
{{lastedit show="2"}}
""{{lastedit show="3"}}"" //show user, notes, date and quickdiff link//
{{lastedit show="3"}}



----
CategoryDocumentation


Revision [16937]

Edited on 2007-05-31 23:27:30 by DarTar [Reverted]
Additions:
[[WikkaDocumentation Wikka Documentation]]
----
=====""LastEdit"" Action Documentation=====
//Included in Wikka since version 1.1.6.0.//

>>==See also:==
Development: LastEdit.>>This is the documentation page for the lastedit action.::c::

In order to avoid clicking on RecentChanges to know //who// edited a page and //why//,
here's an action that prints short lastedit information in the page body:
{{lastedit show="3"}}
**Usage** ""{{lastedit}}""

**Optional parameter**: ##show##
""{{lastedit show="0"}}"" //show user only//
{{lastedit show="0"}}
""{{lastedit}}"" or ""{{lastedit show="1"}}"" //show user and notes// (default)
{{lastedit show="1"}}
""{{lastedit show="2"}}"" //show user, notes, date//
{{lastedit show="2"}}
""{{lastedit show="3"}}"" //show user, notes, date and quickdiff link//
{{lastedit show="3"}}



----
Deletions:
[[WikkaDocumentation Wikka Documentation]]
----
=====""LastEdit"" Action Documentation=====
//Included in Wikka since version 1.1.6.0.//

>>==See also:==
Development: LastEdit.>>This is the documentation page for the lastedit action.::c::

In order to avoid clicking on RecentChanges to know //who// edited a page and //why//,
here's an action that prints short lastedit information in the page body:
{{lastedit show="3"}}
**Usage** ""{{lastedit}}""

**Optional parameter**: ##show##
""{{lastedit show="0"}}"" //show user only//
{{lastedit show="0"}}
""{{lastedit}}"" or ""{{lastedit show="1"}}"" //show user and notes// (default)
{{lastedit show="1"}}
""{{lastedit show="2"}}"" //show user, notes, date//
{{lastedit show="2"}}
""{{lastedit show="3"}}"" //show user, notes, date and quickdiff link//
{{lastedit show="3"}}



----


Revision [16736]

Edited on 2007-05-31 10:42:56 by BchK3q [Reverted]
Additions:
[[WikkaDocumentation Wikka Documentation]]
----
=====""LastEdit"" Action Documentation=====
//Included in Wikka since version 1.1.6.0.//

>>==See also:==
Development: LastEdit.>>This is the documentation page for the lastedit action.::c::

In order to avoid clicking on RecentChanges to know //who// edited a page and //why//,
here's an action that prints short lastedit information in the page body:
{{lastedit show="3"}}
**Usage** ""{{lastedit}}""

**Optional parameter**: ##show##
""{{lastedit show="0"}}"" //show user only//
{{lastedit show="0"}}
""{{lastedit}}"" or ""{{lastedit show="1"}}"" //show user and notes// (default)
{{lastedit show="1"}}
""{{lastedit show="2"}}"" //show user, notes, date//
{{lastedit show="2"}}
""{{lastedit show="3"}}"" //show user, notes, date and quickdiff link//
{{lastedit show="3"}}



----
Deletions:
[[WikkaDocumentation Wikka Documentation]]
----
=====""LastEdit"" Action Documentation=====
//Included in Wikka since version 1.1.6.0.//

>>==See also:==
Development: LastEdit.>>This is the documentation page for the lastedit action.::c::

In order to avoid clicking on RecentChanges to know //who// edited a page and //why//,
here's an action that prints short lastedit information in the page body:
{{lastedit show="3"}}
**Usage** ""{{lastedit}}""

**Optional parameter**: ##show##
""{{lastedit show="0"}}"" //show user only//
{{lastedit show="0"}}
""{{lastedit}}"" or ""{{lastedit show="1"}}"" //show user and notes// (default)
{{lastedit show="1"}}
""{{lastedit show="2"}}"" //show user, notes, date//
{{lastedit show="2"}}
""{{lastedit show="3"}}"" //show user, notes, date and quickdiff link//
{{lastedit show="3"}}



----


Revision [4427]

Edited on 2005-01-11 09:52:01 by DarTar [New page]
Deletions:
==##actions/lastedit.php##==
%%(php)
<?php
// Prints short infos on last edit
// Uses parameter: show
// 0 show user only
// 1 show user and notes
// 2 show user, notes, date
// 3 show user, notes, date and quickdiff link
// set default
if ($show == "") {$show="1";}
if ($this->method == "show") {
$page = $this->page;
$pagetag = $page["tag"];
$user = ($this->LoadUser($page["user"]))? $this->Link($page["user"]) : "anonymous";
if (!($show == 0)) {
$note = ($page["note"])? ":<br/><span class=\"notes\">".$page["note"]."</span>" : "";
}
if ($show == 2 || $show == 3) {
list($day, $time) = explode(" ", $page["time"]);
$dateformatted = date("D, d M Y", strtotime($day));
$timeformatted = date("H:i T", strtotime($page["time"]));
}
if ($show == 3) {
$oldpage = $this->LoadSingle("SELECT * FROM ".$this->config["table_prefix"]."pages WHERE tag='".$this->GetPageTag()."' AND latest = 'N' ORDER BY time desc LIMIT 1");
$newid = $page["id"];
$oldid = $oldpage["id"];
$difflink = " [<a title=\"Show differences from last version\" href=\"".$this->Href("diff", $pagetag, "a=".$page["id"]."&b=".$oldpage["id"]."&fastdiff=1")."\">diff</a>]";
}
$output = "<div class=\"lastedit\">Last edited by ".$user.$note."<br /> ".$dateformatted." ".$timeformatted.$difflink."</div>";
print $output;
}
?>
%%


Revision [4426]

Edited on 2005-01-11 09:51:25 by DarTar [New page]
Additions:
[[WikkaDocumentation Wikka Documentation]]
=====""LastEdit"" Action Documentation=====
//Included in Wikka since version 1.1.6.0.//
Development: LastEdit.>>This is the documentation page for the lastedit action.::c::
In order to avoid clicking on RecentChanges to know //who// edited a page and //why//,
here's an action that prints short lastedit information in the page body:
{{lastedit show="3"}}
**Usage** ""{{lastedit}}""
**Optional parameter**: ##show##
""{{lastedit show="0"}}"" //show user only//
{{lastedit show="0"}}
""{{lastedit}}"" or ""{{lastedit show="1"}}"" //show user and notes// (default)
{{lastedit show="1"}}
""{{lastedit show="2"}}"" //show user, notes, date//
{{lastedit show="2"}}
""{{lastedit show="3"}}"" //show user, notes, date and quickdiff link//
{{lastedit show="3"}}
==##actions/lastedit.php##==
%%(php)
<?php
// Prints short infos on last edit
// Uses parameter: show
// 0 show user only
// 1 show user and notes
// 2 show user, notes, date
// 3 show user, notes, date and quickdiff link
// set default
if ($show == "") {$show="1";}
if ($this->method == "show") {
$page = $this->page;
$pagetag = $page["tag"];
$user = ($this->LoadUser($page["user"]))? $this->Link($page["user"]) : "anonymous";
if (!($show == 0)) {
$note = ($page["note"])? ":<br/><span class=\"notes\">".$page["note"]."</span>" : "";
}
if ($show == 2 || $show == 3) {
list($day, $time) = explode(" ", $page["time"]);
$dateformatted = date("D, d M Y", strtotime($day));
$timeformatted = date("H:i T", strtotime($page["time"]));
}
if ($show == 3) {
$oldpage = $this->LoadSingle("SELECT * FROM ".$this->config["table_prefix"]."pages WHERE tag='".$this->GetPageTag()."' AND latest = 'N' ORDER BY time desc LIMIT 1");
$newid = $page["id"];
$oldid = $oldpage["id"];
$difflink = " [<a title=\"Show differences from last version\" href=\"".$this->Href("diff", $pagetag, "a=".$page["id"]."&b=".$oldpage["id"]."&fastdiff=1")."\">diff</a>]";
}
$output = "<div class=\"lastedit\">Last edited by ".$user.$note."<br /> ".$dateformatted." ".$timeformatted.$difflink."</div>";
print $output;
}
?>
%%
Deletions:
=====xxxxx Action Documentation=====
Development: xxxxxAction.>>This is the documentation page for the xxxxx action.::c::
//This page is a **template**. It belongs to CategoryTemplate (which contains more handy templates). To create an action documentation page, [[http://wikka.jsnx.com/ActionInfoTemplate/clone clone this page]] to a page called **xxxxxActionInfo** (where xxxxx is the (capitalized) name of the action), replace all occurrences of 'xxxxx' with the name of the action and replace this paragraph with the actual content. Do **not** put a "Wikka Documentation" link at the top unless and until the action is part of the official Wikka distribution!//


Revision [4425]

The oldest known version of this page was created on 2005-01-11 09:46:38 by DarTar [New page]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki