Coder Social home page Coder Social logo

moodle-qtype_geogebra's Introduction

GeoGebra question type for Moodle 3.5-3.11

Introduction

The GeoGebra question type plugin allows teachers to set up questions which can be solved and automatically checked using GeoGebra.

Requirements

  • Moodle 3.5 or above
  • JavaScript enabled in your browser
  • Modern browser

Installation

  • Place the "geogebra" directory within your_moodle_install/question/type/
  • Visit the admin notifications page and complete the installation
  • Done!

Usage as teacher

  • Create a worksheet where there is at least one boolean variable which indicates whether the students solution is correct
  • Upload the question to GeoGebraTube
  • As a teacher, create a GeoGebra question in Moodle
  • Supply the URL of the GeoGebraTube worksheet or choose the material using the file picker (only works with GeoGebraTube repository installed)
  • Load the Applet. Variables which could be randomized or can be used for checking correctness, will be extracted automatically
  • Choose the fraction which goes with the boolean variable
  • Save the question and use it for your quiz

moodle-qtype_geogebra's People

Contributors

cmiic avatar cmiicbrg avatar mputzi avatar murkle avatar odyx avatar phmemmel avatar pm84 avatar pmaneggia avatar sh-csg avatar tholudwig avatar tobiga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

moodle-qtype_geogebra's Issues

Possible malformed string

Hi,

I'm a Moodle translator to Catalan language. While translating the qtype_geogebra module, I've noticed that the string with identifier "addmorevarblanks" (used in edit_geogebra_form.php) seems malformed.

The string is:

$string['addmorevarblanks'] = 'Blanks for {no} more variable(s)';

To me, it seems that {no} is a placeholder to be substituted later with a number. In this case, shouldn't it be in the form {$a} as is usual in Moodle?

Geogebra qtype rendering issue

We are using Moodle 3.610 PHP 7.2 and the latest Geogebra question plugin. The problem we are having is difficult to track down as it is intermittent. What happens is: Sometimes (randomly) when a student opens a Geogebra question in a quiz the question appears not to render fully. The student is left with an X and Y axis and that is all. I should add that most of the Geogebra questions we are using have the axis and the grid turned off, and a background image is used to plot over. This has occurred on different student accounts, on different computers. If we have several students attempting a quiz at the same time sometimes the question will render properly for everyone, and sometimes the question may not render for one or two students, and the rest will be fine. To further complicate the issue, it does not happen very often. I can supply screen shots of what the result looks like when the problem occurs.
image
On the left you can see the problem. On the right we have what the question should look like.
This has been an issue since 2017, and it would be extremely nice to be able to solve it.
Regards
Jaimie

Problems (every versions, every time in my case)

Hello everybody.

First of all I want to thank everyone who has contributed to the development and administration of this plugin. Users (teachers) usually ask for application updates or report problems but this time I want to highlight how important and useful this plugin has been for me. Thanks.

I recently participated in an answer but perhaps it makes more sense to place it as a separate topic.

I have worked with this plugin because although it has some limitations, it is wonderful that students carry out their activities and exams with the practices that GeoGebra allows. However, from the beginning I have dealt with various problems.

Problem 1: It has not been easy for me to find documentation for this plugin: tips, requirements, way of interacting between GeoGebra and Moodle (I know that it is very easy to "ask for" and "ask for" and "ask for" things without giving anything in return; but if possible, create a simple and complete manual. I think it would help a lot but me.

Problem 2: The random variables of GeoGebra do not correspond to the variables that Moodle takes. I have solved this problem by placing the instructions within Geogebra; but the text gets in the way of the activity.

Problem 3: When the student wants to review his exercise, the initial conditions of the exercise change due to the random variables. So he can't know where he went wrong (neither can I, by the way, so I can't explain it to him). I have solved this problem by canceling the random option in both GeoGebra and Moodle; and I have to do 20 different exercises in GeoGebra and 20 questions in Moodle. It's silly, but I couldn't do it any other way.

Again, thank you very much for your work and the time you put into this.

Version 1.9.2 in moodle 3.9.2+; only two changes necessary

Today I examined the problem again and found that only two CSS-properties would have to be changed. Then the question-type would be working well in even with the recent version of moodle.

  1. The question text (CSS-class qtext) is generated with style="visibility: hidden;". Removing this CSS-style gives a correct display of the question text.
    Screenshot_20200930_102828

  2. Height an width of the ggb-applet are calculated too late or the rendering needs to be refreshed. So at first load one gets stuck with an applet overflowing the question-div.
    Screenshot_20200930_103805

Problems when we select Every question option in Quiz Layout configuration

Hello,

It is observed that when we configure the Geogebra question type by ggb file, when we select Every question option:

image

It does not show to the student the right side of the applet:

image

It must be shown as follows (example of a question type by ggb link):
image

Additional information:

Waiting for your reply.

Regards,
Sergio.

Moodle 3.8 Support

After upgrading a site to Moodle 3.8, I am experiencing an error where there is a solid white div that is placed over the Geogebra applet, so it's not visible.

The class of the div is .ggb_preview

I have tested a similar question in Moodle 3.6 and it works there.

Some ggbtrans problems in traditional Chinese

Hi, I'm Edward, one translator for traditional Chinese.
I found that some translation have been replaced by simplified Chinese after Dec. 14 ggbtrans update. Try to modify but fail to save.
image.png

Is it possible to reverse back to the original traditional Chinese version?
Or just fix the saving problem then I will modify by myself.

Thanks a lot,

Edward

Rework: Remove XML storage

Currently GGB files are being stored both XML and base64 encoded. Using XML has the disadvantage of not being able to store background images etc.

Therefore, we should verify if the XML is really needed or - whereever it is being used - if it can be subsituted by the base64 encoded content and remove the storage of XML completely. This would also avoid possible inconsistencies as currently we are storing the same data twice.

Removing XML might require an investigation if there is a possibility of questions only stored as XML. In this case we should consider implementing an upgrade step verifying if there is a base64 encoded value and, if not, converting the existing XML to base64 and store it

Größe der Geogebra-Dateien passt nicht

Liebe Community, habe leider in einen geschlossenen Thread geschrieben. Hier nun nochmal:
Ich habe das selbe Problem wie Birgit Lackner - die hochgeladen ggbs in den Moodlefragen werden zu groß und manchmal auch zu klein angezeigt, die eingestellte Größe von 900 *500 wird ignoriert - nun habe ich diesen Post gefunden und 4712ae5 heruntergeladen, aber moodle sagt, es gibt eine neuere Version des Plugins vom 310122. Ich habe ca 100 Geogebraübungen auf www.mathe4alle.at, die nicht mehr gut gelöst werden können (bei manchen ist der StartButton nicht sichtbar (zu kleine Ansicht), andere können nicht abgeschlossen werden, weil etwas zugedeckt wird.
Gibt es ein neueres Plugin oder irgendeine Idee? Oder welche Datei im GeogebraOrdner-in Questions-Types kann ich aktualisieren?
image
Beim zweiten Bild sieht man den Startbutton nicht
image
Ich wäre sehr dankbar für eine Lösung Marlis Schedler

Dropping File Gets Resised

Moodle 3.4.3
I am dropping a trig graph which has greater width to length (2:1) and it is resized square. It makes the graph small and difficult to read so that students can find. Last year I dropped different sized graphs and they stayed whatever my window size I had.
screen shot 2018-06-27 at 12 38 03 pm
screen shot 2018-06-27 at 12 38 59 pm

Is there something that can be done to adjust this?

By the way, I made a few videos in YouTube to promote this Question Type. Here are the links:
https://youtu.be/8aMZGoyAeDU
https://youtu.be/ZHIf2rDESaM
https://youtu.be/7Ol7J5M7IIs

Recent changes to geogebra.org/GeoGebraTube seem to be breaking the plugin

We have been using the GeoGebra question type plugin for moodle for a while. There seems to be a problem caused by recent changes in GeoGebraTube which seem to be breaking or at least causing serious problems with this question type:

Any question text that should normally show up before the GeoGebra-Applet ist rendered invisible (there seems to be a problem where a "visibility:hidden" tag is not properly overwritten).
While the applet itself is still loading, it is rendered "below" other objects on the page, in other words: the necesarry space is somehow not being reserved by the plugin (a workaround is to change the brwoser window size).
We have tested this behaviour in two different moodle installations, none of which had any general updates or updates of the question type plugin so our only explanation at the moment is that some error in the communication between the plugin and GeoGebra (the plugin loads GeoGebra dynamically from geogebra.org).

Anyone else who noticed thios problem? Any possible solutions?

Passing NUMERICAL GGB variables for self grading

There is another way of connecting Geogebra and Moodle for auto grading and is
moodle-mod_geogebra . They use the numerical Geogebra variable
"grade" to pass the note from GGB to Moodle.
This plugin uses a user defined selection of boolean variables for grading.
I've been trying to patch JS to extend this plugin to propagate also a numeric grade into a variable named "grade" but this proves to be beyond my (limited) programming skills. Nowadays horrible mix of JS PHP HTML and JQuery is too much for me. Any help?
I think it is a good idea to extend this qtype in this direction now that support is back. It would be nice to have just one paradigm to mix GGB (with self grading) and Moodle.

Fix PHPDoc checker complains

PHPDoc Checker complains should be fixed.

Also: "only warning" level should be removed for PHPDoc Checker from github actions, so actions will fail, if PHPDoc Checker is complaining

Only static text as caption?

Hello,

it looks like you can only enter static text as caption.

"Use text as caption" has no effect.

Also the placeholder %c has no effect. I had written the boolean variables in a table column and right next to it in the next column the text. Unfortunately also no effect. It simply appears "%c" in the field of the variables.

Ralph

Version 1.0.3 not working in moodle 3.7+

Before & after Upgrading to 1.0.3 questions of Geogebra-type are not working anymore.
On JS-console I get two different errors:

  • Error: Mismatched anonymous define() module: function(){return GGBApplet} http://requirejs.org/docs/errors.html#mismatch
    and
  • TypeError: ggbApplet.getExerciseResult is not a function triggered by ggbq.js:70:74
    (tested on moodle 3.7+)

support of bootstrap based themes

Hello,

there are problems on displaying the ggb-applet container within question settinigs and question view, if your moodle runs with an bootstrap based theme.
The heigth or more generally the size of the applet container is not calculated and set correctly.
Here's one exaple screenshot:
qtype_geogebra_issue

Best regards,
Andre

Ability to download the the GGB file

After using the ggb file in the question for some time, I would like to download it, modify it and upload it again, but I am unable to download the original ggb file.

It could be very helpful if I could editor it online :-)
To save me from downloading it, modifying it and uploading it again.

Please advise

Remove "GeoGeobra exercise" support

Apparently GeoGebra does not support anymore the "exercise mode". There is no description of such a feature in any of the GeoGebra documentation, the JS functions used are undefined in the currently used GeoGebra version.

So this feature should be removed, as it's causing problems and errors, see #45, #36. This relates to the question attribute isexercise as well as everything which is connected to this attribute (exerciseresult etc.). Also the selection in the edit form should of course be removed.

Invalid course module ID

Good morning, with the last version It is not possible to uninstall, the remove button is missing. Also I have got the error "Invalid course module ID" first for all participants, after only for one user.
Considering that was is not possible to uninstall or disable the component (now disable is working, but uninstall is missing), I have deleted the question/type/geogebra folder, so that the system disables it automatically, but I keep getting the error "Invalid course module ID" for the user.

JS error "Uncaught TypeError: ggbApplet.getExerciseResult is not a function" when more then one GGB in a Moodle quiz page

When we use more than one GGB question in a Moodle quiz page, the seem to collide and I get the following JS error:

ggbq.js:75 Uncaught TypeError: ggbApplet.getExerciseResult is not a function
    at c.M.form_ggbq.getBase64andCheck (ggbq.js:75)
    at e.Subscriber._notify (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:40)
    at e.Subscriber.notify (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:40)
    at e.CustomEvent._notify (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:39)
    at e.CustomEvent._procSubs (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:39)
    at e.CustomEvent.fireSimple (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:39)
    at e.CustomEvent._fire (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:39)
    at e.CustomEvent.fire (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:39)
    at c.fire (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:343)
    at c._notify (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:359)
    at e.Subscriber._notify (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:40)
    at e.Subscriber.notify (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:40)
    at e.CustomEvent._notify (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:39)
    at e.CustomEvent._procSubs (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:39)
    at e.CustomEvent.fireSimple (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:39)
    at e.CustomEvent._fire (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:39)
    at e.CustomEvent.fire (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:39)
    at HTMLDivElement.a.fn (yui_combo.php?rollup/3.17.2/yui-moodlesimple-min.js:115)

As a workaround: I split the GGB questions to different pages, and it works fine.

Error when having more GGB variables than answer options

If you hit the "Get variables which can be randomized from the applet" if you have more boolean answer variables in the GGB file than currently available in the question form, there is an JS error:
grafik

This makes the updating of the feedback fields fail.

Two issues

Hello,

I have reproduced the question presented in Tom Killoran's video available at https://www.youtube.com/watch?v=ZHIf2rDESaM.

The applet is available at https://www.geogebra.org/m/rbvf4qzh.

The Geogebra question is available at https://moodleformulas.org/course/view.php?id=35&section=26.

Although the Geogebra question is working properly, I could not resolve the following issues:

  1. On a new attempt, the equation is updated only when moving the mouse over the graph area then off the graph area.
  2. The answer feedbacks for the variables are not displayed.

3D-Window not displayed properly in GeoGebra question type plugin in moodle

A GeoGebra file consisting of 2D+3D-window will not be displayed in a moodle question.
Moodle version used is 3.9
GeoGegbra pluginversion: 2021100500 Release 1.11.2 (should be the newest)

In the editing mode of the question, the 3D-image is displayed, but in the preview as well as in the test it is not (see 2 screenshots).

I tried different browsers as well as moodle themes.
Any hints appreciated!

greetings, Ul
geogebraquestion editing mode 3D
geogebraquestion preview 3D
i

Text in Graph File is lost

This is new starting on 09/29/2018. My geogebra questions have lost the question text on the graph part.
screen shot 2018-09-29 at 11 46 23 am
screen shot 2018-09-29 at 11 47 02 am

Error when trying to enter a value in the TextBox

Hello,

When we try to enter a value in a TextBox (m y L):
image

It shows the virtual keyword in Geogebra activity and it reloads indefinitely:
image

Additional information:

  • The problem shows when we select "Never, all questions on one page" option
  • Moodle version: v3.9.4 (Build: 20210118)
  • GeoGebra question type plugin version: 1.13.3 (2022050400)
  • GGB file: https://www.geogebra.org/m/fbyvw6e8

Waiting for your reply.

Regards,
Sergio.

No update to 1.11.2 possible

Hello,

In the plugin directory I get this message.

Geogebra

When I then update, it stays at version 1.11.1 and I am prompted to update again.

How do I get to version 1.11.2?

Ralph

URL linked ggb

I cannot see a ggb working when I use to link it by a URL that is a shared link from Nextcloud.
Probably URL means a URL pointing the Geogebra site. Can you please give me some enlightenment about that?

Copying Geogebra Question Type Looses Multiple Tries

When copying a Geogebra question type from one class to another using the Question Export/Import I found that they Multiple Tries kept the Percent, but lost the words, thus there would be no multiple attempts for the students.

Problems when we select "Never, all questions on one page" option

Hello,

It is observed that when we configure the Geogebra question type by ggb file or link, when we select "Never, all questions on one page" option:
image

It does not show to the student the right side of the applet:

Geogebra question type by ggb file
image

Geogebra question type by ggb link
image

Additional information:

Waiting for your reply.

Regards,
Sergio.

JavaScript Error on mouse leave: "getExerciseResult is not a function"

2022-04-17_07-42

Hi, here is an error, we get while using a GeoGebra file. You can find ist here: https://www.geogebra.org/m/mpcwwb2q

And I can't finish the test, even if my result was right.

The problem (i.e. the error message) does not only occur with us in Rhineland-Palatinate, but also with a colleague in Switzerland who has his own moodle instance for testing.

Can you see if it is due to my drawing? Or is something missing? Could it be that the plugin is too old?
Since I'm not an administrator, I can't change anything in the short term, but I would pass it on.

Regards, Birgit

Problems with display and correction

Hi!!

I am trying to use the plugin but I have three problems:

  1. I can't see the text of the question.(I think it could be fixed by modifying line 93 of renderer.php)
  2. The applet always comes out of place.
  3. Does not correct well

I have moodle 3.7.2+ Build 2090927 and
Captura de pantalla 2020-05-24 a las 17 13 29
php 7.3.16.1

Thank you!!

Page reloads triggered by some options in the applet

Hi everyone,

we are currently creating Moodle courses. Some of these courses need the full GeoGebra functionality. However, some actions such as opening the menu or adding text trigger a complete page reload. That makes these options quite unusable in these contexts. Could you please look into this problem, or at least give us a hint about what is likely causing this so we can tackle it ourselves (we would certainly commit our bugifxes)? I uploaded a video on Youtube demonstrating the issue: https://youtu.be/qGZ5Gwi62WA

Best,
Sebastian Gombert

Resizing does not work with uploaded ggb files

Hi ...
may be the same problem.

I have a file like this one https://www.geogebra.org/m/q9qn2G5h

When I do upload it to the question ... the size is like you can see it on the materials page
Screenshot_20211206_091734

If I link to the materials-page, the size is bigger. It uses the full size of the page:

... below you can
Screenshot_20211206_091904
see the other question with download

Making the browser windows smaler -> it does not always fits the GeoGebra-Window to the "blue area".
Screenshot_20211206_092119

Screenshot_20211206_092242

moodle-Version ist 3.9.x

Best wishes and thanks from RLP ...
Birgit Lachner

Originally posted by @BiLachner in #23 (comment)

Question preview submit does not work in moodle 4

When previewing a question of qtype_geogebra in moodle 4 (tested on 4.0.1+, 2022041901.02) with an authoring role a click on button "Check"or on "Submit and finish" has no effect: No reload is being triggered. There is no warning or error on the console.
In a quiz activity the questions are evaluated correctly.

Bildschirmfoto_2022-05-25_09-23-15

Controlled randomness

When serving .ggbs that have some form of inner randomization it happens that every student gets a distinct copy of the activity. This might be interesting in tests but it disrupt your lesson if you are in a BYOD session.
It would be quite easy to add a question parameter called SEED and pass it to the GGB applet. If this is set all the activities will start with the same random generator and will be coherent acrosss the class

Comments of Solving-Variables are not used within moodle

Okay, the questions-Types now works, more or less.

  • size -> checked!
  • get result from Boolean-Variables-> checked! (old questions have problems, but I don't know why!?!?!)

But the caption/label of the Boolean-Variables are not used within moodle. And no preview in the question editing view.
Screenshot_20220712_060511
Screenshot_20220712_060557

I wonder if it is necessary to read out the caption/label from GeoGebra? This would only have a real advantage if the comments were generated dynamically, which is possible (https://wiki.geogebra.org/en/Labels_and_Captions).
I cannot currently test whether something then arrives in moodle.

But an easy solution for the problem is, to ignore the caption/label and let the teacher enter the comment to a specific true variable.

Birgit

Problem with checks in the advanced settings when editing a question

Hello,

It is observed that we create a Geogebra question type in a moodle Quiz (using a GGB file), in the advanced settings section the options Show Icon to Reset Construction and Enable Shift-Drag & Zoom are always selected.

image

Additional information:

  • Moodle version: v3.9.4 (Build: 20210118)
  • GeoGebra question type plugin version: 1.13.3 (2022050400)

We are looking forward to your response.

Regards,
Sergio.

Preview of the solved questions

Sorry for my question, I tried to found a solution of our problem on web, especially on the help pages of GeoGebra, but without succes...
We make randomized GeoGebra exercises in a Moodle with this qtype_geogebra plugin.
In the applets, the randomization of the variables is was made with Geogebra (slider, RandomPoint, PointOnObject...) and the evaluation is done with the logical variable of GeoGebra.
The applets works, but after submitting of questions in Moodle, displays whether is correct the solution and gives a score, but in the preview of the student solution the variables are randomized again, the applet reloads and displays the data corresponding to the reloaded, newly randomized data.
We tried all Moodle and plugin settings, options but unfortunately without success.
To illustrate, I am sending two screenshots (a very simple exercise on triangle inequality): the first is before the exercise was submitted, the second is after submission. (Sorry, the questions are in hungarian language) On first picture the 3. side of triangle (c) is between 2 and 10, when other sides a=6 and b=4. There is a shown the correct answer. On the second picture is visible, that the answer is already correct, but the applet variables (a and b) was newly randomized again - so the question is different.

1
2

We tried to randomize variables of applet with the the Moodle (via applet parameters), but there was no effect, difference.
On the other hand, based on the plugin's hint, I am afraid that it would not be able to handle RandomPoint, Point on Object and similar types of randomized elements...

So what we want is that after submitting the applet, the student should be presented with the same applet or picture he/she has worked with, with that data. It is a possible?

I hope I managed to put our problem/question succinctly but clearly.
And I also hope that You can help us with this. Thank You!

Refactor reading of GGB variables

Currently both the variables to be randomized as well as the variables for grading are being parsed by the function getrandvars in ggbt.js.

This should be split up into two separate functions and be done via GeoGebra function getAllObjectNames([String type]) (you directly get the objects with the correct type and can iterate more easily than currently implemented).

Another issue for the user:
To update the grading variables you have to set "Are there any variables which should be randomized?" to "yes" (even if this does not apply to your applet) to be able to hit the button "Get variables which can be randomized from the applet". This button currently not just retrieves the variables to be randomized, but also the boolean variables for grading as well as the feedback which is bad. This should be moved to a separate button. As an alternative to that: No separate button and reread boolean variables automatically whenever the applet is changed/reloaded.

Move localization to AMOS

All the files lang/*/qtype_geogebra.php except from lang/en/qtype_geogebra.php should be removed from the repository and uploaded to AMOS.

Unfortunately there is no bulk option for that, so we need to upload every single file. Sometimes the files also contain English lang keys. They should be excluded. After this being done the localization community can take care of the translations.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.