Developers

Technical forum about Content Type or System Plugin development.
Here you can apply for developer access.

Move h5p created in Learndash to new platform?

Forums: 

A previous developer created h5p content right in Learndash. We have now moved away from Learndash and are re-creating the course in a different LMS. We only see the shortcode generated by the Learndash h5p plugin. Is there a way to find the embed code within Learndash? Is it possible to move the h5p content created in Learndash to the new site? If so, any guidance you could provide would be much appreciated. 

Size and location of interactive elements in content.json

Forums: 

Hi!

I am trying to figure out how H5P specifies the x, y, width, and height of interactive elements.

How would I write a function that takes the actual size of an image to get the width and height values specified in the content.json file?

How would I translate the x, y values that are visible in the H5P editor (for instance, 10, 360) into the x and y values specified in the content.json file?

I have looked at the content.json file, and for an image that is 1920x1080 and stretched out to cover the entire screen, I get the following:

x: 0

y:0

H5pMod on live server

Forums: 

Hi,

I worked on a H5Pmod theme on a local moodle and it worked very well. I'm now trying to put it on a test server similar to the one used in production. After adding the theme I went in the theme selector but I get the following error: Fatal error: Cannot redeclare class theme_h5pmod_mod_hvp_renderer in /var/www/timeline/theme/h5pmod/renderers.php on line 0

I didn't change much in the renderers and it was fine on the local moodle. I put the code in copy

Pages