How can I generate printable certificates and send it with mail on successful completion of a Quiz Module generated Quiz.

Comments

falcon’s picture

I think there are a couple of initiatives on this one. We here at the Norwegian Centre for Telemedicine is working on a module for certification. We will release it soon after quiz 4 has been released. I will try to remember updating this issue when we do.

sunsetco’s picture

I have a Quiz 3 version of this working on my site. Right now it is locked into a specific certificate (with exact placement of Quiz Name, User Name, etc.) due to the code using Table Div's for placement. It works in conjunction with the Print module to generate a .pdf image for the user.

If I can get it updated to be a bit more flexible by placing elements with CSS code (instead of the Table Divs), that will be MUCH more flexible and should use much less overhead on the server. Once I get there, I will try to post the module for everyone.

falcon: Would you like me to send you what I have for you to examine?

falcon’s picture

I'm glad the Certification module is coming along!

I'm going on vacation next week. It is probably better if I get a fresh version in April.

dom001’s picture

Hi sunsetco,

I'd be very interested in learning more about how you are managing certificate creation using Quiz 3. I am in the process of constructing an e-learning site that needs a certificate creation feature on successful completion of a quiz. The site needs to go live in quite a short space of time, so waiting for Quiz 4 might not be an option for me... at least for the initial launch!

Are you able to provide any pointers on how you achieved this?

zeezhao’s picture

subscribing.

beeradb’s picture

Here's a process we've used for certification.

We have courses which have grouped content inside organic groups (we need to do access for course membership). We have certain certification courses in which the primary content within the course is a quiz. Using hook_nodeapi we generated a table view of all the quizzes/status (passed, not taken, failed, failed 1/3 attempts, etc.) within a certification for users viewing the certification course while a member of the organic group. Once a user has passed all quizzes in a certification we display a "print certificate" link under the table, which just goes to a custom callback where we've themed a printable view of the certificate, that callback does any necessary access checking etc. to ensure the user viewing it has actually passed the certification.

I'd be willing to contribute some/all of this code if any of it is useful in this case. I can think of dozens of different use cases for certifications though, so this may not be entirely useful to what you all had in mind.

rachel_norfolk’s picture

Hi,

I'd really love to see what people have been up to and try and extend upon that. @Sunsetco or @beeradb - is there any chance of posting what you have so far or sending a copy for me to have a look?

Thanks!

Rachel

sunsetco’s picture

Sorry guys,
It took me a bit to get back on this. The developer I am working with has had to work out a few bugs.

Basically, we hooked into the code for when a quiz in finalized and stored some extra data into a results table. The data is things like "Certificate Name"(since the username can be something silly), "Certificate ID#" and so on. This way a user can reprint their certificate whenever they need to, but the data does not change.

We utilized the "Print" module to create a PDF version of each certificate. By tweaking a custom .tpl file in the module, we could strip out any excess page data, put our own background in place, and let the user generate the pdf on-the-fly without filling up storage on the server.

My developer was supposed to create a clean version of the module to contribute, but I found that it still has a lot of private references in it. I will try to clean it up for everyone as soon as I get a chance.

Falcon, I sent you a private e-mail to see if you want to work on what I have now. Let me know if you want it.

Rachel, Do you want my current version? or wait until its cleaned up?

Sunsetco

rachel_norfolk’s picture

hi Phil,

Yes, it would be good to have a look at the version as it stands now, and then take a further look after the code has been tidied. TBH - I'm happy to help...

Rachel

fuzzy76’s picture

I have a (sort of alpha quality) module for this awaiting approval for publishing on Drupal.org - http://drupal.org/node/501874#comment-3098802

hlan’s picture

subscribing.

fuzzy76’s picture

Component: Code - Quiz module » Code - Import/Export

Forgot to ping this thread, but the module has been available at for quite a while now :)

fuzzy76’s picture

Status: Active » Closed (won't fix)