Note: You are currently viewing documentation for Moodle 3.3. Up-to-date documentation for the latest stable version of Moodle is probably available here: Quiz FAQ.

Quiz FAQ: Difference between revisions

From MoodleDocs
(→‎How can I turn off glossary in a quiz?: Paul's KISS hack to turn off glossary in quizes)
Line 19: Line 19:
*There is an html code <nolink> question goes here </nolink> which can prevent links, including glossary from being shown.   
*There is an html code <nolink> question goes here </nolink> which can prevent links, including glossary from being shown.   
*Under site administration, filters, there is a switch which can hide glossary. Turning this off when a quiz is open is one option.  There are several hacks which may turn off glossary during a quiz.
*Under site administration, filters, there is a switch which can hide glossary. Turning this off when a quiz is open is one option.  There are several hacks which may turn off glossary during a quiz.
*For those who want to be brave.  This [http://moodle.org/mod/forum/discuss.php?d=13652#66312 forum thread] should be useful. Paul Evans wrote in this thread on Friday, 8 October 2004 "You can also stop it (glossary linking) doing a whole module by editing the php for the module you don't want to link. Just look for lines with the word 'filter'. For example, the forum module: look in lib.php and you'll see where a test is done to perform the filter. Just search on the word 'filter'. Comment out the lines that do the filtering. Make sure you keep searching afterwards as there may be multiple instances.
*For those who want to be brave and turn off glossary for all quizes on the site or in other areas, this [http://moodle.org/mod/forum/discuss.php?d=13652#66312 forum thread] should be useful. Paul Evans on 11 October 2004, 06:41 PM suggested this hack be added to the moodle/mod/glossary/filter.php file. Insert in the line right after 'global $CFG' the following lines.
        // suggested by Paul Evans 11 October 2004 in the Glossary Module forum
        // Nolink for quizzes (or any other word in the path you like)
        // $_SERVER['REQUEST_URI'] looks like e.g. : /mysite/mod/quiz/view.php?id=21
        if (strpos($_SERVER['REQUEST_URI'], "/quiz/")) {
            return $text;
        }
This works in 1.6 and turns off glossary for all quizes on the site. New users please note that the filter.php file can be opened by a simple text editor. Do a copy on everything in the shaded box above and paste it right after the line which has global$CFG  which is near the top of the file.  


[[Category:Teacher]]
[[Category:Teacher]]
[[Category:Quiz]]
[[Category:Quiz]]
[[Category:FAQ]]
[[Category:FAQ]]

Revision as of 14:47, 27 June 2006

Template:Quizzes

What happens if students submit answers after the quiz closing date?

It is possible for students to still submit answers after the quiz has closed (for example if they started the attempt before the closing date but then took a long time before submitting). These responses are stored by the quiz module, but the students are not given any credit for them. The teacher can see these answers when reviewing the student's attempts and can give the student credit for them by hand. Also the teacher could change the closing date after the fact and regrade the attempts. The students answers would then get graded.


Why Can't I set a longer quiz timelimit?

The maximum quiz timelimit seems to be 10 minutes less than the session timeout set for moodle. (In 1.6 quiz timelimit will not be limited by session timeout). If you want longer quiz timelimits in 1.5, you would need to log in as administrator, and click "Configuration" under the administration section on the main page, then click "Variables", and find "Session Timeout", and set it to somthing longer.

Session timeout is the length of time the site will allow a user to be inactive (not loading pages) before they are automatically logged out (and presumabally lose some session data if they were still working - albeit slowly). There isn't really any serious problem setting this to 2 or even 3 hours - as long as the student isn't silly enough to leave a shared computer with their login active on the server. Long story short - logout when done.


How can I turn off glossary in a quiz?

This is a subject under active discussion in Moodle in the Quiz and Glossary forums.

  • There is an html code <nolink> question goes here </nolink> which can prevent links, including glossary from being shown.
  • Under site administration, filters, there is a switch which can hide glossary. Turning this off when a quiz is open is one option. There are several hacks which may turn off glossary during a quiz.
  • For those who want to be brave and turn off glossary for all quizes on the site or in other areas, this forum thread should be useful. Paul Evans on 11 October 2004, 06:41 PM suggested this hack be added to the moodle/mod/glossary/filter.php file. Insert in the line right after 'global $CFG' the following lines.
       // suggested by Paul Evans 11 October 2004 in the Glossary Module forum
       // Nolink for quizzes (or any other word in the path you like)
       // $_SERVER['REQUEST_URI'] looks like e.g. : /mysite/mod/quiz/view.php?id=21
       if (strpos($_SERVER['REQUEST_URI'], "/quiz/")) {
           return $text;
       }

This works in 1.6 and turns off glossary for all quizes on the site. New users please note that the filter.php file can be opened by a simple text editor. Do a copy on everything in the shaded box above and paste it right after the line which has global$CFG which is near the top of the file.