Your answer to this question has the potential to really set this Quiz plugin apart from ALL OTHERS, and to make it THE most useful quiz plugin in education, for teachers.
I have two special desires and a proposed solution for meeting them.
- The users whose scores I want to track will already be logged in to the site. So rather than require users to RE-enter their names, I would like to auto-fill the "user name" field for logged-in users (it might as well be a hidden field).
- I really also want a single interface for viewing all of a user's SSquiz scores.
I propose using your existing advice for developers (below) in order to report SSquiz id+username+score to the Achievements plugin. But I could really use a little clarification/help so I can do that!
Your words:
How can I use your plugin in my development?
For example, You can add following piece of code into your plugin.
// hook is triggered when SSQuiz is finished by an user
add_action('ssquiz_finished', 'after_quiz_done', 10, 3);
// function is called with known percent , amount of answered questions and number of answered questions
function after_quiz_done($quiz_id, $percent, $right_answered, $questions_total){ ... }
Can you point me to WHERE in the SSquiz & Achievements plugin code I will have to make the modifications you (and Achievements author, Paul Gibbs) indicate?
Thank you immensely!!!