Wiki source for Mod039fMindMapMod

Show raw source

==== Wikka Mod 039 ====
Type: Feature Addition
[[ | MindMapMod @ WakkaWiki]]



This MindMapMod let's you display mindmaps that are created with [[ | 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 [[ | 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 into this directory
-add the following to ///formatters/wakka.php// (line 53, [[ | MindMapMod]] + [[ | InlineImages]]): %%(php)<?php
// urls
else if (preg_match("/^([a-z]+:\/\/\S+?)([^[:alnum:]^\/])?$/", $thing, $matches)) {
$url = $matches[1];
if (preg_match("/^(.*)\.(gif|jpg|png)/si", $url)) {
return "<img src=\"$url\" />".$matches[2];
} else
if (preg_match("/^(.*)\.(mm)/si", $url)) {
return "
<script language=\"JavaScript\">
if(!navigator.javaEnabled()) {
document.write('Please install a <a href=\"\">Java Runtime Environment</a> on your computer.');
<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\" />
<br />
<span class=\"notes\">Download <a href=\"$url\">this mind map</a> and use the desktop application of <a href=\"\">Freemind</a> to edit it.</span>".$matches[2];
} else
return "<a href=\"$url\">$url</a>".$matches[2];
~&Note that the """" URLs in the code above are no longer valid; see links //above// the code for the archived pages. --- --JavaWoman

See: EmbeddedMapExample

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