DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:applet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:applet [2013-06-28 14:08] – [Applet Plugin] 131.169.185.237plugin:applet [2023-12-21 17:02] (current) – new download url Aleksandr
Line 1: Line 1:
-===== Applet Plugin ======+====== Applet Plugin ======
  
 ---- plugin ---- ---- plugin ----
-description: A basic plugin for inserting Java applets in wiki pages.+description: A basic plugin for inserting Java applets in wiki pages
 author     : Stylianos Dritsas author     : Stylianos Dritsas
 email      : stylianos [at] dritsas [dot] net email      : stylianos [at] dritsas [dot] net
 type       : syntax type       : syntax
 lastupdate : 2006-03-05 lastupdate : 2006-03-05
-compatible : devel > 2007-10-06+compatible : 2007-10-06
 depends    :  depends    : 
 conflicts  conflicts 
 similar    :  similar    : 
-tags       : java, !experimental+tags       : !obsolete, java, !experimental 
 + 
 +downloadurl: https://trello.com/1/cards/5aff147263a8bc1675cbda30/attachments/5aff1498968161adb80c9c3e/download/applet-v2.zip 
 +bugtracker :  
 +sourcerepo :  
 +donationurl:  
 + 
 +screenshot_img: 
 ---- ----
  
-[[:experimental]]+Java applets as facilitated by this plugin are not supported in recent browsers anymore.
  
-A basic plugin for inserting Java applets in wiki pages. Currently there is very little error checking so be extremely careful using the plugin. There is also no support for applet parameters i.e <param name="yada" value="yada">. The limitations and assumptions are described in the code in detail. Feel free to improve and have fun.  
  
-//-Stelios//+A basic plugin for inserting Java applets in wiki pages. Currently there is very little error checking so be extremely careful using the plugin. There is also no support for applet parameters i.e. ''%%<param name="yada" value="yada">%%''. The limitations and assumptions are described in the code in detail. Feel free to improve and have fun.  
 + 
 +//Stelios//
  
 === Acknowledgments === === Acknowledgments ===
 +
 The [[plugin:draw]] plugin author(s) for a clean example of how to hack up a simple wiki plugin. The [[plugin:draw]] plugin author(s) for a clean example of how to hack up a simple wiki plugin.
  
Line 29: Line 38:
 **Where** **Where**
  
-  * APPLET_CLASS: Is the class name of the applet. \\ Example: "MyApplet" +  * ''APPLET_CLASS'' -- is the class name of the applet.\\ Example: "MyApplet" 
-  * ARCHIVE_IN_NAMESPACE: The jar or zip archive that the applet is stored. \\ Example: "Projects:MyAppletProject:MyApplet.jar" +  * ''ARCHIVE_IN_NAMESPACE'' -- the jar or zip archive that the applet is stored.\\ Example: "Projects:MyAppletProject:MyApplet.jar" 
-  * WIDTH_IN_PIXELS: The width of the applet window  +  * ''WIDTH_IN_PIXELS'' -- the width of the applet window  
-  * HEIGHT_IN_PIXELS: The height of the applet window +  * ''HEIGHT_IN_PIXELS'' -- the height of the applet window
- +
  
 ===== Version 2.0 ===== ===== Version 2.0 =====
 +
 Works on servers with higher security settings. (Uses the fetch.php mechanism). Make sure that you add a jar mime type for better results or make your jars into zips. Works on servers with higher security settings. (Uses the fetch.php mechanism). Make sure that you add a jar mime type for better results or make your jars into zips.
  
Line 75: Line 83:
       'name'   => 'applet',       'name'   => 'applet',
       'desc'   => 'Java Applet Plugin',       'desc'   => 'Java Applet Plugin',
-      'url'    => 'http://www.dokuwiki.org/plugin:applet',+      'url'    => 'https://www.dokuwiki.org/plugin:applet',
     );     );
   }   }
Line 108: Line 116:
     preg_match( '/width=([0-9]+)/i',            substr( $match, 6, -1 ), $match_width   );     preg_match( '/width=([0-9]+)/i',            substr( $match, 6, -1 ), $match_width   );
     preg_match( '/height=([0-9]+)/i',           substr( $match, 6, -1 ), $match_height  );     preg_match( '/height=([0-9]+)/i',           substr( $match, 6, -1 ), $match_height  );
-    preg_match( '/code=([a-zA-Z_0-9.]+)/i',      substr( $match, 6, -1 ), $match_code    );+    preg_match( '/code=([a-zA-Z_0-9.]+)/i',     substr( $match, 6, -1 ), $match_code    );
     preg_match( '/archive=([a-zA-Z_0-9:.]+)/i', substr( $match, 6, -1 ), $match_archive );     preg_match( '/archive=([a-zA-Z_0-9:.]+)/i', substr( $match, 6, -1 ), $match_archive );
     return array(      return array( 
Line 143: Line 151:
  
 ===== Version 1.0 ===== ===== Version 1.0 =====
 +
 Works on servers with low security settings. Works on servers with low security settings.
  
 === syntax.php === === syntax.php ===
 +
 <code php syntax.php> <code php syntax.php>
 <?php <?php
Line 175: Line 185:
       'name'   => 'applet',       'name'   => 'applet',
       'desc'   => 'Java Applet Plugin',       'desc'   => 'Java Applet Plugin',
-      'url'    => 'http://www.dokuwiki.org/plugin:applet',+      'url'    => 'https://www.dokuwiki.org/plugin:applet',
     );     );
   }   }
Line 239: Line 249:
 } }
 </code> </code>
 +
plugin/applet.1372421326.txt.gz · Last modified: 2013-06-28 14:08 by 131.169.185.237

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki