Gapfill

Question types ::: qtype_gapfill
Maintained by Marcus Green
Cloze (fill in the blanks) question type with VERY simple question creation syntax. Can do drag drop, dropdowns or gapfill questions
Latest release:
4179 sites
1k downloads
109 fans
Current versions available: 11

As discussed in the Moodle Forum

https://moodle.org/mod/forum/discuss.php?d=203802

Contribute translations for other languages

For custom development and consultancy contact Moodle Partner Catalyst EU (https://www.catalyst-eu.net/).


For any questions please post here
https://github.com/marcusgreen/moodle-qtype_gapfill/issues

Screenshots

Screenshot #0
Screenshot #1

Contributors

Marcus Green (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Comments

  • S. Ali
    Thu, 30 Apr 2015, 3:06 AM
    Hello,
    I've also been experiencing this issue since the latest release (2006082514 1.6).
  • Marcus Green
    Thu, 30 Apr 2015, 6:14 AM
    Hi Al, nobody else has reported it but I have just replicated your experience in an install of 2.9 on my own machine. It has worked in earlier versions of 2.9 as I have been updating with every new version so something has changed. I shall see what I can do about it. I have just tested Gapfill 1.6 with 2.8 and it seems to work fine.
  • AL Rachels
    Fri, 8 May 2015, 1:33 AM
    Hi Marcus, I played with the questions with accent marks that Terry gave you and have some more info on the drag and drop in Moodle 2.9. If you use the Clean or More themes in Moodle 2.9, drag and drop is broken. I also tried Formal White and Evolve-D with the exact same questions and they work just fine in Moodle 2.9. I am using version 1.6 of the question type.
  • Daniel Bosse
    Sun, 5 July 2015, 9:23 PM
    Hello Marcus,
    your mod is very usefull and we love the drag&drop option. Since our update to moodle 2.8 dragdrop-option with more then 3 correct options arent working anymore.

    We made a list like this

    Verkehrsmittel:

    [Bus|S-Bahn|Taxi|Flugzeug|Zug|U-Bahn|Straßenbahn]

    [Bus|S-Bahn|Taxi|Flugzeug|Zug|U-Bahn|Straßenbahn]
    .
    .
    .

    am Bahnhof:

    [Gleis 1|Bahnsteig]

    [Gleis 1|Bahnsteig]

    Gepäck:

    [Koffer|Tasche]

    [Koffer|Tasche]

    The last 2 options are working very well but the first one marks allways wrong. Do you know anything about this?

    Thanks
  • Marcus Green
    Mon, 6 July 2015, 5:13 AM
    Which version of the plugin are you using (i.e. 1.6 or 1.7). Can you make an xml backuup of the question and send it to my email address as given in the direct message I have sent to you.
  • Marcus Green
    Tue, 7 July 2015, 3:38 AM
    I am assuming you are using Gapfill 1.6. This looks like an issue with handling non ascii (or extended) characters in PHP. I removed the reference to Straßenbahn and it worked. It is not handling the ß character correctly. I have just reproduced this error in 1.6 and then tried it in 1.7 and it works correctly in 1.7. There is also a fix to the drag drop code that improves the way this particular question works.
  • Daniel Bosse
    Mon, 13 July 2015, 2:22 AM
    Thanks Marcus. I am using Gapfill 1.7. So you say Gapfill o PHP wouldnt accpet letters like ß ü ä ö?
  • Marcus Green
    Mon, 13 July 2015, 3:02 AM
    Hi Daniel, the problem is in the underlying php function strtolower (see http://php.net/manual/en/function.strtolower.php). It doesn't handle extended ASCII properly as you can see from that link. In 1.7 so it won't work properly with umlauts etc. I have switched to using mb_strotolower which will handle the extended ASCII. If you check the box on a question that says "Case sensitive" on the 1.6 version it doesn't run the strtolower function and it should work as you expect. However it is probably better to upgrade to the 1.7 version.
  • Klaus Steitz
    Mon, 13 July 2015, 10:03 PM
    Doesn´t work with MS SQL database anymore:
    "Debug info:
    Error code: invalidmssqlnativetype
    $a contents: tinyint
    Stack trace:

    line 591 of /lib/dml/mssql_native_moodle_database.php: dml_exception thrown
    line 456 of /lib/dml/mssql_native_moodle_database.php: call to mssql_native_moodle_database->mssqltype2moodletype()
    line 150 of /lib/ddl/database_manager.php: call to mssql_native_moodle_database->get_columns()
    line 63 of /question/type/gapfill/db/upgrade.php: call to database_manager->field_exists()
    line 541 of /lib/upgradelib.php: call to xmldb_qtype_gapfill_upgrade()
    line 1630 of /lib/upgradelib.php: call to upgrade_plugins()
    line 433 of /admin/index.php: call to upgrade_noncore()"

    Any ideas, how to solve?

    thanks!
  • Marcus Green
    Mon, 13 July 2015, 10:04 PM
    What version are you upgrading from (the value will be in your version.php file of the gapfill question type)
  • Klaus Steitz
    Tue, 14 July 2015, 5:34 PM
    2006082513 to 2006082515
  • Marcus Green
    Tue, 14 July 2015, 5:47 PM
    Thanks Klaus, I will set up the 2006082513 version up on an instance of Moodle with SQL server and try the upgrade myself.
  • Marcus Green
    Sun, 19 July 2015, 5:51 PM
    Klaus, could you tell me what version of Moodle you are running. I have just done that upgrade with sql server and Moodle 2.9 and it worked OK, so I am now curious about the Moodle API
  • Stuart Price
    Mon, 24 Aug 2015, 9:29 PM
    This is a really useful plugin that we are just beginning to use for language teaching. For some reason the gaps are nowhere near as wide as in the examples I've seen online, and in one question a word is truncated after it is dropped into the gap (banana in the screenshot https://www.dropbox.com/s/jrlnn3rlwgzp4hk/Screen%20Shot%202015-08-24%20at%2014.26.18.png?dl=0). This happens with both Fixed Gap Size on and off. Perhaps this is font/theme-related? We're using the campus theme but have not made any changes to the theme's defaults.
  • Marcus Green
    Mon, 24 Aug 2015, 9:43 PM
    Hi Stuart, can you install the example questions contained in xml file in the package and get screen shots of them, can you take a look at the display using the clean theme (you may be able to switch to it by adding &theme=clean in the URL bar), I will send my email address directly to you via Moodle messages...
Please login to post comments