Wiki source for Signature


Show raw source

This is a small script to enable editors to easily add their name and a datetime stamp.
This is particulaly useful for colaborative edits.

Simply create a file called Signature.php in the actions folder containing the following code:
%%(php)<?php
echo "-- " . $this->Format($this->GetUserName()) . " " . date("H:i, j M Y (T)");
?>%%

~& This action won't work as described, since it will display the name of the //current user// and the //current timestamp//. To add a signature/timestamp when editing a page see the hack described at PseudoFormatters. Alternatively, you can use the ##""{{lastedit}}""## action -- DarTar

You should format the date/time to suite your own preference.
----

CategoryUserContributions
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki