A Dilbert Plugin for DokuWiki

dil

I wrote a simple plugin for DokuWiki that, writing [DIL] on a page, lets you see displayed the Daily Dilbert.

The current version is 0.5 and you can download it here.

It uses the DilbertDailyStrip RSS feed and SimpleXML.

ChangeLog:

  • Version 0.5: now it uses DokuHTTPClient instead of CURL, removing a dependence and handling the proxy settings automatically;
  • Version 0.4: now it uses SimpleXML and CURL;
  • Version 0.3: fixed a small security weakness (credits to Andy Webber);
  • Version 0.2: it does not use anymore NuSOAP but the PHP5 SOAP extension and it can read the optional proxy configuration of DokuWiki (without having to duplicate it internally);
  • Version 0.1: it is based on a snippet written by Alessandro Battezzati (the snippet itself is also based on http://shupe-website.googlecode.com/svn/trunk/myAdmin/test/dilbert.php that uses NuSOAP through the DailyDilbert Web Service). The syntax.php file is shipped with $proxyhost, $proxyport set as your server was behind a proxy: void them if you don’t have a proxy. With small changes, this plugin can be used for generic SOAP client operations as well (change tempuri.org with your own namespace).

Last update: 2008-05-05

3 Responses to “A Dilbert Plugin for DokuWiki”


  1. 1 Andreas Gohr

    Nice. Small tip: if you replace the soap_transport_http class with a wrapper around DokuWiki’s own HTTP client class, your plugin will automatically use the proxy settings from the main DokuWiki configuration. It will also loose the dependency on the CURL extension.

  2. 2 Carlo

    Thank you for your tip. I will try understand DokuWiki internals better for a future release of my small plugin.

  3. 3 Carlo

    Version 0.2 partially implements the tip suggested by Andreas.

Leave a Reply