Anyway, the first version of TiddlyLock was a JavaScript hack - I modified the core code directly.
<smackhand>ouchI'm a reformed citizen now and have re-coded TiddlyLock into TiddlyLockPlugin, the self-contained, easy-to-install, set-and-forget plugin that allows multiple people to access and edit the same TiddlyWiki file on a shared drive, but prevents users from overwriting each other's changes.
Simply use the ImportTiddlers tiddler in your TiddlyWiki (look for it on the Shadowed tiddlers tab) and point it to http://www.minormania.com/tiddlylock/tiddlylock.html. Select TiddlyLockPlugin and import it.
Reload your TiddlyWiki and set the Username and Password options in the OptionsPanel or in the GettingStarted tiddler.
Now, every time you click Edit the TiddlyWiki will be locked by you. Any other user who tries to edit the same TiddlyWiki will be told that you are locking it. They will have to wait until you are finished and refresh their browser before they can edit it.
It's not foolproof, and 'passwords' are visible and unencrypted, so don't expect enterprise-level security.
To Do:
- Obfuscate passwords
- Encrypt lock file