Latest Version: 0.5 (2010.04)
To help deter comment spam, which led me to turn off comments for an extended period of time on my wiki, I have modified comment handling and integrated ReCaptcha. Visitors who are not logged in will be required to complete a ReCaptcha in order to submit their comments. Users and admin will not.
There are still considerable improvements that could be made to bring the comments form into the Web 2.0 era. This enhancement was added simply to make it usable again for me.
ReCaptcha PHP Library (in 3rdparty/plugins directory)
ReCaptcha Keys (available here)
jQuery Library (in template)
Klenwell Show Page Handler
Klenwell Add Comment Page Handler
Klenwell Comment Library
Klenwell Wikka Config (for ReCaptcha integration)
This package does not alter any of the core WikkaWiki code. The files are all included in the download package.
$ tar xf wikka_recaptcha_comments-v0.5.tgz $ cp -Rf wikka_recaptcha_comments/* /PATH/TO/wikka/
Then update your wikka.config.php file to include your ReCaptcha keys:
# recaptcha: get keys at http://recaptcha.net/api/getkey?app=php 'use_recaptcha' => TRUE, 'recaptcha_domain' => 'TBA', 'rc_public_key' => 'TBA', 'rc_private_key' => 'TBA',
Also, you will need either to set your theme to klenwell:
'theme' => 'klenwell',
or make jQuery available in the header of your template. The easiest way is to use the Google AJAX Libraries like so:
<!-- google jquery --> <script src="http://www.google.com/jsapi"></script> <script> google.load("jquery", "1.4.2"); google.load("jqueryui", "1.8.1"); </script>
Google Ajax Libraries