TWiki Hacks

From Biowiki
Revision as of 23:43, 1 January 2017 by Move page script (talk | contribs) (Move page script moved page TWikiHacks to TWiki Hacks: Rename from TWiki to MediaWiki style)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page describes some of the most venerable plugins and customizations to this TWiki site.-- Ian Holmes - 02 Apr 2009

---

Installed TWiki.DirectedGraphWebMapPlugin -- Ian Holmes, 11 November 2005

---

Installed TWiki.MathModePlugin for excellent latex2html-style math graphics in pages. See Teaching.KaKsRatios for an example. -- Ian Holmes, 11 November 2005

---

Installed TWiki.KoalaSkin, added new logo. -- Ian Holmes, 15 October 2005

---

Implemented a basic form of spam prevention: adding new external links is prohibited to non-authenticated users. -- Ian Holmes, 7 July 2005

---

Hmmmm, added TWiki.InterSeqs and edited TWiki.InterWikis, but link to YaleCGI:TestingCGIApplications failed when I omitted trailing $page. Think I messed up the code for that... Ian Holmes, 07 Mar 05

---

We now have a simple blog-like functionality (TWiki.LabLogPlugin, developed in-house). See Web Critic for a functional example. I've also added TWiki.SessionPlugin (see link on left bar) and TWiki.EFetchPlugin (see e.g. Trash.PhylogeneticAlignmentReader or Paper Archive). - Ian Holmes, 5 March 2005

---

Put the TWiki code under CVS - Ian Holmes, 28 Feb 05

---

Ideas for upcoming enhancements:

---

Chris, I'll probably do this quite soon but just to keep a journal & let you know what's up (feel free to dive into the Perl and do it yourself if the mood strikes you; I've been ordered to do chores this morning): RCS seems to be working except that if you edit a file while the lock is active, then it treats all your edits as part of the same revision.

There is a checkbox on the save page that says "release lock file". This does delete the RCS lockfile. However, currently the TWiki's concept of whether the "lock" is active actually doesn't depend on the lockfile, but only on whether the file was recently edited.

Quick fix (done): Temporarily changed line 399 of file /var/www/twiki/lib/TWiki.cfg from $doKeepRevIfEditLock = "1"; ...to... $doKeepRevIfEditLock = "0"; so that RCS is used even if the "lock" is active

Proper long-term fix (not yet done): Check for RCS lockfile on line 840 of /var/www/twiki/lib/TWiki/Store.pm (see "TODO" comment)

Will probably want to put a lockfile detection method in one of these files /var/www/twiki/lib/TWiki/Store/RcsFile.pm /var/www/twiki/lib/TWiki/Store/RcsWrap.pm

NB the line numbers might be slightly different from the ones in TWiki20040902.tar.gz because I uncommented a few debug/logging statements and may have inserted some lines here & there. Have not substantially edited the code yet though.

For reference:

  • TWiki logfile for Feb 2005 is /var/www/twiki/data/log200502.txt
  • TWiki debug file is /var/www/twiki/data/debug.txt
  • Apache error logfile is /var/log/apache/error.log
  • Apache access logfile is /var/log/apache/access.log

-- Ian Holmes - 25 Feb 2005

Redirects and aliases in httpd.conf:

[[Redirect Match]] ^/twiki/bin/view/Main/WebHome/?$ http://biowiki.org/
[[Redirect Match]] ^/twiki/bin/view/Main/([A-Z][A-Za-z_]+[A-Z][A-Za-z_]+)/?$ http://biowiki.o\
rg/$1
[[Alias Match]] ^/$ /var/www/twiki/bin/view
[[Alias Match]] ^/([A-Z][A-Za-z_]+[A-Z][A-Za-z_]+)/?$ /var/www/twiki/bin/view/Main/$1
[[Script Alias]] /twiki/bin/ /var/www/twiki/bin/
... (rest of usual TWiki stuff)

-- Ian Holmes - 25 Feb 2005