Revision [15753]
This is an old revision of PradeepKishoreGowda made by PradeepKishoreGowda on 2006-12-04 13:18:26.
my WikkaWiki site is here.
Freemind Embedded into Flashplayer
- <?php
- /**
- * Renders a Freemind mindmap using embedded Flash player
- * Usage: {{flashmind url="http://example.com/freemind.mm" [width=x] [height=x]}}
- * Width and Height are optional arguments.
- *
- * @package 3rdparty/plugins/flashmind
- * @name FlashMind
- *
- * @author {@link http://www.btbytes.com/ Pradeep Kishore Gowda}
- * @version 0.5
- *
- * @input string $url mandatory: the url of the Freemind map
- * @input string $width optional: width of the flash player
- * @input string $height optional: height of the flash player
- * @output Freemind map embedded in flash player
- *
- *
- * @documentation {@link http://wikkawiki.org/FlashMind}
- */
- if (!$width) $width = 550;
- else $width = (int)$width;
- if ($width>950) $width = 950;
- if (!$height) $height = 400;
- else $height = (int)$height;
- if ($height>950) $height = 950;
- if (!$url) $url = $vars[0];
- if ($url)
- echo '
- <p style="text-align:center"><a
- href="'.$url.'">'.$url.'</a></p>
- <script type="text/javascript"
- src="3rdparty/plugins/flashmind/flashobject.js"></script>
- <div id="flashcontent" onmouseover="giveFocus();">
- Flash plugin or Javascript are turned off.
- Activate both and reload to view the mindmap
- </div
- <p><script type="text/javascript">
- // <![CDATA[
- function getMap(map){
- var result=map;
- var loc=document.location+"";
- if(loc.indexOf(".mm")>0 && loc.indexOf("?")>0){
- result=loc.substring(loc.indexOf("?")+1);
- }
- return result;
- }
- var fo = new FlashObject("3rdparty/plugins/flashmind/visorFreemind.swf",
- "3rdparty/plugins/flashmind/visorFreeMind", '.$width.', '.$height.', 6, "");
- fo.addParam("quality", "high");
- fo.addParam("bgcolor", "#ffffff");
- fo.addVariable("initLoadFile", getMap("'.$url.'"));
- fo.addVariable("startCollapsedToLevel", "5");
- fo.addVariable("openUrl", "_blank");
- fo.write("flashcontent");
- // ]]>
- </script>
- something here
- </p>';
- ?>
WikkaWiki and Wordpress
I've "integrated" the WikkaWiki page with Wordpress. The WikkaWiki shares the Styling and header/footer with the wordpress theme.That gives the the WikkaWiki an integrated look. I'm not too worried about the Single Sign-on because my site is a personal blog, and I'm the only one who writes in it.