otacke / h5pxapikatchu Goto Github PK
View Code? Open in Web Editor NEWWordPress plugin to store xAPI statements emitted by H5P
License: MIT License
WordPress plugin to store xAPI statements emitted by H5P
License: MIT License
This plug-in does not appear to track branching scenario choices. Is this a planned feature to be added?
Thank you for such a great plug-in. Love the raw data!
Hi Oliver,
hope you are well, OSA from Freiburg calling. :)
I tested this plugin for the Online Studychoice Assessments (Online Studienwahl Assistenten) at the University of Freiburg and had to made a few adjustments for make it work on a multisite installation. Now it works just great and gives us a deeper insight into the H5P test results (anonymous as you don't have to log in for doing the tests) - really useful.
For multisite installations we need a flexible way for storing the configuration of H5PxAPIkatchu plugin. Be aware that the H5P content id could be the same in different multisite blogs.
So my idea is to create different config files to store the settings of H5PxAPIkatchu plugin for each blog separately. As each blog has its own id, we could add this blog id to the name of the config file to distinguish it easily.
For example instead of
/js/h5pxapikatchu-config.js
in a WP multisite installation this would be
/js/h5pxapikatchu-config2.js
/js/h5pxapikatchu-config3.js
/js/h5pxapikatchu-config4.js
where 2, 3, 4 and so on are the blog ids.
I tested it successfully on our WP multisite installation. You can check my customizations here :
https://github.com/osa-freiburg/h5pxapikatchu/tree/multisite-mode
What do you think about it? If you could take a peek at it sometime, I'd really appreciate some feedback.
Thanks, and take care!
Anja
Cmp. https://twitter.com/webphysik/status/1054852156103290881
@webphysik: @otacke H5P sendet die Antworten, die Interakted sieht man auch im Plugin, nur die eigentlich answered wäre, wird als leere Zeile angezeigt. Ich teste gerade Watershed LRS, dass dürfte sich eignen als Recordinginstanz. Also kein Stress wegen Filter!
Add hooks and filters so others can better customize the plugin. In particular: "insert data"
At least the following things should be done:
Check why event is undefined on Firefox
https://github.com/otacke/h5pxapikatchu/blob/master/js/h5pxapikatchu.js#L41-L60
Hi
Is it possible to export the data in a JSON file instead of CSV file?
There seems to be no timestamp associated with xAPI events. It would be great to have one, so the exact chronology of the events could be recorded (would be nice to know if or where a user spends more time in the H5P apps).
Think about this ...
It might be better to implement https://github.com/h5p/h5p-php-report into the H5P WordPress plugin or to create a separate one for this job.
Check what xAPI properties might make sense to keep in the database, e.g. the optional properties of interaction activities.
On May 17, the WordPress introduced some new hooks that can be used to support the plugin with processing data, cmp. https://developer.wordpress.org/plugins/privacy/
Support as much as possible.
Hey Oliver,
I am trying to get the statements to be stored and am having no luck. I turned on the console debugging, and statements are being captured via h5pxapikatchu but they don't seem to be displayed in the WP back-end (wp-admin/admin.php?page=h5pxapikatchu_options). I get the following message:
There is no xAPI information stored.
I've checked my database, and the tables are being created:
wp_h5pxapikatchu, wp_h5pxapikatchu_actor, wp_h5pxapikatchu_result, wp_h5pxapikatchu_verb.
There are statements being stored in the wp_h5pxapikatchu table. Belong is an example:
{"actor":{"name":"ivadmin","mbox":"mailto:[email protected]","objectType":"Agent"},"verb":{"id":"http://adlnet.gov/expapi/verbs/interacted","display":{"en-US":"interacted"}},"object":{"id":"http://name.com.au/clients/name/wp-admin/admin-ajax.php?action=h5p_embed&id=6?subContentId=b535852c-7543-4b8a-bd08-93eb094f123c","objectType":"Activity","definition":{"extensions":{"http://h5p.org/x-api/h5p-local-content-id":6,"http://h5p.org/x-api/h5p-subContentId":"b535852c-7543-4b8a-bd08-93eb094f123c"},"name":{"en-US":"Where should you store Gavin and the gang to keep them fr..."}}},"context":{"contextActivities":{"parent":[{"id":"http://name.com.au/clients/name/wp-admin/admin-ajax.php?action=h5p_embed&id=6","objectType":"Activity"}],"category":[{"id":"http://h5p.org/libraries/H5P.MultiChoice-1.10","objectType":"Activity"}]},"extensions":{"http://id.tincanapi.com/extension/ending-point":"PT33S"}}}
I have tried enabling Store complete statements
in-case that was causing an issue but that did not resolve it either.
Am I looking in the wrong place for this data?
Thanks for creating this plugin!
Aloha, we noticed the following warning when interacting with the Personal Data Erasure tool in WordPress. Probably just needs to be updated for the latest API:
https://developer.wordpress.org/plugins/privacy/adding-the-personal-data-eraser-to-your-plugin/
Warning:
Deprecated: Non-static method H5PXAPIKATCHU\PrivacyPolicy::register_h5pxapikatchu_eraser() should not be called statically in /var/www/html/wp-includes/class-wp-hook.php on line 287
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.