Insert question

Filters ::: filter_simplequestion
Maintained by Richard JonesRichard Jones
This is a very simple implementation of a question filter. It allows questions to be inserted anywhere in Moodle editable text either embedded or in a popup. Note that this plugin has probably been superseded by: https://github.com/moodleou/moodle-filter_embedquestion, developed by the OU team.

Insert question v1.0

Moodle 3.3
Released: Wednesday, 11 October 2017, 11:48 AM

Source code repository

https://github.com/richardjonesnz/moodle_filter_simplequestion

Short Description

This is a very simple implementation of a question filter. It allows questions to be inserted anywhere in Moodle editable text.

Long Description

A simple implementation of a text filter for Moodle. Use of this filter will, in principle allow clever students to keep trying question id's until they discover the ones for your exam. That would require considerable effort on their part.

Work aroundS: Only use the question bank for practice, not for real tests. Have a million questions or so. Have a lot of versions of the same question to confuse them. Try not to worry too much.

In this version the user places special codes within text anywhere in Moodle which can then be replaced by a link to a question number in the database.

The code is of the form {QUESTION:linktext|xxx} where xxx is the question id number. You can find this number by looking at the questions in your question bank. Click the preview question link and look in the URL, the first id is the question's id number.

The linktext is limited to 20 characters (do you really need more - there's a constant in the code).

This question is then previewed in a popup with a simplified version of preview.php

Tested in Moodle 3.3.2+ Build 20171006 Version 2017051502.06

Richard Jones https://richardnz.net richardnz@outlook.com.

October 2017

Version information

Version build number
2017101104
Version release name
v1.0
Maturity
Beta
MD5 Sum
072adba3a5d15a61e635747ae03f9084
Supported software
Moodle 3.3

Default installation instructions for plugins of the type Filters

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