Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Item1709: Applying the porting and fixing done by Don Wennick
git-svn-id: http://svn.foswiki.org/trunk/SignaturePlugin@4097 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
KennethLavrsen
authored and
KennethLavrsen
committed
Jun 11, 2009
1 parent
f41c708
commit 070300b
Showing
3 changed files
with
31 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,49 @@ | ||
%META:TOPICINFO{author="ProjectContributor" date="1111929255" format="1.0" version="8"}% | ||
%META:TOPICINFO{author="donw" date="1244670250" format="1.1" reprev="1.2" version="1.2"}% | ||
---+ Signature Plugin | ||
|
||
This plugin supports a simple tag which appears as a button with the label given by the =SIGNATURELABEL= setting. When clicked, it is replaced by the text given in the =SIGNATUREFORMAT= setting (this is typically the name of the logged in user and the current date). | ||
|
||
|
||
---++ Syntax Rules | ||
|
||
Insert the tag %<nop>SIGNATURE% anywhere in the topic, as many times as you like. Each such tag will create a signature button. | ||
|
||
The following parameters are supported for the %<nop>SIGNATURE% tag. | ||
|
||
| *Parameter:* | *Description:* | *Default:* | | ||
| ="name"= | The wiki name of a user or group or a list of users/groups. Only these users or members of these groups are allowed to sign here. | | | ||
| ="format"= | The signature format for this particular signature. The syntax is the same as for the setting variable =SIGNATUREFORMAT=. | | | ||
| *Parameter:* | *Description:* | *Default:* | | ||
| ="name"= | The wiki name of a user or group or a list of users/groups. Only these users or members of these groups are allowed to sign here. | | | ||
| ="format"= | The signature format for this particular signature. The syntax is the same as for the setting variable =SIGNATUREFORMAT=. | | | ||
|
||
---++ Plugin Settings | ||
|
||
Plugin settings are stored as preferences variables. To reference | ||
a plugin setting write ==%<nop><plugin>_<setting>%==, i.e. ==%<nop>SIGNATUREPLUGIN_SHORTDESCRIPTION%== | ||
* Format of the signature line. The variables =$wikiusername=, =$wikiname=, $username, and =$date= can be used, indicating the WikiName of the logged in user prefixed with the user web, the WikiName of the logged in user, the login name of the logged in user, and the date of signing, respectively. | ||
Plugin settings are stored as preferences variables. To reference a plugin setting write ==%<nop><plugin>_<setting>%==, i.e. ==%<nop>SIGNATUREPLUGIN_SHORTDESCRIPTION%== | ||
* Format of the signature line. The variables =$wikiusername=, =$wikiname=, $username, and =$date= can be used, indicating the WikiName of the logged in user prefixed with the user web, the WikiName of the logged in user, the login name of the logged in user, and the date of signing, respectively. | ||
* Set SIGNATUREFORMAT = $wikiusername - $date | ||
* Label of the signature button | ||
* Label of the signature button | ||
* Set SIGNATURELABEL = Sign | ||
|
||
* One line description, is shown in the %SYSTEMWEB%.TextFormattingRules topic: | ||
* One line description, is shown in the %SYSTEMWEB%.TextFormattingRules topic: | ||
* Set SHORTDESCRIPTION = Supports electronic signatures | ||
|
||
---++ Plugin Installation Instructions | ||
%$INSTALL_INSTRUCTIONS% | ||
You do not need to install anything in the browser to use this extension. The following instructions are for the administrator who installs the extension on the server. | ||
|
||
Open configure, and open the "Extensions" section. Use "Find More Extensions" to get a list of available extensions. Select "Install". | ||
|
||
* If installed correctly you should see a button with the label indicated by the setting below. | ||
If you have any problems, or if the extension isn't available in =configure=, then you can still install manually from the command-line. See http://foswiki.org/Support/ManuallyInstallingExtensions for more help. | ||
|
||
* If installed correctly you should see a button with the label indicated by the setting below. | ||
%SIGNATURE{name="AdminGroup"}% | ||
|
||
---++ Plugin Info | ||
|
||
| Plugin Author: | TWiki:Main/ThomasWeigert | | ||
| Copyright: | © 2006, Motorola | | ||
| Copyright: | � 2006, Motorola | | ||
| License: | GPL ([[http://www.gnu.org/copyleft/gpl.html][GNU General Public License]]) | | ||
| Plugin Version: | 19 Nov 2006 | | ||
| Change History: | <!-- versions below in reverse order --> | | ||
| Change History: | <!-- versions below in reverse order --> | | ||
| 09 Jun 2009: | Updated for Foswiki namespace and API, fixed groups in the name list (Main.DonWennick) | | ||
| 03 Dec 2008: | FoswikibugLItem6109: recoded to avoid use of unpublished APIs (Crawford Currie) | | ||
| 19 Nov 2006: | Support user designation and user-specific format. | | ||
| 01 Aug 2006: | Initial release | | ||
| Dependencies: | %$DEPENDENCIES% | | ||
| Dependencies: | None | | ||
| Plugin Home: | http://foswiki.org/Extensions/%TOPIC% | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters