Extension:GeoGebra/2.0p

Version 2.0p stable
This version has been tested at four wikis. Latest version see 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.

Allow uploads of ggb-files
You will have to allow uploads of GeoGebra-files (*.ggb). This can be done by adding the following two lines to LocalSettings.php: Please tell me if you know how to swich off MimeType checking only for certain file extensions.

Learn more about upload of Media files.

Add a GeoGebra Applet tag to your MediaWiki page
The following tag will add a GeoGebra applet to your MediaWiki page:

You can also pass other GeoGebra applet parameters. Example:

Usage of useLocalJar = true/false
By default,. That means, geogebra.jar is fetched from www.geogebra.at.

If geogebra.jar is not found at www.geogebra.at or if  is set explicitly, geogebra.jar will be searched in the same directory as GeoGebra.php.

Example:

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.

Upload the following files of your GeoGebra installation (maybe in \programs\GeoGebra) to.
 * geogebra.jar
 * geogebra_cas.jar
 * geogebra_export.jar
 * geogebra_gui.jar
 * geogebra_main.jar
 * geogebra_properties.jar
 * lax.jar
 * license.txt
 * gpl-2.0.txt
 * cc-by-nc-nd-3.0.txt

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

Known problems

 * There was a problem with the Opera browser. Opera showed Applet crashed instead of the GeoGebra applet. This problem occurred only if useLocalJar="true" was used and only geogebra.jar was installed without the rest of the geogebra*.jar files. Please inform me, if you are using Opera, and an error occurs.


 * There is a problem retrieving the URL of a GGB file uploaded to the MediaWiki file repository. This concerns only one specific installation of the GeoGebra extension; the others work fine. Maybe this is an interference with another extension.

Changes from 1.0u to 2.0p
If geogebra.jar is not found at www.geogebra.at, or if using useLocalJar="true", GeoGebra extension looks for geogebra.jar at another place:

Version 1.0u looked for geogebra.jar in the file repository of the wiki. This caused problems, when geogebra.jar changed to be only a starter for other geogebra*.jar files, e.g. geogebra_main.jar, geogebra_gui.jar etc.

Version 2.0p now looks for geogebra.jar in the /extension/GeoGebra subdirectory of the wiki. So you have to upload all geogebra*.jar files using FTP.

A minor change was necessary, because  did not work correctly.