looking for new maintainer(s) for drag-and-drop matching and ordering

looking for new maintainer(s) for drag-and-drop matching and ordering

by Adriane Boyd -
Number of replies: 61

Hi everyone,

I've been very short on time recently and I wanted to see if I could find someone who was interested in taking over as maintainer of two of my question types: drag-and-drop matching and drag-and-drop ordering.  According to Tim's recent survey, they're used by quite a few moodlers and I'm sure your efforts would be very much appreciated by the moodle community.  They're both based on the core matching question and are fairly similar underneath the hood, so it would probably make sense for both of them to have the same maintainer(s).

The functionality has stayed very stable over the last four years and I've only had to fix a handful of bugs in that time.  Most of the work is in updating them for newer releases of moodle and answering questions from users.  If you're interested, send me a message and I can help you get up to speed.  The main outstanding task at this point is to update them for 2.1.

-Adriane

Average of ratings: -
In reply to Adriane Boyd

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Itamar Tzadok -

Pass it on. smile

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Adriane Boyd -

Great, thanks!  I'll see about adding/reassigning permissions for the relevant tracker categories, contrib entries, and CVS directories...

-Adriane

In reply to Adriane Boyd

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Pedro Crispim -

Great work Adriane.

Glad you are wiling to keep it working, Itamar.

Just one question: Are you going to make it available via Git?

Thank you

In reply to Pedro Crispim

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Itamar Tzadok -

Of course. smile

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

I don't know how useful it would be but I took the core match question code for 2.1 and renamed everything so it would work with ddmatch (i.e. import and export) but just show up with the functionality of the match question.That version of the code seems to work OK as a stopgap.

I sat down tonight to work out how to port the drag drop bit but then decided the Matt Damon movie "The Adjustment Bureau" was a better way to spend Saturday night.

I can send you the code if you are interested.

 

In reply to Marcus Green

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Itamar Tzadok -

Please do.

A propo the adjustment bureau I've actually been planning to push for adjusting the core question(s) to support a dd layer, rather than duplicating the core in plugins and then having to waste a lot of energy on essentially the same import/export backup/restore. smile

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

That sounds like a good idea. I have made extensive use of the ddmatch question type and I really like it. However there are some quirks in it that mean it can freeze sometimes. I was about to look at the code in the ddwtos question type (a very nice question type) to see how that does it.

In reply to Marcus Green

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Itamar Tzadok -

I've implemented dd ordering, matching, filling the gap, scramble etc. on top of a CLOZE question type. The approach was fairly simple. The lists are entered as bulleted lists, then the html is parsed and regenerated in a yui-dragdrop-friendly way, and yui does the rest. Not much to it. So, what I'm proposing to try is adding an option to each relevant core question and some code where the question html is generated for display and the app js file. Then if the user tick the dd option of the question, the question will be rendered accordingly and js will be required and the question will display on the quiz page in its dd skin. smile

Here are a couple of illustration. In this implementation each item has a unique random key which is generated and assigned to it when the question is prepared for display. Whenever an item is dropped, the keys are written into the resp input field. In the ordering the key are written in the order of the elements. In the classification question, where the order is not important, the keys are written in alphabetical order.  

Ordering

Classification

Average of ratings: Useful (1)
In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Wow, I would love to play with them.

In reply to Marcus Green

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Glenys Hanson -

I'd love to play with them too!

In reply to Glenys Hanson

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Itamar Tzadok -

I'll probably start working on the question types for 2.1 in a week or so and with a bit of luck it won't take too long. smile

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Pedro Crispim -

Itamar:

Great work. Are you going to implement Drag and Drop and Ordering questions for Moodle 2.1, or only the new layer/question types you mentioned (in a CLOZE style)?

Thank you for your work

In reply to Pedro Crispim

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Itamar Tzadok -

There seems to be a bit of confusion about who's going to maintain Adriane's question types. Still waiting for Artem to respond. As for a M2 version of my own take on the dd question types, I hope to get to that soon. smile

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Ravi Vare -

Hi Itamar,

I have been using 'Ordering Q. Type'

I would like to give thanks to you.

'Classification' is also nice. (for this type i am using Mltichoice Q. Type)

BTW,

i eager to use these Q. type in Moodle 2.1

Thanks again Itamar.

Best Regards,

Ravi

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Martin O'Mahony -

This looks just wonderful! Kudos, Itamar!

There is one (stupid) question I keep asking myself, though. Will this still be compatible with my old Drag-and-Drop ordering questions when I upload my courses to Moode 2.1+? I am asking because I am dealing with quite a large number of questions of that type which I cannot afford to loose at this point.

Best,
Martin

In reply to Martin O'Mahony

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Itamar Tzadok -

Thanks Martin. Old Drag-and-Drop ordering should be upgradable to the 2.1 Drag-and-Drop ordering. smile

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Nadav Kavalerchik -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Wow! very impressive. I'd love to play with these question too.

Itamar@ Please have a look at my patches for the Drag and Drop question: http://tracker.moodle.org/browse/CONTRIB-2639 , http://tracker.moodle.org/browse/CONTRIB-2578 and the Imagedit question type : http://tracker.moodle.org/browse/CONTRIB-2856 in which i added unique IDs to each html element in each question. so they could be displayed as multiple instances at the same page.

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Ravi Vare -

Hi Itamar,

I want to try/use this 'Classification Q. Type'.

Where do i get the code of this Question type ?

TIA,

Ravi

In reply to Ravi Vare

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Itamar Tzadok -

It has not been ported to a question plugin yet and the current question builder is on a Moodle version which I no longer use. I intend to port it as soon as possible and will add the plugin to the repository once it is done. smile

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Ravi Vare -

Hi Itamar,

Thanks For Response.

I am waiting smile

Wish you all the BEST.

Ravi

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I'm not sure about that. The problem is that with the plain match quetsion type, the drag elements need to be strictly plain text. With ddmatch it should be possible to have some HTML in there, at least <b>, <i>, <sup> and <sub>.

Anyway, with the new question engine, you should not have to copy and paste much, you should be able to do a lot with subclassing.

For example, look at how little code there is in https://github.com/timhunt/moodle-qtype_ddwtos because it derives from https://github.com/timhunt/moodle-qtype_gapselect.

Average of ratings: Useful (3)
In reply to Adriane Boyd

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Adriane Boyd -

Hi Itamar,

Anthony has assigned the tracker categories to you and I made you the owner of the two outstanding tracker issues.  From the discussion here, it sounds like 2.1 versions will be ready soon, which is great!  (Thanks, Artem!)

Let me know when you'd like to take over the contrib database entries.  Anthony said he can just change the owner to you.  (It would be nice if you could maintain a note in the description that I originally added the entry.)

-Adriane

In reply to Adriane Boyd

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Itamar Tzadok -

Any time. But I'm wondering if Artem is already maintaining these questions should he be the owner of the tracker issues and contrib entries? smile

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Itamar Tzadok -

missing n't:

if Artem is already maintaining these questions shouldn't he be the owner of the tracker issues and contrib entries? smile

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Adriane Boyd -

Hi Itamar,

I hadn't see Artem much in the quiz forum before this discussion and you volunteered directly, so I thought it made more sense, at least initially, to transfer things to you, since I knew for sure that you were familiar with everything.

At this point, it can be your call: if you would like to transfer everything to Artem and Artem would be willing to take over, it is all fine with me, and he can also get access to the contrib entries, which haven't been modified yet.

-Adriane

In reply to Adriane Boyd

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Itamar Tzadok -

Thanks Adriane.

Artem, your call. smile

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Ravi Vare -

Hi All,
i installed 'order' Successfully.
But it can't restore questions from moodle 1.9 to Moodle 2.1 properly.

i know mission is going on !!!

Thanks for contribution.

Ravi


In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Pedro Crispim -

Artem:

We really would like to hear from you.

Itamar depends on your answer to further advance on developing these questions or letting you do it.

Thank you and Itamar for your interest

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Artem Andreev -

Sorry for late answer but I do not watch moodle forums (especially most active). But I am watching CONTRIB-3057.

I'll always be glad to help but I don't have resources for maintaining d&d and ordering questions.

In reply to Artem Andreev

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Jean-Michel Védrine -

Hello,

As this tread is the main one for Moodle 2.1 versions of ddmatch and order maybe it would be usefull for users of these questions to report here that I have added restoration of 1.9 backups and XML import/export to ddmatch for Moodle 2.1 and posted my version here.

I will also post a comment in CONTRIB-3057 so that Andreev is aware of that.

In reply to Jean-Michel Védrine

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

I just restored about 30 ddmatch questions from 1.9 to 2.1 and it seems to have worked fine. It did throw up some messages during the restore that looked like some debug prints that had not been commented out, but that could be entirely unrelated to the restore process. Many thanks jean-michel

In reply to Marcus Green

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Ali Hastie -

Hi

We are using ddmatch (version 2011080500 Moodle 2.1) within a couple of Moodle 2.2+ installations and receive the debugging error below when I try to check for foreign keys within the XMLDB editor:  

Debug info: Table 'sdamoodle.mdl_questions' doesn't exist
SELECT count(1) FROM mdl_question_ddmatch t1 LEFT JOIN mdl_questions t2 ON t1.question = t2.id WHERE t1.question <> ? AND t2.id IS NULL
[array (
0 => '0',
)]

Stack trace:

  • line 391 of /lib/dml/moodle_database.php: dml_read_exception thrown

  • line 809 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()

  • line 1270 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()

  • line 1345 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()

  • line 1516 of /lib/dml/moodle_database.php: call to moodle_database->get_field_sql()

  • line 106 of /admin/xmldb/actions/check_foreign_keys/check_foreign_keys.class.php: call to moodle_database->count_records_sql()

  • line 160 of /admin/xmldb/actions/XMLDBCheckAction.class.php: call to check_foreign_keys->check_table()

  • line 72 of /admin/xmldb/index.php: call to XMLDBCheckAction->invoke()

 Though, the ddmatch questions work accordingly but would good to see what is causing this error.

Cheers.

In reply to Ali Hastie

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

I wouldn't wory too much, Moodle will not install with foreign keys turned on with a database engine that actually takes any notice of foreign keys sad. Though that foreign key checking capability is something I had not seen previously and I will investigate.

In reply to Marcus Green

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Ali Hastie -

Ok thanks Marcus.

In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Artem Andreev -

Heh, I missed something, but I hope I'm not too late.

I've done reimplementing drag&drop matching question based on core matching question with some changes:

  • drag&drop matching question for Moodle 1.9 don't forbid image inserting. But Moodle 2.0 version doesn't have WYSIWYG editor for answer fields (and appropriate db field 'answerformat'). I added ability to use  WYSIWYG editor for answer fields.
  • correctansweris don't displayed when question state correct;
  • correct answer is displayed as table: not <question text> - <answer text>. When question and/or answer text contain HTML correct answer looked ugly.

Git: https://github.com/andreev-artem/moodle_question_type_ddmatch/tree/WIP_MDL_21

At this moment drag&drop matching question not well tested (especially existing attempts upgrading) so do NOT use it on production servers.

In reply to Artem Andreev

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Steffen Fahl -

thanks alot for maintaining those important questiontypes!

I tested them a bit here are my results:

Both order and ddmatch work fine in IE8 which is from 2009 and in so far a bit outdated now. I also have no problems in FireFox 5.

I have in  IE9 the Problem, that I cant drag anything at all. The dragable fields just doesnt react on the mouse.

In Firefox 6 the dragable fields are dragable, but once you chose one item it is not possible to drop it anyway even "esc" does'nt help.

Since those questiontypes are very useful, I hope thos problems might be solved soon.

Did you ever thought to maintain Adrianne Boyds incredible "image target" question I really loved in moodle 1.9?

best

Steffen

In reply to Steffen Fahl

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The OU (well, Jamie Pratt) is working on a 'hotspot' question type for Moodle 2.1 that will be a natural successor to the image target question type.

Average of ratings: Useful (3)
In reply to Tim Hunt

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Steffen Fahl -

a hotspot-question is realy Good news...

But what can I do with ddmatch and order in IE9 and FF6?

Does anyone know, why the "drag and drop" in IE9 and the "drop" in FF6 don't work?

Steffen

In reply to Steffen Fahl

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Moodle uses version 2.8 of the YUI JavaScript library, and it seems that the drag and drop part of the library does not work at all with IE9 sad

In reply to Tim Hunt

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Steffen Fahl -

That is what I already was afraid of. I dont want to be impudent, since Itamar made a great Job with porting ddmatch and order to 2.1 but Is there any chance to fix that, since I know I can't prevent our students to use IE9 and FF6.

best Steffen

In reply to Steffen Fahl

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Oh, hang on. I don't think there is a problem with FF6.

The only option is to change the JavaScript. The natural thing would be to write it to use the newer YUI3.x, which is also included in Moodle.

In reply to Tim Hunt

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Steffen Fahl -

Is there any hope to get a YUI3-Version since I get the same Problem aswell in IE9, FF6 as in Safari 5.1 on Mac. It is a pitty, for that wonderful questiontype since I cant expect from our students to run the old browserversions to work with this qt.

best

Steffen

In reply to Steffen Fahl

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Itamar Tzadok -

Thanks for kind words but porting ddmatch and order to 2.1 was actually done and is currently maintained by Artem Andreev. My implementation as illustrated above is a javascript layer over the cloze question and requires a designated builder to generate the question code. I'm still planning to implement it as a question type for 2.1 and higher with YUI 3 along side Artem's question types, since my approach allows for flexible design of the question layout in the spirit of the cloze question. smile

In reply to Artem Andreev

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Pedro Crispim -

Artem, good job maintaining these questions available in Moodle 2.1.

Is it ok to restore a 1.9.x course including drag&drop matching questions with no attempts in Moodle 2.1x?

Do you know when a 'stable' version will be available?

In reply to Artem Andreev

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Pedro Crispim -

Artem:

Great work on those question types porting. Here's my feedback:

Importing "Drag-and-drop" questions from Moodle 1.9.x to Moodle 2.1 doesn't seem to work - all i get is a single bar to drag, although I had more dragable objects.

I tested creating quizes in Moodle 2.1.x and all works ok (both "Drag and Drop" and "Ordering").

Are you going to work further on these question types? I really would like to be able to import 1.9 quizes in 2.1 with both types, but specially "Drag and Drop").

Attachment DD_erro.png
In reply to Itamar Tzadok

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Artem Andreev -

Done reimplementing order question based on core matching question.

Git: https://github.com/andreev-artem/moodle_question_type_order/tree/WIP_MDL_21 

In reply to Artem Andreev

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Ravi Vare -

Hi Artem,

I installed DDMatch Successfully.

but Failed to install 'Order'

I attached Screenshot.

I Know work in progress.

I am just telling the 'error'

Best regards,

Ravi

I am using Moodle 2.1

Server - XAMPP

OS - Win XP

Attachment order.JPG
In reply to Ravi Vare

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Artem Andreev -

Thanks, fixed.

Average of ratings: Useful (1)
In reply to Artem Andreev

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Ravi Vare -

Thanks Artem,

It (Order) Works in Moodle 2.1

Thanks to all of you.

Best regards,

Ravi

In reply to Artem Andreev

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

ShouldI be able to get the ddmatch to install and work for Moodle 2.1 I have been playing with the code at

https://github.com/andreev-artem/moodle_question_type_ddmatch/tree/WIP_MDL_21

I can get the ordering question to work but not the ddmatch?

 

In reply to Marcus Green

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Marcus Green -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Ooooh it works and its lovely. I don't know why it didn't seem to work previously with my 2.1, excellent.  Thanks for the work  Artem.

In reply to Marcus Green

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Ali Hastie -

The ddmatch within Moodle 2.2.1+ will not display images within answer areas when we do not include a question for the answers.

We are using the 2.1 version (2011080500) of ddmatch.

Cheers

In reply to Ali Hastie

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Great Valérie -

Can you tell me, please, where can I download this ddmatch version. Is it here ?  http://moodle.org/mod/data/view.php?d=13&rid=978

Thank you

In reply to Great Valérie

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Joseph Rézeau -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

@Beatrice: Which version of Moodle are you using?

In reply to Great Valérie

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Adriane Boyd -

Check out the 2.1 branch of Andreev's github repository that is linked a couple posts up.

In reply to Adriane Boyd

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Great Valérie -

Thank you.

My Moodle version is 2.1.

I got zip files in 2.1 branch of Andreev's github repository;

In reply to Adriane Boyd

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

I just want to think Adriane for maintiaining these question types for so many years. Wow! it was 2007 when they were created.

And thanks to Itamar for volunteering to take them on.

(P.S. sorry Adriane, I ingored your email about this. I'm afraid it got burried in my inbox and then I forgot.)

In reply to Tim Hunt

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Joseph Rézeau -
Picture of Core developers Picture of Plugin developers Picture of Testers Picture of Translators

Yes of course, kudos to Adriane (and Itamar).cool

Joseph

In reply to Tim Hunt

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Pedro Crispim -

And to Arteem...

 

There seems to be a litle confusion here, regarding who did what. correct me if I'm wrong, but I guess Itamar is developing a new frontend that allows to use DDM & O question types in a CLOZE style, right?

The original developer of DDM & O question types was Adriane, but is Andreev who ported them to Moodle 2.1 and will be maintaining them, right?

Average of ratings: Useful (2)
In reply to Pedro Crispim

Re: looking for new maintainer(s) for drag-and-drop matching and ordering

by Nathan Lothamer -

I hate to necro a dead forum but I'm looking for the 2.1 version of this file. All the links on Github are dead for it. 

Is there anyone that might still have this file that could point me to a download location (ie onetimebox)?