Quiz access rules: Reattempt Checker - a quiz access rule

Maintained by Picture of Amir ShurrabAmir Shurrab
ReattemptChecker is a quiz access rule that prevents students who passed a quiz from reattempting it.
104 sites
8 fans
Current versions available: 1

ReattemptChecker is a quiz access rule that prevents students who passed a quiz from reattempting it.

It was developed to work with Moodle 2.6+. However, it might work with other versions. Please let us know if it worked for your version.

/* ==== How to use the plugin === */

1. Install the plugin.

2. Go to to a quiz page.

3. Edit settings.

4. Scroll down to 'Extra restrictions on attempts' and put a value in the field labeled 'To reattempt the quiz, require a GRADE less than'.

5. Please note that it is a GRADE and not a percentage.

6. Save settings.

7. When the student pass the quiz, the plugin will prevent any further attempts.

8. You can change the text appears to students by followin the steps below.

9. Enjoy!

/* === How to change the text appears to students === */

1. Go to site Administration.

2. Language.

3. Language Customisation.

4. Choose and load the language you want to customise, e.g. English.

5. Select the file called 'quiz_access_reattemptchecker'.

6. Press 'Show strings'.

7. Put the strings you want in the fields under 'Local customisation'.


Screenshot #0
Screenshot #1


Picture of Amir Shurrab
Amir Shurrab (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Plugins bot
    Tue, Jun 2, 2015, 5:21 AM
    Bug tracker is not specified for your plugin. Providing a place for users of your plugin to report issues encourages participation and provides a way for users to report bugs, make feature requests, or suggest other types of improvements. There are a couple of options. You are welcome to request that a component be created in the Moodle tracker. This will allow for you to become more familiar with how issues are managed in Moodle core but may take a little more time to setup. Alternatively, for folks who are using Github, you can use the issues feature of Github to handle such requests.

    In order to facilitate easier sharing and further development of your open-source plugin, please provide publicly accessible URL of your code repository. The suggested naming convention of the repository is moodle-{plugintype}_{pluginname}.
  • Picture of Amir Shurrab
    Mon, Jun 8, 2015, 7:22 PM
    Bug tracker link is provided and a number of errors/warnings reported by the pot are fixed. Could you please advise on what should happen next?
  • Picture of David Mudrák
    Tue, Jun 9, 2015, 5:41 PM

    Thanks for the updated version Amir. I created a new component in the Moodle Tracker for you to use it as your bug tracker, and updated the bug tracker URL here. Please, feel encouraged to use a source code management system (such as Git) for your plugin and publish its URL here. Github repository is what most Moodle plugin authors use these days.

    I checked the code of your plugin and have not found any blockers. You are cleared to land now, welcome to the Plugins directory!

  • Picture of Amir Shurrab
    Wed, Jun 10, 2015, 4:20 PM
    Thanks David!
  • Picture of Wendi Daniels
    Sat, Jul 25, 2015, 9:57 AM
    How do I uninstall it? It does not work well with Linux...
  • Picture of Wendi Daniels
    Sat, Jul 25, 2015, 9:58 AM
    I have deleted the file mod/quiz/accessrule/reattemptchecker, and I have deleted the table in phpMyAdmin called quiz_reattemptchecker
  • Picture of Jean-Michel Védrine
    Thu, Jul 30, 2015, 3:16 PM
    Hello Amir,
    I don't understand the relation between this plugin and the quizaccess_passgrade plugin that is also in the plugin directory. They seem pretty similar to me.
  • Picture of Roland Sherwood
    Fri, Oct 30, 2015, 3:38 PM
    Very useful - thanks.
  • Picture of David Bason
    Fri, Feb 19, 2016, 10:46 PM
    I have a number of exams each with a varying number of questions. I therefore set grade boundaries as a percentage. From your plug-in description you state that it works only on grades = marks. Am I right in assuming that it will not work in my situation?
  • Picture of Alpha WONG
    Thu, Apr 7, 2016, 5:16 PM
    I installed Reattempt checker in Moodle 3.0. I've a course with multiple topics. In topic 1, I have two activities, one scorm for narrated powerpoint and video, the other is quiz. I set the extra restriction for the passing grade 6. Test with a student account with grade 6 in the quiz part, reattemp quiz button is still enabled to retake the quiz.
    Any idea what should I do?
  • Picture of Manoj Navalkar
    Wed, Feb 8, 2017, 8:15 PM
    Hi Amir, Is there a 3.2 version in this plugin's roadmap? Do update.
  • Picture of Mo Elhammamy
    Fri, Apr 21, 2017, 11:07 AM
    Hi Amir,
    Is there a version for Moodle 3.1.2+
  • Picture of Stephanie Cassels
    Mon, Oct 30, 2017, 10:52 AM
    An upgraded version would be amazing !!!
Please login to post comments