Wiki source for Mod039fMindMapMod


Show raw source

==== Wikka Mod 039 ====
Type: Feature Addition
----
===Credit:===
**DigitalNomad**
[[http://web.archive.org/web/20040823065550/http://www.wakkawiki.com/MindMapMod | MindMapMod @ WakkaWiki]]
----

====MindMapMod====

===Description===

This MindMapMod let's you display mindmaps that are created with [[http://freemind.sourceforge.net/ | FreeMind]] in your WakkaWiki.
After applying the code you can enter the URL of any *.mm-file on your server and it will be displayed like [[http://www.funksturm.de/librophilo/wakka.php?wakka=MindMapMod | this]].

2004-05-27: I added a little JavaScript to check if there's a JRE. Besides that, below the map will be a link to download the mind map.

===3 Step Procedure===

-create the directory ///mindmap// (in top level)
-copy http://freemind.sourceforge.net/freemindbrowser.jar into this directory
-add the following to ///formatters/wakka.php// (line 53, [[http://web.archive.org/web/20040823065550/http://www.wakkawiki.com/MindMapMod | MindMapMod]] + [[http://web.archive.org/web/20040820215431/http://www.wakkawiki.com/InlineImages | InlineImages]]): %%(php)<?php
// urls
else if (preg_match("/^([a-z]+:\/\/\S+?)([^[:alnum:]^\/])?$/", $thing, $matches)) {
$url = $matches[1];
// http://www.wakkawiki.com/InlineImages
if (preg_match("/^(.*)\.(gif|jpg|png)/si", $url)) {
return "<img src=\"$url\" />".$matches[2];
} else
// http://www.wakkawiki.com/MindMapMod/
if (preg_match("/^(.*)\.(mm)/si", $url)) {
return "
<script language=\"JavaScript\">
<!--
if(!navigator.javaEnabled()) {
document.write('Please install a <a href=\"http://www.java.com/\">Java Runtime Environment</a> on your computer.');
}
//-->
</script>
<applet code=\"freemind.main.FreeMindApplet.class\" archive=\"mindmap/freemindbrowser.jar\" width=\"100%\" height=\"600\">
<param name=\"type\" value=\"application/x-java-applet;version=1.4\" />
<param name=\"scriptable\" value=\"false\" />
<param name=\"modes\" value=\"freemind.modes.browsemode.BrowseMode\" />
<param name=\"browsemode_initial_map\" value=\"$url\" />
<param name=\"initial_mode\" value=\"Browse\" />
</applet>
<br />
<span class=\"notes\">Download <a href=\"$url\">this mind map</a> and use the desktop application of <a href=\"http://freemind.sourceforge.net/\">Freemind</a> to edit it.</span>".$matches[2];
} else
return "<a href=\"$url\">$url</a>".$matches[2];
}?>
%%
~&Note that the ""wakkawiki.com"" URLs in the code above are no longer valid; see links //above// the code for the archived pages. --- --JavaWoman

""<!--http://wikka.jsnx.com/freemind/freemind.mm-->""
See: EmbeddedMapExample

Valid XHTML :: Valid CSS: :: Powered by WikkaWiki