• I would like to create tests, surveys, and courses that my users can take more than once, and retain the results of each instance (not just the most recent instance). For example, they could do the same quiz before and after reading an article, so I could analyze how the reading affected their quiz answers. Or I could have an annual survey, and I would be able to view their answers from previous years.

    Does the H5P plugin have any built-in way to store multiple results for the same user on the same H5P content?

    If not, I could try to write a plugin to store and retrieve previous results when new results are created. Can you suggest which WP hooks I could use to detect when a previous result is being changed?

    • This topic was modified 4 years, 2 months ago by Scott N.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Scott N

    (@scott_n)

    Clarification: Looking at the database tables, it appears that the wp_hp5_results table only tracks scores and times, while the wp_h5p_contents_user_data stores the users’ answers and selections. To be clear, I am more interested in saving previous records of the user data than the “results” (scores).

    Plugin Author icc0rz

    (@icc0rz)

    Currently, the results tracking is very basic in the WordPress plugin. The main focus has been on the content. This has to do with users often opting to use custom Learning Record Stores for tracking how the content is used and creating custom reports. This is possible as the H5P content is emitting different xAPI statements as it’s used. You may use these statements to track content usage in a way that suits your needs.

    Just to clarify on the tables; wp_h5p_results is the simple score tracking that can be used for things like a high-score list or similar.
    The wp_h5p_contents_user_data on the other hand is actually more of a user state store for being able to return the user back to where they were the next time they visit the content. It’s not all that useful for results.

    I believe what you’re seeking does not really exist and what you want to do is probably to create a custom solution that listens to the xAPI events from the content in order to generate the results that you require.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Can we save multiple results? (Before and After)’ is closed to new replies.