Disable Use H5P Hub

Hi Good day.

I want to disable the use of H5P Hub, but I want the interface of the drop down text box of the editor is still have the same design or looks when you enable the H5P Hub.

I want to do this because I  want to control the version of each libraries.

BV52's picture

Hi lostinpond,

This is not possible not unless you make changes to the code.

-Bv52

Thank you for replying. I found the css script when it is enable. I just need to find where condition script is, when it is disabled it still should use that css. Do you know where I could find this?

P.S. Late reply because I left this problem and moved on to another problem.

icc's picture

Hi,

Which platform are you on; Drupal, WordPress or Moodle?

By changing the permissions you should be able to allow only your own user to control the content type versions and the rest of the users can still use the same interface to select content types.

Thank you for responding icc.

Hi good day,

I'm using Moodle 3.5

What if I want to disable the h5phub and the users can still use the same interface to select content types? Where can I find its code?
Thank you.

otacke's picture

Hi lostinpond!

If you disable the Hub, users will have a simple select field to choose from the content types. All our source code is on github, among them the code for the H5P Hub client.

Best,
Oliver

Hi Sir Oliver, Thank you for responding. :)

Yes, it looks simple for the users, they want the beautiful one when you enable the Hub.
I found where the script for that simple select field its under /hvp/editor/scripts/h5peditor-selector-legacy.js, this script is triggered when the Hub is disable. When the hub is enabled it will use /hvp/editor/scripts/h5peditor-selector-hub.js.

Now, is there condition script where when you disable the Hub it will still use the same script as the enabled does? if there is, where is it?

otacke's picture

Hi lostinpond!

Sorry, I thought you were looking for the Hub code, not the alternate code for the selector. Unfortunately, there's no such option, but you're welcome to create a feature request.

Best,
Oliver

Thank you for replying sir.
Hi the reason why I want to disable the hub is to be able to use it even there is no internet connection, because in some cases if there is no internet connection you can't use some libraries and it requires to update them to be able to use it. How can I do this?

BV52's picture

Hi lostinpond,

Please see my answer here.

-BV52