Extension:GeoGebra

What can this extension do?
Add a GeoGebra applet to your MediaWiki page.

GeoGebra applets use Java technology to combine an interactive geometry environment with the ability to directly enter equations and coordinates making it very useful in math education and math explorations.

Add a GeoGebra Applet tag to your MediaWiki page
With GeoGebra 3.2.33.0 or later you can export a GeoGebra file to a wiki very comfortably.

Use the new Export function of GeoGebra:

Use File - Export - Dynamic Worksheet as Webpage... Then go to "Advanced" and choose "Clipboard:MediaWiki" (bottom right).

Paste the clipoard to your wiki in edit mode. Done! This will create a tag like this:

You do not have to upload ggb files like in version 2.0p!

You can also pass other GeoGebra applet parameters. Example:

Usage of useSignedJar = true/false
The parameter 'useSignedJar' has precedence over parameter 'useLocalJar'. If useSignedJar='true', the signed JAR files from www.geogebra.org are used. Digital signing makes it possible for the GeoGebra applet to change to an application by doubleclicking. This application is able to write GGB files to the local hard disc.

Waiting for version 2.8a to get installed and tested.
Version 2.7 was tested with more then 6 wikis. See Examples.

There were no reports of critical errors, only minor changes (see Changelog).

So I decided to change status of Version 2.7i from beta to stable at 2011-03-05.

Version 2.8a is not yet installed at other wikis, so to be careful I changed status back to beta at 2012-08-09.

Download instructions
Please cut and paste the code found below and place it in.

Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php.

If you want your users to be able to use parameter useLocalJar=true, then upload the following files

from http://www.geogebra.org/webstart/unsigned/unpacked/ to.
 * geogebra.jar
 * geogebra_cas.jar
 * geogebra_export.jar
 * geogebra_gui.jar
 * geogebra_main.jar
 * geogebra_properties.jar

If you want to use fast loading of Java applets, also upload the following packed files

from http://www.geogebra.org/webstart/unsigned/packed/
 * geogebra.jar.pack.gz
 * geogebra_cas.jar.pack.gz
 * geogebra_export.jar.pack.gz
 * geogebra_gui.jar.pack.gz
 * geogebra_main.jar.pack.gz
 * geogebra_properties.jar.pack.gz

Make sure you use unsigned JAR files.

Installation
To install this extension, add the following to LocalSettings.php:

Download
For security reasons, the source code of the GeoGebra Mediawiki extension is no longer stored inside this wiki page.

Here (at Gerrit) you can download the source code or use the MediaWiki ExtensionDistributor to download the source code as a *.tar.gz archive.

Incompatibility with MediaWiki 1.19
Zbynek Konecny from the GeoGebra team told me that this line did not work after updating to MediaWiki 1.19 (line 61):
 * $ggbFile =  Image::newFromName($ggbBinary);

He told me to replace the line by
 * $ggbFile =  wfLocalFile($ggbBinary);

as a workaround.

I will fix the bug when I have time enough to test the fixed version. But for testing I will need a MediaWiki 1.19 with admin rights - not so easy to achieve. I think I will use XAMPP, but this all is time consuming.