Opaque question type: Difference between revisions

From MoodleDocs
No edit summary
Line 1: Line 1:
Recent versions of the Opaque question type is compatible with Moodle 2.1 and later.
The Opaque question type can be used to connect to [https://github.com/sangwinc/stack/wiki STACK] and [http://openmark.java.net/ OpenMark] question engines.
==Installing the Opaque question type==
==Installing the Opaque question type==


# Download it from [http://moodle.org/mod/data/view.php?d=13&rid=798 Opaque question type Plugin Database page].
The Opaque question type comes in two parts: a question type, that needs to be installed into the question/type/opaque folder, and a question behaviour that needs to be installed into the question/behaviour/opaque folder.
# Unzip.
 
# Copy the opaque folder into the question/type folder of your Moodle install.
The two projects on github:
# Go to http://''myserver''/admin/index.php in your browser to complete the installation.
* https://github.com/timhunt/moodle-qtype_opaque
* https://github.com/timhunt/moodle-qbehaviour_opaque
explain how to get the code using either git clone or by downloading a zip file.
 
After getting the code, you need to visit the admin notification page of your Moodle to let the plugins install themselves.


==Configuring the question type==
==Configuring the question type==


''It would be good if there was a test Opaque question engine somewhere on the internet that people could use to try this out. Unfortunately, at the moment all the ones I know about are inside the OU's firewall. Drat!''.
After installing the plugins, go to Site administration / Plugins / Question types / Opaque and add an engine. This requires knowing the URL of the question engine you want to connect to.
 
#Visit http://''myserver''/question/type/opaque/engines.php.
#Click 'Add another engine'.
#Enter the details of an Opaque engine.


==Creating an Opaque question==
==Creating an Opaque question==

Revision as of 15:30, 19 August 2011

Recent versions of the Opaque question type is compatible with Moodle 2.1 and later.

The Opaque question type can be used to connect to STACK and OpenMark question engines.

Installing the Opaque question type

The Opaque question type comes in two parts: a question type, that needs to be installed into the question/type/opaque folder, and a question behaviour that needs to be installed into the question/behaviour/opaque folder.

The two projects on github:

explain how to get the code using either git clone or by downloading a zip file.

After getting the code, you need to visit the admin notification page of your Moodle to let the plugins install themselves.

Configuring the question type

After installing the plugins, go to Site administration / Plugins / Question types / Opaque and add an engine. This requires knowing the URL of the question engine you want to connect to.

Creating an Opaque question

This works just like any other question type - select 'Opaque' from the Create new question dropdown on the question bank screen.

The Opaque editing form has very few fields, since the question is mostly defined by the remote engine, we just have to say which engine to connect to, and the question id and version.

Then you can add you new question to a quiz, and try it out. Or you could just preview it.


See also