How to manually upload content type librairies on Moodle?

Hi,
I have installed hvp 1.4 plugin  on my MOODLE 3.0.6.
My Moodle app cannont access h5p hub because of network configuration.
Thus, I tick off the checkbox 'Use H5P Hub'n in MOODLE hvp setting page (https://moodle-dev.local/admin/settings.php?section=modsettinghvp).

I want to manually upload h5p libraries.
So, I go in the hvp librairies page (https://moodle-dev.local/mod/hvp/library_list.php).

I tried to upload the hvp library 'h5p-dialogcards' downloaded from github (https://github.com/h5p/h5p-dialogcards/archive/1.5.2.zip).
But  encoutered this issue:

File ".gitignore" not allowed. Only files with the following extensions are allowed: json png jpg jpeg gif bmp tif tiff svg eot ttf woff woff2 otf webm mp4 ogg mp3 wav txt pdf rtf doc docx xls xlsx ppt pptx odt ods odp xml csv diff patch swf md textile js css.
File "config" not allowed. Only files with the following extensions are allowed: json png jpg jpeg gif bmp tif tiff svg eot ttf woff woff2 otf webm mp4 ogg mp3 wav txt pdf rtf doc docx xls xlsx ppt pptx odt ods odp xml csv diff patch swf md textile js css.

Does anyone can explain how to manually upload hvp content type librairies on MOODLE?

greetings,

ben

BV52's picture

Hi,

There is a discussion here regarding your question.  As a summary you can download the example contents  and upload it into your H5P libraries. So that you don't have to download all the examples, I suggest that you download Course Presentation first because it has a lot of dependencies which will automatically bring with it other content types.

-BV52

Hi, those are May updates right? couldn't find anything specific to this issue there.. Or have I missed somethig?
Update: Found the discussion below. Going through them now..

Tried to upload example file of 'course presentation' as you suggested. No luck here. The same error. Checked by disabling the file extension check as well.. No luck here either. :(

Hi

I am facing the same issue. Have nstalled H5P 1.4 on Moodle 3.0. The H5P hub seems to throw a file validation error, 'Validating H5P package failed.' Similar error on trying to upload h5p file manually i.e. : ‘Could not validate H5P file’.

When trying to upload files from H5P Libraries, getting the same error ('Only files with certail extensions are allowed.....') as informed by Ben.

 

BV52's picture

Hi shija,

Can you try Ben's suggestion. If you are still experiencing an issue don't hesitate to post here.

-BV52

This is finally working whitout the h5p hub, using manual upload of the h5p librairies.

Here are the steps I follow:

 

That's it! The course presentation plugin install many plugin dependencies. H5P plugins are now available in a dropdown when creating an h5p activity in MOODLE.

I was trying to upload the source code that I found on github whereas it was the h5p file that was expected!

Greetings,

ben

BV52's picture

Hi Ben,

I'm glad you were able to figure this out and thank you very much for a very detailed explanation this will help the community a lot.

-BV52

You're welcome.

Maybe this could be useful to add detailed instructions for manually consuming H5P in MOODLE whithout the hub ?

Maybe here.

This would help new users (like me).

Greetings,

ben

icc's picture

Thanks for sharing. 
We hope to improve this in the future!