Revision [15756]

This is an old revision of PradeepKishoreGowda made by PradeepKishoreGowda on 2006-12-04 13:36:24.

 

Hi,
I'm Pradeep Kishore Gowda, from Bangalore, India. My WikkaWiki site is here.

Freemind Embedded into Flashplayer

Download the visorFreeMind.swf file from here
Download the SWFObject.js from here
put all the above files in `3dparty/plugins/flashmind/` directory.
put the following php script in `actions/` directory.

flashmind.php (line 1)
  1. <?php
  2. /**
  3. * Renders a Freemind mindmap using embedded Flash player
  4.  
  5. * Usage: {{flashmind url="http://example.com/freemind.mm" [width=x] [height=x]}}
  6. * Width and Height are optional arguments.
  7. *
  8. * @package 3rdparty/plugins/flashmind
  9. * @name    FlashMind
  10. *
  11. * @author    {@link http://www.btbytes.com/ Pradeep Kishore Gowda}
  12.  
  13. * @version    0.5
  14. *
  15. * @input    string $url mandatory: the url of the Freemind map
  16. * @input    string $width optional: width of the flash player
  17. * @input    string $height optional: height of the flash player
  18. * @output   Freemind map embedded in flash player
  19. *
  20. *
  21. * @documentation  {@link http://wikkawiki.org/FlashMind}
  22. */
  23.  
  24.  
  25. if (!$width) $width = 550;
  26. else $width = (int)$width;
  27. if ($width>950) $width = 950;
  28.  
  29. if (!$height) $height = 400;
  30. else $height = (int)$height;
  31. if ($height>950) $height = 950;
  32.  
  33. if (!$url) $url = $vars[0];
  34. $url = $this->cleanUrl(trim($url));
  35.  
  36. if ($url)
  37. echo '
  38. <p style="text-align:center"><a
  39. href="'.$url.'">'.$url.'</a></p>
  40. <script type="text/javascript"
  41. src="3rdparty/plugins/flashmind/flashobject.js"></script>
  42. <div id="flashcontent" onmouseover="giveFocus();">
  43.          Flash plugin or Javascript are turned off.
  44.          Activate both  and reload to view the mindmap
  45.     </div>
  46. <p><script type="text/javascript">
  47. // <![CDATA[
  48. function getMap(map){
  49.           var result=map;
  50.           var loc=document.location+"";
  51.           if(loc.indexOf(".mm")>0 && loc.indexOf("?")>0){
  52.             result=loc.substring(loc.indexOf("?")+1);
  53.           }
  54.           return result;
  55.         }
  56. var fo = new FlashObject("3rdparty/plugins/flashmind/visorFreemind.swf",
  57. "3rdparty/plugins/flashmind/visorFreeMind", '.$width.', '.$height.', 6, "");
  58. fo.addParam("quality", "high");
  59. fo.addParam("bgcolor", "#ffffff");
  60. fo.addVariable("initLoadFile", getMap("'.$url.'"));
  61. fo.addVariable("startCollapsedToLevel", "5");
  62. fo.addVariable("openUrl", "_blank");
  63. fo.write("flashcontent");
  64. // ]]>
  65. </script>
  66. </p>';
  67. ?>


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.

There is one comment on this page. [Display comment]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki