Add the number of attempts for a quiz on the certificate

Add the number of attempts for a quiz on the certificate

by Gina Gwen -
Number of replies: 3

Moodle 2.4.1+ (Build: 20130125)

For the certificate, in the Text Options section, I selected to print the grade of a quiz which is great, but is there a way to add the number of attempts the user made to reach that quiz grade? 

 

 

Average of ratings: -
In reply to Gina Gwen

Re: Add the number of attempts for a quiz on the certificate

by Gina Gwen -

Is there no one out there who knows how to add the attempt status of a SCORM module to the Certificate?

In reply to Gina Gwen

Re: Add the number of attempts for a quiz on the certificate

by Matteo Scaramuccia -
Picture of Core developers Picture of Peer reviewers Picture of Plugin developers

Hi Gina,
AFAIK there's no configuration setting available: it is required to write some custom code into the Certificate module.

HTH,
Matteo

In reply to Gina Gwen

Re: Add the number of attempts for a quiz on the certificate

by Mark Nelson -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Testers

Hi Gina,

You are going to need to edit the mod/certificate/type/<typeyourareusing>/certificate.php file to query the database for the SCORM attempts and then display them on the PDF. This is a bit tricky and will require someone who is knowledgeable in PHP, the Moodle DBAL and the database structure to configure.

Regards,

Mark