Asked to make my Certificate minimalistic - how to add you answered M out of N questions?

Asked to make my Certificate minimalistic - how to add you answered M out of N questions?

by Frankie Kam -
Number of replies: 0
Picture of Plugin developers

Hi there you lucky people

I have a request from management to simplify the output of my certificate. Based on the quiz that the student takes, the certificate should now have these detail:

1. Score (no problem)
2. Date quiz was taken (no problem)
3. "You attempted 15 out of 16 questions" (how do I do this?)
4. "Out of the 15 questions attempted, you scored full marks in 10 of them"
(how do I do this?)
5. "All in all, you took 50 minutes for the 60 minute quiz"
(how do I do this?)

I already know how to customise my mod/certificate/type/micertificado/certificate.php file, but does anyone have any ideas how I can do #3, #4,  and #5 (the bold-faced points)? Any pointers, crumbs, handouts, coins or code donations would be most welcome. Or maybe just  pat on my back with the words, "All the best, mate!". smile

Regards (and in the Spirit of asking)
Frankie Kam

Average of ratings: -