Your Moodle version

Question types: Drag and drop onto image

qtype_ddimageortext
Maintained by Tim at Lone Pine Koala Sanctuary Tim Hunt, Picture of Jamie Pratt Jamie Pratt, Picture of Phil Butcher Phil Butcher
You can use text and / or images as drag items onto defined drop zones on a background image.
1k
3k
53

There are working examples in eAssessment with Moodle on our OpenLearn site.

The documentation is in How to create questions in Moodle on that site.

Demonstration of this question type courtesy of Dot Garman.

Sets

This plugin is part of set Open University.

Screenshots

Screenshot #0

Contributors

Tim at Lone Pine Koala Sanctuary
Tim Hunt (Lead maintainer)
Picture of Jamie Pratt
Jamie Pratt: Developer
Picture of Phil Butcher
Phil Butcher: Question type designer
Picture of Colin Chambers
Colin Chambers: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Tim at Lone Pine Koala Sanctuary
    Tue, Feb 16, 2016, 6:45 PM
    Yes, that suggestion makes sense for the type of quesiton you are thinking about.

    I wonder how important the padding is for other types of question?

    The culprit in the code is here: https://github.com/moodle/moodle/blob/master/question/type/ddimageortext/yui/src/ddimageortext/js/ddimageortext.js#L217 (and, if you change that, you would need to run the 'grunt' tool to have it take any effect. https://docs.moodle.org/dev/Grunt)

    Note, these question types are now in Moodle core, so this question would be better in the quiz forum https://moodle.org/mod/forum/view.php?id=737
  • Picture of roman angerer
    Thu, Mar 24, 2016, 12:22 AM
    Are there any requirements to use this plugin? my moodle says something about "Abhängigkeitprüfung" which might be dependencytest failed for "qtype_ddwtos"
  • Tim at Lone Pine Koala Sanctuary
    Thu, Mar 24, 2016, 1:58 AM
    As the Moodle plugin installer will tell you, this question type requires qtype_gapselect.
  • Oam
    Wed, Apr 6, 2016, 11:20 PM
    Hi Tim,

    I face a problem using this plugin and Piwik : if the Piwik server is down, the drag and drop does not work.

    Do you want me to open an issue on github (https://github.com/moodleou/moodle-qtype_ddimageortext/issues) or do you want more detais here first ?
  • Tim at Lone Pine Koala Sanctuary
    Wed, Apr 6, 2016, 11:22 PM
    What has Piwik got to do with drag-drop questions? I suggest you report the bug to Piwik if their code is breaking your Moodle site.
  • Oam
    Thu, Apr 7, 2016, 12:19 AM
    Hi Tim,

    If Piwik server is down, the page is displayed but is still loading. And finally the "loading" stops after a while. During the "loading", the drag-drop does not work. After, it works.
    Until now, I faced this problem only with drag-drop questions that why I thought the problem could be between Piwik and this plugin.

    When I tried to reproduce the problem on another Moodle, I had the same problem with the drag and drop area on the restore course page.
    Now, I try to understand where the problem comes from : the piwik code, a JS library used by piwik and moodle, moodle code (the way the JS is loaded), ...

    I apologize for my previous comment at the wrong place, I will report the bug to piwik or moodle.

    Pascal
  • Tim at Lone Pine Koala Sanctuary
    Thu, Apr 7, 2016, 12:59 AM
    No worries. Thank you for taking the effort to report a problem you found. Sometimes it takes a while to work out where it needs to be reported.
  • Picture of Javier Varas
    Thu, Apr 21, 2016, 5:57 PM
    Hi Tim. Thanks for your great plugin, my students love it!
    I have Moodle 2.9.1 and we cannot drag and drop the items well when we use Android 4.4 or 5.0 tablets.
    Do you know if upgrading to Moodle 3.0.1 will solve the issue?
    Thanks
    Javier
  • Tim at Lone Pine Koala Sanctuary
    Thu, Apr 21, 2016, 6:14 PM
    I am not certain. You can test Moodle 3.0.x on https://demo.moodle.net/.
  • Picture of Javier Varas
    Fri, Apr 22, 2016, 7:30 PM
    Hi Tim
    I've just run an experiment on the demo site (3.0.3) and it does work quite well using Firefox. Sometimes it does weird things but it is possible to do drag and drop. However, it does not work with Chrome. As soon as you start dragging the screen scrolls up (as in Moodle 2.9.x both with Firefox and Chrome).
    So I think it is time to update my Moodle to 3.0.3 smile
    Thanks for your help

  • Picture of Miro Ungar
    Mon, May 30, 2016, 10:51 PM
    Hello Tim. Great plugin, but I have a little problem. When I create drag and drop question it takes very very long time to load the quiz. If it helps this is output from browser
    504 (Gateway Time-out)
    It finaly loads but I sense that it should be much faster.
    If the question using this plugin is excluded, everything is normal again.
    Please help.
    J
  • Tim at Lone Pine Koala Sanctuary
    Tue, May 31, 2016, 4:59 AM
    I don't see how this question type can be generating 504 Gateway time-out errors.

    Exactly which version of Moodle and which version of this plugin are you using? Which URL is talking a long time to load? (In your browser, look under Developer tools -> Network.)
  • Picture of Miro Ungar
    Tue, May 31, 2016, 2:44 PM
    Hi Tim, thank you for reply.
    moodle is 2.6 on SLES 11 SP3
    this is url that is taking too long to respond
    mysite/moodle/pluginfile.php/4990/qtype_ddimageortext/dragimage/2634/5/2/mailing%20%281%29.JPG
    I will try to look in browser options in mean time
  • Picture of Miro Ungar
    Tue, May 31, 2016, 10:26 PM
    Problem is only with loading jpg image for this type of question (drag and drop onto image)
    In any other case it works normal
  • Tim at Lone Pine Koala Sanctuary
    Wed, Jun 1, 2016, 12:03 AM
    Well, you could try upgrading to a more recent version of Moodle.

    You could also try renaming the file, so that you don't get %20 and other escaped characters in the URL. Some fire-walls block those for no good reason.
1 2 3 4 5 6 7 8 9
Please login to post comments