Quiz for WordPress
Hello there,
We use need plugin to create a quiz for our employees.
Each employee can take the quiz more than once, but must pass the quiz at least once.
When users visit our website it get auto-logged in via LDAP.
How can we create a report for WordPress users who haven’t taken the quiz or haven’t passed it even once?
Can we randomize questions?
Can we create certificates for users who pass the test?
Questions will be radio buttons, and after the test, the plugin need to automatically calculate whether did user pass test.
Can we import questions and answers?
If yes, can you please send me a file example for import?
Can we do all this with your plugin?
Regards
Hi Boris,
you have some easy questions and some hard ones.
So let’s start with the easy.
Can we randomize questions?
Yes! (just make sure to disable page caching on the quiz page if using a caching plugin)
Questions will be radio buttons, and after the test, the plugin need to automatically calculate whether did user pass test.
This is how it works 🙂
Can we import questions and answers? If yes, can you please send me a file example for import?
HD Quiz has a CSV importer. An example file can be found in the plugin. Install HD Quiz and go to Tools (under HD Quiz) → Importer, and you will see both instructions and an example file.
Now for the harder things to answer. For the tracking users and certificates, the short answer is yes, but it requires extending HD Quiz.
HD Quiz has a FREE addon called “Save Results Light”. This addon tracks each time a quiz has been completed. It saves the date and time, the quiz name, the score, if the quiz was passed or failed, and if the user is logged in, it saves their username as well.
There is also a PRO version of the addon “Save Results Pro” that allows you to add a custom form to the start or end of a quiz, save the results for each question, and automatically send emails to both you (the site owner) and the quiz taker.
Now if you are not a developer, the following will feel complicated, but if you are, then you are about to be extremely happy.
How can we create a report for WordPress users who haven’t taken the quiz or haven’t passed it even once?
I have built in many ways to extend HD Quiz. In your case, I would recommend using the hdq_submit
filter to run a custom function once a quiz has been completed. This custom function would simply do one thing: if the user passed the quiz, save a custom meta data to the user’s profile.
You can then create a custom admin page on your site that loops through each user on your site and check for that custom meta. If the meta exists, great, the user has passed the quiz. If not, then we know that they have not passed yet.
Can we create certificates for users who pass the test?
This is how I’ve done this in the past. You can create a custom page on your site that visually shows a certificate. Except, the area where the certificate owner’s name appears will be dynamic based on their user account. Each quiz can have custom “you passed” and “you failed” text at the end of a quiz. For the “Quiz pass text”, simply add a link to the certificate page. The “HD Quiz” part of the above is super easy. The hard part would be creating the certificate page on your end.
You can also contact me at https://harmonicdesign.ca if you’d like me to quote you on a custom implementation of the above.
Respond to thread
This thread has been closed / marked as resolved.
You can reply to this thread, but it might be better to start a new thread if you need help.
You can also upload images to imgur and paste the links here. Just make sure that your images don't include any sensitive information.
Submit