Gift with medias format

Question formats ::: qformat_giftmedia
Maintained by Jean-Michel Védrine
Question import format similar to Gift and uses the same syntax, but instead of a text file it imports a zip file containing the gift text file and media files (images, sounds, ...);

Gift with medias format 1.05 for Moodle 2.7 ... 4.0

Moodle 2.5, 2.6, 2.7, 2.8, 2.9, 3.0, 3.1, 3.2, 3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, 3.10, 3.11, 4.0
Released: Sunday, 17 July 2022, 8:39 PM

This is just a maintenance release because this plugin was broken with Moodle recent versions. But I am now retired so if you find this plugin useful and have developper skills please consider becoming the new maintainer of this plugin. Thanks.

moodle-qformat_giftmedia

Moodle import format similar to gift, but for a zip file with media files

This plugin allow import of questions with images using the GIFT format syntax.

Written by Jean-Michel Védrine

To install using git, type this command in the root of your Moodle install git clone git://github.com//jmvedrine/moodle-qformat_giftmedia.git question/format/giftmedia Another way to install is to download the zip file, unzip it, and place it in the directory moodle/question/format/. (You will need to rename the directory moodle-qformat_giftmedia-master to giftmedia).

WARNING : This version of the report is compatible with Moodle 2.5 or later. There are differents version of this plugin available for older Moodle versions. Be sure to install the right version for your Moodle version.

The zip file used for import should have the following structure : - a text file with all questions in gift form at the root level of the zip archive with a .txt extension - one or more folders with the media files, each folder can have any subfolders levels as long as the complete path is specified in file's references in the gift questions text

Example of media files inclusion

Example 1

For instance if a mymedia.mp3 file is in the myfolder/mysubfolder/ subfolder, the correct reference in the gift file is


Example 2

If you want to include an image named logo.jpg into your question , you can write:

<img src\="" alt\="logo" />

and put the logo.jpg file into your zip file

Example 3

If in your question you have the following html fragment to display an image

<img src\="images/flower.png" alt\="a flower" />

You should edit it to

<img src\="" alt\="a flower" />

An put the flower.png file into a folder named images inside your zip file

KNOWN LIMITATIONS

Currently the text file containing the questions must be at the root level of the zip archive, and it must have a .txt extension to be correctly found and parsed.

NOTE

Don't forget the GIFT syntax ! the = character is a special character for GIFT so each = in your HTML has to be written as \= (see examples 2 and 3 above). I made this mistake numerous time while writting GIFT with medias questions, so you have been warned.

Version information

Version build number
2022071700
Version release name
1.05 for Moodle 2.7 ... 4.0
Maturity
Stable version
MD5 Sum
64a4d8f6941c234aa5950cba76759053
Supported software
Moodle 2.5, Moodle 2.6, Moodle 2.7, Moodle 2.8, Moodle 2.9, Moodle 3.0, Moodle 3.1, Moodle 3.2, Moodle 3.3, Moodle 3.4, Moodle 3.5, Moodle 3.6, Moodle 3.7, Moodle 3.8, Moodle 3.9, Moodle 3.10, Moodle 3.11, Moodle 4.0
  • Latest release for Moodle 2.5
  • Latest release for Moodle 2.6
  • Latest release for Moodle 2.7
  • Latest release for Moodle 2.8
  • Latest release for Moodle 2.9
  • Latest release for Moodle 3.0
  • Latest release for Moodle 3.1
  • Latest release for Moodle 3.2
  • Latest release for Moodle 3.3
  • Latest release for Moodle 3.4
  • Latest release for Moodle 3.5
  • Latest release for Moodle 3.6
  • Latest release for Moodle 3.7
  • Latest release for Moodle 3.8
  • Latest release for Moodle 3.9
  • Latest release for Moodle 3.10
  • Latest release for Moodle 3.11
  • Latest release for Moodle 4.0

Version control information

Version control system (VCS)
GIT
VCS repository URL

Default installation instructions for plugins of the type Question formats

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myformat") in the "question/format" subdirectory.
  4. Visit http://yoursite.com/admin to finish the installation