This website is driven by PhpWiki. While being a pretty sophisticated piece of software, it requires some patching before it looks like what you're seeing now. This list of modifications is kept as reference, as well for us (if we have to set it up again) as for you (if you fancy copying our looks).



index.php

passencrypt.php has a bug that results in random passwords being generated even if you enter your own password. This is patched easily:

103,107d102

The next one allows JPEGs to be named either .jpg or .jpeg.

$InlineImages = "png|gif|jpg|jpeg"

themes/default/templates/editpage.tmpl

PhpWiki offers two different markup schemes, "old" and "new" markup. While this is nice compatibility-wise, it's pretty confusing if you set up a new Wiki. The following patches disable "old markup" altogether:

78d77
<    <?=$OLD_MARKUP_CB?>  <?=_("Use old markup")?>
108d106
<      document.getElementById('oldMarkup').style.display="none";
111d108
<      document.getElementById('oldMarkup').style.display="block";
118,122d114
< <div id="oldMarkup" class="wiki-edithelp">
130,137d120
<
< <script language="JavaScript1.3" type="text/javascript">
< <!--
< if (document.getElementById) {
<   showOldMarkupRules(document.getElementById('useOldMarkup').checked);
< }
< // -->
< </script>
115,126c117
< <p><?= fmt("See %s tips for editing.", WikiLink(_("GoodStyle"))) ?></p>
< <?plugin IncludePage page=_("TextFormattingRules") section=_("Synopsis") quiet=1?>
---
> <?plugin IncludePage page=_("WikiWikiWeb") section=_("Basic Markup") quiet=1?>

themes/default/templates/login.tmpl

The login dialog shows an option "Create Homepage", which seems to be disabled. It's confusing, hence we removed it.

35,42d34
< <?php
<   $dbi = request->getDbh();
<   $checked = (!empty($userid) and $dbi->isWikiPage($userid)) ? '' : 'checked="checked"';
< ?>
< <tr>
<   <td align="right"><?= _("Create Homepage:") ?></td>
<   <td><input type="checkbox" name="auth[homepage]" <?=$checked?> /></td>
< </tr>

themes/default/templates/top.tmpl

The default layout shows the logo above the navigation bar. We felt it wastes vertical space, so we merged logo and navbar with the next two patches.


themes/default/templates/navbar.tmpl

We found that, quite often, we clicked on "RecentChanges" only to click through to RecentEdits; hence, we added a link to RecentEdits into the navbar.


Theme tweaking

We wanted only one theme; "MacOS" looked good, especially the background, but was inconsistent in the button support (some buttons showed up in system default layout), so we added the MacOS background to "default".


Cleanup


XML Doctype

MartinBaute occasionally uses a Handheld PC to access the website; the Internet Explorer 4.01 installed in the ROM of these machines choked on the XML doctype declaration, so it was removed from all files (search for "xhtml1-").