Quiz access rules: Auto activate quiz attempt button access rule

quizaccess_activateattempt
Maintained by Picture of IIT Bombay IIT Bombay, Picture of Amrata Ramchandani Amrata Ramchandani
The “Activate Attempt” plugin makes the “Attempt quiz now” button auto-appear at quiz open timing without requiring to refresh the page.
13 sites
64 downloads
3 fans

Moode 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”.

-DalOuqLIF7LTlnnedbEb1eSFgd8qnjW7_6njOyzgk9LhK3q2MTjs5P6L19UGc6WlZTbR_auzTse6qCyeNh9O7WIxgxw-CAa58dedkw2phxPgip55JyKs1wRUFSkLx4QEI7TGHBn 

Fig. 1 - Plugin Installation Notification


4. Complete the installation by clicking on “Upgrade Moodle database now”,click on continue after the success notification appears on the page.

K8EojtKRviBl7z__UEZmbUKU2BEsGhFUj2w_G-pmADB45XYK731RIviFI1d4OS--81G1ezW9YbN2iN2-YpkwPWPDE_Bw8y5RFwp0ckEXc0qykev5SBrhlFlQ4JF59GcgxftJF0ho  

Fig. 2 - Installation Success Notification


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.

wX5yRwQYGTzzVc-bnala8_adHxR-C1QQCVPGjGI_wujWg9pf1q49eiB0iN6MgsD9aewQLlvSSGqG7nS1pSnJf8AmTaBGft0JRxwNzPRR1vdYS0kjA-DMrLozAUpGNdRnH_C04A5A

Fig. 3 - Enabling Quiz Open Time


ENC7NvnQYEaeVdJ3p-oj76bHWYlzRMsg-oU0PihUeX4mKv_6AH0Y9PEfk2JkdiTtR1EiGjbf-VOYCyBrPbLZpZNtAXd2rQYr_T4v-LZjYOVqks6bX3MKcYsCQKBqhykoWGAjwlUp

Fig. 4 - Timer notification if you visit quiz page before quiz open time.


IaR113hAM92EcqqEwaX0Qg4omzFPMpNMHUvMigvAAN3Nvi4zqPhrHzyAFEj2h03CLUkXJFeA7xbLQ-tPXanKcyI68h8I6JS52GT9jcrzqTroqgbmIawf2MhSSe36smw_Mg2wvlU1

Fig. 5 - Attempt Quiz Now Button appears without refreshing the page




Screenshots

Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4

Contributors

Picture of IIT Bombay
IIT Bombay (Lead maintainer)
Picture of Amrata Ramchandani
Amrata Ramchandani
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
Please login to post comments