T R I K I A lightweight flat-file Wiki system written in PHP (and Xhtml). Version 1.0.1 2008-03-23 Based on "Giki" by Gregor Richards, 2005 - 2006; which in turn was based on "Wiki!" by Sam Thursfield , August 2002 - February 2003. Triki (c) by Tim Reeves, September 2007 - March 2008. First of all, please read giki-readme.txt. This file does not duplicate all of the information contained there. However, anything contained here supercedes anything contained there :) GETTING TRIKI RUNNING --------------------- 1. Unpack Triki to a directory inside the web root (i.e. viewable via HTTP) e.g. (/foo/bar) /htdocs/mywiki 2. FCKeditor If you want to use the FCK WYSIWYG editor then it must be at e.g. (/foo/bar) /htdocs/mywiki/FCKeditor Note that FCK bleats "Error loading /fckstyles.xml" upon being called when your server is not configured to serve Triki directly as a domain (e.g. if you call it as "http://localhost/mywiki"). So make a domain :) 3. Create the directory where Triki should store the Wiki pages. For security this should be a directory OUTSIDE the web root directory, as it has to be world writable (chmod'ed to 777). You may have an issue with php open_basedir here, it can also be set from Apache via: php_admin_value open_basedir "::/tmp" If you decide to put it "next to" the Webserver, using above example: e.g. (/foo/bar) /mywikidocs 4. Triki is configured in the file "config.php". Depending on your operating system, copy config-example-unix.php or config-example-win.php to config.php and edit it according to your paths chosen above and to the comments contained in that file. BTW that's where - among many other things - you select the language to use. Tip: The only essential things to have Triki "come up" are $rootdir and $nodedir, but it'll probably be more appealing if you also do $wikiname and $language. The rest you can do later, as you get a feel for Triki. 5. Assuming your webserver is running and will serve an "index.php", then when you now call "http://mywiki" (or whatever you've set up) you should see something like the picture: triki-install-1.gif 6. IF you have (left) "UserPermissions" configured as a plugin in config.php then you'll see the warning "WARNING: UserPermissions are unconfigured!". Note that the word "UserPermissions" is a LINK which you can click on! Do so, you'll see the page title change from "Home" to "UserPermissions", i.e. you are now "on" the not-yet-existing page "UserPermissions". So hit the menu button "Edit this page". Below the FCK edit box you'll find four links to help files, which each open in a popup window. One is called "Help on UserPermissions", click it for a popup where you can copy the approbated content of "UserPermissions" and paste it right into FCK. But notice the line "Admins (Guest)". You'll probably want to change this, to a blank-separated (quoted) list of logins with administration privilege, e.g. Admins ('Tim Reeves' 'Bill Smith') BTW logins named here need not exist (yet) but the privilege will of course only work when exactly such a login has been registered with Triki. 7. Now you can play around a bit, add some (privileged) users and create the home page, etc. 8. Once you have Triki working to this level, you'll probably want to edit the template you have chosen to your own layout (size, proportions, colors, logo etc.) HTML or XHTML? -------------- I strongly recommend the use of XHTML, and if possible, FCKeditor. Together these produce valid and optically pleasing output. If you can't use FCK then you'll need to use the plugins GWS and noHTML, which work, but since there is as yet no support for turning newlines into

...

the output is not very pretty. The files for XHTML are all those beginning with "x". The standard Xhtml template "xtemplate.html" implements a somewhat unusual but useful layout: there is only one navigation bar, on the left (most Wikis also have one at the top). The navigation bar is fixed top left in the browser window, which only shows a vertical scroller if the page content is higher than the browser window, so you get the maximum available height for your content. The scroller is a feature of . There is also a variant "xscroller-..." which puts the scroller into a fixed-height
, and has smallish default widths - I use this in an