Wiki Guestbook
From MilkysWiki
| Wiki-Guestbook | |
|---|---|
| developer: | Tino Reichardt |
| current version: | 0.13 / 2007-12-29 |
| operating system: | * |
| category: | Wiki extension |
| licence: | GPL version 2 |
| language: | en,de,fr,vi,nl,sv |
| website: | wiki-gbook |
| i18n |
|---|
| English |
| Deutsch |
Contents |
Overview
This Mediawiki extension adds a guestbook to your wiki installation.
It uses the following user preferences:
- language of currently loggoed in user
- german and english are currently supported
- the guestbook entry count per page is defined with the setting of:
- preferences->search->Hits per page
Installation
The installation requires following steps:
- extracting gbook.tar.gz to "$wiki/extensions/"
- enabling the extension in Localsettings.php
- integrate Special:Guestbook into the Mediawiki:Sidebar or create some link
Installing the files
change to the /extensions/ directory
cd /home/www/example.org/Wiki/extensions/
download the tarball:
wget http://www.mcmilk.de/projects/wiki-gbook/gbook.tar.bz2
extract the archiv and delete it:
tar xjvf gbook.tar.bz2 rm -f gbook.tar.bz2
adjust Localsettings.php
Add this line at the end of Localsettings.php:
require_once("extensions/gbook/gbook.php");
You can also adjust the moderating rights for the guestbook to some user groups. The default defines, that the user of the group sysop have the ability to moderate/delete guestbook entries. As default exist this setting in gbook.php.
$wgGroupPermissions['sysop']['gbook'] = true;
linking the Special:Guestbook
The guestbook is a specialpage, which is not shown is the Special:Specialpages overview. You can create a link to the guestbook with [[Special:Guestbook]]... thats it ;)
Styling
The guestbook uses the following css styles:
- class successbox (creating a new entry was successful)
- class errorbox (for all error messages)
- class visualClear (directly after some error/success box)
- class gbook
- DIV Layer, which will be used around each entry
- the class gbook is is defined in "$wiki/extensions/gbook.css" and should be adjusted
Problems / FAQ
The Captcha isn't shown or some error message is there.
- this problem was reported by a lot of users
- it isn't the guestbook, its a missing funtion within PHP
- solution: build PHP yourself or install the appropriate GD package of your distribution
- in my case i added the <php? in the gbook.i18n-en.php file
- When the picture is shown without the text try to edit line 117 in gbook.php: "$ttf = './captcha.ttf';". For me this fixed the PHP error "Could not find/open font in /yourwiki/extensions/gbook/captcha-class.php on line 121"