
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.phpfile is shipped with$proxyhost, $proxyportset 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 (changetempuri.orgwith your own namespace).
Last update: 2008-05-05
The A Dilbert Plugin for DokuWiki by Carlo Perassi, unless otherwise expressly stated, is licensed under a Creative Commons Attribuzione-Condividi allo stesso modo 3.0 License.
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.
Thank you for your tip. I will try understand DokuWiki internals better for a future release of my small plugin.
Version 0.2 partially implements the tip suggested by Andreas.