Support » Plugin: SNORDIAN's H5PxAPIkatchu » Register from url h5p

  • Resolved jlop77

    (@jlop77)


    Hi

    I have tried from the url of the h5p file, for example in gamipress and it registers points for me. It is not necessary to embed the shortcode in a post.

    With your plugin I have to add the h5p shortcode to a post for it to register.

    I use the url because I share this in google classroom directly.

    Thanks in advance for your help.

    • This topic was modified 1 year, 4 months ago by jlop77.
Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author otacke

    (@otacke)

    Hi jlop77!

    Don’t thank me too quickly. I don’t know GamiPress or how it handles H5P content – and I am not sure what exactly you are asking me to do.

    Cheers,
    Oliver

    Thread Starter jlop77

    (@jlop77)

    Sorry for not explaining myself well, also English is not my native language.

    I start again:

    If I add a h5p shortcode to a post. Then I do the exercise, your plugin captures the records. So far so good.

    But I don’t want to add shortcode to a post. I want to use the h5p file directly (for example: https://misite.com/wp-content/…/file.h5p).

    This way your plugin doesn’t capture any logs.

    Plugin Author otacke

    (@otacke)

    Hi jlop77!

    I am still not sure if I understand you correctly. How do you add an .h5p file to a post or page and let it run? That’s not a feature that H5P brings you to the best of my knowledge.

    I am using the mechanism to add custom code to H5P content that the H5P core team provides for this purpose. It is called “alter_scripts hook”.

    I think if GamiPress or some other plugin adds a custom way to run H5P content (from an H5P file), then that plugin should make sure to do it in a way that’s compatible with how H5P would instantiate content – or all other customizations (like my plugin) that rely on the alter_scripts hook (or other things that H5P would normally do) won’t work.

    Best,
    Oliver

    Thread Starter jlop77

    (@jlop77)

    Hi

    I do not precisely want to add h5p to a post or page, since I am going to use it in Google classroom and I do not want to add an additional step to the teacher.

    I’m going to use it as this user explains, only from my http://www.site.com and not from http://www.h5p.org

    Thread Starter jlop77

    (@jlop77)

    This URL is provisional, but I created it explaining my point. 👇.

    https://claxxi.com/wp-admin/admin-ajax.php?action=h5p_embed&id=2

    What achievement with this? What the teacher use existing H5P files on the website or even just have to create them and share their URL.

    Plugin Author otacke

    (@otacke)

    Hi jlop77!

    That’s not using an .h5p file, but using the H5P embed link.

    If you access H5P content this way, then your are bypassing WordPress. If you bypass WordPress, then the server side of the H5PxAPIkatchu plugin is not started, only the client side (in the browser). If the server side is not started, then the client side does not receive the plugin options and the client side does not know where to send the data to. That’s why this approach is not working.

    Sorry, I don’t have the free time currently to come up with a different way to handle this.

    Best,
    Oliver

    Thread Starter jlop77

    (@jlop77)

    That is why I put the example of gamipress, since using embed link, if it captures the records.

    I understand and thank you very much for your patience and answers.

    Plugin Author otacke

    (@otacke)

    Hi @jlop77!

    Feel free to try the latest update. You’ll have to activate that “embed supported” behavior in the settings though. I will not make this the default behavior.

    Best,
    Oliver

    Plugin Author otacke

    (@otacke)

    @jlop77 Have you already found time to check whether the latest version with the new setting suits your needs?

    Plugin Author otacke

    (@otacke)

    Hi @jlop77 !

    I’ll close this ticket now since you didn’t reply. Feel free to open a new one if you have further questions.

    Cheers,
    Oliver

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Register from url h5p’ is closed to new replies.