Extension talk:Ploticus
From MediaWiki.org
Hello Flavien,
I think your extension is quite useful. I created a slightly improved version and used it in combination with an extension Extension:DynamicPageList which I currently maintain.
- Your source code says: copy right "Flavien Scheurer". I assume that you want to mention that you are the author but your extension belongs to the public (based on GPL e.g.). Please change this to avoid confusion.
- My enhancement allows to use Ploticus as a parser function (which is quite a difference, technically speaking). See the dpldemo page and [1] and [2].
Keep up the good work and please take over the source from my page if you feel it is o.k.
- Algorithmix 09:52, 21 November 2007 (UTC)
[edit] Cleaning up =
The extension should erase the oldest files once there are more than N files in the images/ploticus directory. A default value for N could be 100.
- --84.58.224.227 20:57, 24 November 2007 (UTC)
[edit] Does this work on an Apache (Linux) server?
I note that the extension calls pl.exe, which seems to be a windows program.
Does this work on a Linux server, and if so, how can it be installed (easily)?
--C4duser 15:07, 9 January 2008 (UTC)
-
- Yes it works, with some modifications. Here's an example. Here are the important lines :
1. $this->imageFormat = 'png'; // gif = typical setting for windows
changed to png
2. $this->exePath = 'mywikiabsolutepath/extensions/ploticus/linux/bin/pl';
you need the put the pl executable in a directory owned by the Apache user
3. you also need that mywikiabsolutepath/images/ploticus/ directory is created and owned by apache
4. I don't know if the current version works with MediaWiki 1.13, but the version I had which was older did not work unless I changed this line :
return ('<p><img src="' . $graphURL . '" alt="Ploticus Chart"></p>');
to
return array('<img src="' . $graphURL . '" alt="Ploticus Chart">', 'noparse' => true, 'isHTML' => true);
Just follow the instructions at the ploticus homepage to compile the source code on your linux distribution.
-
- EmuWikiAdmin 01:33, 7 September 2008 (UTC)