GithubHelp home page GithubHelp logo

moodle-qtype_gapselect's People

Contributors

alanfez avatar chillofoctober avatar jamiepratt avatar mkassaei avatar ndunand avatar timhunt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

moodle-qtype_gapselect's Issues

"Property correctfeedback is different" test failures

Running the unit tests on Moodle 2.4 on PHP 5.5 or PHP 5.4 we see three related failures:

  1. qtype_ddwtos_test::test_xml_import
    Property correctfeedback is different

  2. qtype_ddwtos_test::test_xml_import_legacy
    Property correctfeedback is different

  3. qtype_gapselect_test::test_xml_import
    Property correctfeedback is different

The expected and actual Arrays being compared are as follows for the two xml_import tests:

Array
(
    [text] => <p>Your answer is correct.</p>
    [format] => 0
    [files] => Array
        (
        )

)
Array
(
    [text] => <p>Your answer is correct.</p>
    [format] => 0
)

And similarly for the legacy one:

Array
(
    [text] => Your answer is correct.
    [format] => 1
    [files] => Array
        (
        )

)
Array
(
    [text] => Your answer is correct.
    [format] => 1
)

Multi language compatible

Hi Guys,
Thank you for this plugin. I am trying to add multiple language to my Moodle and there was an issue with the rendering and the processing of the "Select the missing word" question type.

I am using multi-lang v2 for my multi-language filter. Maybe the solution works with the v1 too.

Here are the changes I made:

/question/type/gapselect/rendererbase.php
Line 99
$choice->text) . ']';
and change it to:
format_string($choice->text)) . ']';

/question/type/gapselect/renderer.php
Line 60
$selectoptions[$orderedchoicevalue] = $orderedchoice->text;
and change it to:
$selectoptions[$orderedchoicevalue] = format_string($orderedchoice->text);

/question/type/gapselect/renderertypebase.php
Line 158
$bits = preg_split('/[[(\d+)]]/', $question->questiontext, null, PREG_SPLIT_DELIM_CAPTURE);
and change it to:
$formatedQuestionText = format_string($question->questiontext);
$bits = preg_split('/[[(\d+)]]/', $formatedQuestionText, null, PREG_SPLIT_DELIM_CAPTURE);

Any suggestion to better the code?

Thank you to Iñaki Arenaza for fixing the rendering. See comments section of https://moodle.org/plugins/filter_multilang2

I hope this helps

Keep the good work!

Thank you

Permission Denied in Git

I am getting permission denied. Am I omitting a git command?
Also wondering if cd ing to moodle is good enough or do I need to go beyond? I've tried both, but they get permission denied from remote (Git). Many Thanks, Dave

MathJax formulas don't display correctly

You can specify MathJax formulas as answer choices. But in the select they are not rendered correctly. Example:
image
That happens because the <option> element only supports text But MathJax formulas consist of a lot of HTML elements. To make them work here the plugin would need to use something other than <select> and <option>. I've read that Select2 or Chosen do work with HTML content.

Here's a sample question (unzip, then import as Moodle XML): questions-Testkurs-Lückentest-20211125-1736.zip

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.