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 to your MediaWiki page
You can export a GeoGebra file to a wiki very comfortably (since GeoGebra 3.2.33.0).

Use the export function of GeoGebra:

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

See the tutorial at wiki.geogebra.org: GeoGebra with MediaWiki

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 to the wiki like in former times!

You can also pass GeoGebra applet parameters. See 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.

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.

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

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

Wiki admins: Please install and test latest version 2.8a.
Version 2.7 was tested with more then 6 wikis. See Examples.

There were no reports of critical errors, only minor changes. See Changelog.

Status of Version 2.7i was changed from beta to stable at 2011-03-05.

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

Download instructions
The following is only necessary in very special cases.

If you want your MediaWiki users
 * to be able to use your wiki offline (useLocalJar=true) or
 * get the GeoGebra applets with ability to save GeoGebra files to local hard disc (useSignedJar=true).

If you want your users to be able to use the  parameters 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.

Incompatibility with MediaWiki 1.19 fixed
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.

Fixed with version 2.8a. Tested at wiki.mathebuch-online.de