Extension talk:Graph/Legacy

installed and working, even though i got a few failed tests, mailed those to you. nice work

Is it possible to use bracket links inside the graph though? i would like to make the node names clickable links, you know. Nevermind, got it. 

Mutante 16:56, 27 November 2005 (UTC)

how does this relate to graphviz
please include a comparision between the two extensions

Windows wamp setup
I tried to install this on a windows server, and I must say it's a really tough thing to do, can you provide a more in-detail walkthrough?

I managed to install it... somehow, but there are many errors, for instance I can't put things on multiple lines, and the graphviz extension isn't working at all... along with many other problems.

I'm willing to help with testing and debugging on a windows server if you ever think about fixing this. --88.52.202.25 09:48, 13 November 2008 (UTC)
 * I had the same problems under windows and XAMPP. Looks like this plugin is written for Linux and never tested under windows.
 * But I was able to fix the problems under windows, all in all I needed some hours to do it, in the end I only had to change a few lines...
 * Here is the code. You must replace the original function renderGraph with this one:
 * Here is the code. You must replace the original function renderGraph with this one:

function renderGraph( $input ) { global $wgInputEncoding; $winOS = ((PHP_OS == "WINNT") || (PHP_OS == "WIN32") || (PHP_OS == "WIN64"));
 * 1) The callback function for converting the input text to HTML output

if( !($winOS) && !is_executable( "graph/graphcnv" ) ) { return " is not executable "; }   $cmd = "perl graph/graphcnv ". escapeshellarg($input). " " . escapeshellarg($wgInputEncoding); if ($winOS) { $cmd = str_replace("\n", "", $cmd); //Replacing breaks wich are causing problems with the Windows cmd }

$output = `$cmd`;

if (strlen($output) == 0) { return "Couldn't execute " . ' See the manual for help.'; }

return $output; }
 * I hope this works well on all Windows systems. It's only tested on Windows XP yet. I also only tested some standard diagrams there could be some bugs in some special cases but I don't think so. When this works well, Tels could add the code into his source code. This should work with linux and other OS as well.


 * To install all the Perl modules under windows OS you can use Strawberry Perl, its really easy to install all the modules with it (I use it together with XAMPP). --Danwe 21:24, 8 February 2009 (UTC)

I can confirm that the above fixes are correct, and definitely need to be put into the source Graph.php. Rook2pawn 03:13, 20 June 2009 (UTC)