Moodle Plugins directory: Auto activate quiz attempt button access rule: Versions: 1.0.3 | Moodle.org

Auto activate quiz attempt button access rule
Quiz access rules ::: quizaccess_activateattempt
Maintained by
IIT Bombay,
Amrata Ramchandani
The “Activate Attempt” plugin makes the “Attempt quiz now” button auto-appear at quiz open timing without requiring to refresh the page.
Auto activate quiz attempt button access rule 1.0.3
Moodle 3.3
Released: Thursday, 5 October 2017, 6:17 PM
Moodle Plugin - Auto Activate Quiz Attempt Button
Background and Need ->
1) In a quiz where the start time is crucial students tend to refresh the page every now and then,
just to make sure if the attempt is available.
2) This unnecessarily increases the server load, if there are too many such ‘unwanted’ requests.
Solution ->
The “Activate Attempt” plugin makes the “Attempt quiz now” button auto-appear at quiz open timing,
without requiring to refresh the page.
This is done by a client side countdown timer (javascript) which is initiated when the page is rendered in the browser.
The plugin is implemented as an access-rules plugin overriding the default page renderer.
The page, by default, displays the time remaining (in minutes) to start the quiz, and counts down to the last minute.
We have deliberately avoided to display the remaining time in seconds as this too can increase the server load,
since several students will tend to send a server request the next second the button appears.
Whereas, in when displayed in minutes, the requests are likely to be spread over several seconds to a minute.
Installation ->
1) Download it into /mod/quiz/accessrule
2) Log in into Moodle
3) A notification will appear stating “Plugins requiring attention”.
4) Complete the installation by clicking on “Upgrade Moodle database now”,click on continue after the success
notification appears on the page.
Usage ->
If you enable quiz open time in quiz settings, quiz students will no longer have to manually refresh the
page in order to get “Attempt Quiz Now” button at the quiz open timing.
Background and Need ->
1) In a quiz where the start time is crucial students tend to refresh the page every now and then,
just to make sure if the attempt is available.
2) This unnecessarily increases the server load, if there are too many such ‘unwanted’ requests.
Solution ->
The “Activate Attempt” plugin makes the “Attempt quiz now” button auto-appear at quiz open timing,
without requiring to refresh the page.
This is done by a client side countdown timer (javascript) which is initiated when the page is rendered in the browser.
The plugin is implemented as an access-rules plugin overriding the default page renderer.
The page, by default, displays the time remaining (in minutes) to start the quiz, and counts down to the last minute.
We have deliberately avoided to display the remaining time in seconds as this too can increase the server load,
since several students will tend to send a server request the next second the button appears.
Whereas, in when displayed in minutes, the requests are likely to be spread over several seconds to a minute.
Installation ->
1) Download it into /mod/quiz/accessrule
2) Log in into Moodle
3) A notification will appear stating “Plugins requiring attention”.
4) Complete the installation by clicking on “Upgrade Moodle database now”,click on continue after the success
notification appears on the page.
Usage ->
If you enable quiz open time in quiz settings, quiz students will no longer have to manually refresh the
page in order to get “Attempt Quiz Now” button at the quiz open timing.
Version information
- Version build number
- 2017093000
- Version release name
- 1.0.3
- Maturity
- Release candidate
- MD5 Sum
- 4a36b5307e0d4db412d8152b3609ffd7
- Supported software
- Moodle 3.3
- Latest release for Moodle 3.3
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
Default installation instructions for plugins of the type Quiz access rules
- Make sure you have all the required versions.
- Download and unpack the plugin.
- Place the folder (eg "myquizaccessrule") in the " /mod/quiz/accessrule " subdirectory.
- Visit http://yoursite.com/admin to finish the installation