Moodle H5P-plugin; Allow embed code from Moodle H5P-plugin content

jarvil's picture

Hello,

I Would like to see an feature where you could get embed code from Moodle H5P-activity so you could embed the content created in Moodle to other websites.

Summary: 
Allow embed code from Moodle
Issue Status: 
0
0
Supporter votes Members of the Supporter Network can vote for feature requests. When the supporter network has generated sufficient funding for the top voted feature request it will normally be implemented and released. More about the H5P Supporter Network
thomasmars's picture

Hi,
Putting it here is okay, or in the bug report forum.

I have tested this with Documentation Tool and embedding on the front page, and it works fine here.
Could you check your browser console and php error log for any errors ? Also are you embedding within Moodle or cross site ?

dgcruzing's picture

Tomas, 

Yes, its embedded into a Moodle lesson

It embeds fine.. but the file I uploaded shows the screen of when I go to Save file

You can PM in Moodle forums if you want and I can give you access to the site for a look.. 

https://moodle.org/user/view.php?id=2047963&course=5

have you tried to save file?

thomasmars's picture

Okay, I have sent a PM to your Moodle user.

Yes, great news. This really adds a whole new dimension for teachers and students. Thank you.

As some of the awesome content types are more resource items than graded activities, it would be great if there was a way to specifiy "no grade" and have those items excluded from the grade book.

Thanks again for this greatly appreciated development.

BV52's picture

Hi mgoodine,

That's a good idea. I suggest that you post a separate reqeust in the Feature Request forum for better visibility.

-BV52

I'm a little confused with where things are at with this. Can H5P be embedded into books, pages, etc in Moodle from the H5P plugin installed on my Moodle site.

I would appreciate if you could let me know.

Thanks

dgcruzing's picture

Ruth, 

yes, it can be put almost anywhere. 

Best advice is to google and do a little reading/youtube  on "HTML and using iframe codes in Moodle" & "iframe h5p into an activity on a moodle (page/course/book)"

https://www.youtube.com/watch?v=EKkKb_Fttkw

This will get you up to speed on the scope of what the codes actually do. 

Once you get the hang of it you will fall in love with it. 

Thanks for your prompt reply.

I have created a few test H5P content types on h5p.org, so know how to embed this into my Moodle courses into Books, Pages, etc.

I have just recently installed the H5P plugin on my Moodle site. I don't want to add H5P content as separate resources but want to embed it into Books, Pages, etc, directly within Moodle. My question is, has this functionality been enabled yet and if so, is there a button I need to add to the HTML editor toolbar. Or, is there another way? 

Thanks.

dgcruzing's picture

Morning Ruth, 

I am just a user like yourself, so my answers just come from within the community of other like-minded users. 

It seems if you are familiar with copying of the embedding code, then you are well on the way, which is great. 

As to an "Atto editor H5P button", the short answer is no. (but then again, it could be and I am just not aware of it)

At this stage it is a manual copy and past job of the code from your created content. 

 

There has been use of this type function before via another source. It was a hack of sorts. (but a very good one :-)..)

If you are familiar with Moodle Filters i.e Generio\Styles\Snippets then this is how we where able to have such a button.

but as the H5P team Incorporated this fantastic ability for us to embed in-house within moodle via their plugin, the old hack version is not needed. 

but.. 

(And understanding that to do this is not a little job, as there is Database call requirements to be considered.)

One of the helpful team here might be able to point you in the right direction to put this in to the "request" section..

Have a Happy H5P day!!!!

 

Hey DGCruzing

Thanks for your really helpful information. I did find the 'hack' solution but couldn't find anything else and was sure there would be some other way to do this so I appreciate you pointing me in the right direction. 

I'll see what I can find re the database and will share whatever I do find in case anyone else is trying resolve this issue too. I also hope that one of the 'helpful team' may be able to point me in the right direction :).

Happy H5P day to you too!

BV52's picture

Hi Ruth,

Currently the only way to use contents in Moodle pages is through the embed feature. I know this is a bit cumbersome since the process requires 2 steps (creating content and embedding). I think for now the best thing that I can suggest is create a feature request to expand the capability of the H5P plugin within Moodle.  In order for your feature request to attract as much interest as possible make sure it follows the below guidelines:

 

  1. It is clear from every perspective how the feature will work. We recommend describing the feature with one or more user stories, for instance “As an author I want it to be possible to pick between different effects for the check answer animation so that the learners will see a variety of effects and also I can adapt the effects to my target audience(I’ll be using pink unicorns which works really well for both my target audience which are 4 year old girls and venture capitalists)”

  2. If the feature can be illustrated with images or videos it always helps

  3. Make it clear what content types this is relevant for, and or if this is a new content type


Make sure you post the feature in the Feature Request forum.

-BV52

Thanks for your reply and the recommendation to submit a feature request. I'll do that asap and hopefully my request and others will generate some action on enabling this feature.

Thanks again.

dgcruzing's picture

Ruth, 

Just thought I would cross post this in case you miss it over at the Moodle forums. 

While it is about getting H5P working within the Moodle Mobile apps. The filter is doing what I think you are asking for. 

As in the teacher only has to input the H5P "ID" and no HTML code what so ever, so if a site admin has set this filter up in ATTO and may have HTML editing off, a teacher could still add H5P embedded content. 

https://moodle.org/mod/forum/discuss.php?d=365323#p1493091

 

Hi, 

The present system works so well in Moodle - if you can click on the <> icon to add text, you can add an h5p iframe. It can be 2 clicks or one. I make the h5p, get the embed code and then add it where it should be. I prefer that to a long list of h5ps to select, for example, which the (wonderful) hack had been using if I recall. Shortcode is useful, but the bigger your site gets, information in the iframe is useful too.

Hi, 

The present system works so well in Moodle - if you can click on the <> icon to add text, you can add an h5p iframe. It can be 2 clicks or one. I make the h5p, get the embed code and then add it where it should be. I prefer that to a long list of h5ps to select, for example, which the (wonderful) hack had been using if I recall. Shortcode is useful, but the bigger your site gets, information in the iframe is useful too.

BV52's picture

Thank you for the input Maude :-)

-BV52

Currently, I am making H5P on my WordPress site and copying the code to moodle. I would embed this directly into multiple quizzes as this would save so much time. 

BV52's picture

Hi Mark,

Emebedding is also available for the H5P plugin in Moodle. If you do not have it upgrading to the latest version should resolve this.

-BV

Hi BV

Thank you for your reply. I see that within H5P that the embed code can be turned on or off and or downloaded H5P. My wording was poor, what I was referring to was some sort of shortcode that would enable H5P content to be added to the quiz section in moodle.

If there was the ability to add shortcode within Moodle then a user could choose from 3 options:

  1. What content not to share (Turn off HTML code sharing)
  2. The shortcode would permit sharing within moodle only (Turn off HTML code sharing but using shortcode with the Moodle site)
  3. The HTML code would permit sharing externally to moodle with everyone (Turn on HTML sharing for everyone to share)

Hope this makes sense.

 

 

Hi BV

Thank you for your reply. I see that within H5P that the embed code can be turned on or off and or downloaded H5P. My wording was poor, what I was referring to was some sort of shortcode that would enable H5P content to be added to the quiz section in moodle.

If there was the ability to add shortcode within Moodle then a user could choose from 3 options:

  1. What content not to share (Turn off HTML code sharing)
  2. The shortcode would permit sharing within moodle only (Turn off HTML code sharing but using shortcode with the Moodle site)
  3. The HTML code would permit sharing externally to moodle with everyone (Turn on HTML sharing for everyone to share)

Hope this makes sense.

 

 

BV52's picture

Hi Mark,

Thank you elaborating and thank you for your suggestion.

-BV

Pages