Can I remove Interactive Video from download options from H5P hub
Submitted by Christine Merrifield on Mon, 06/07/2021 - 17:33
Hi
We are having issues with Interactive video while trying to add a video using Macs and some browsers, the add video form does not display. Until we can identify the issue consistantly we want to prevent our WordPress 5.7.2 users from downloading the Interactive Video library. H5P version 1.15.2
Can this be done?
Regards
Christine
Content types:
BV52
Tue, 06/08/2021 - 18:46
Permalink
Hi Christine,If you meant to
Hi Christine,
If you meant to disable Interactive Video so that authors cannot create them, you can go to H5P content -> Libraries then place a check on "Restricted" for Interactive Video and Interactive Video editor.
-BV
Christine Merrifield
Tue, 06/08/2021 - 21:01
Permalink
Hi thanks for the update, I
Hi thanks for the update, I really appreciated the response.
We manage an extremely large multi site so updating each blog is not possible. Is there any way of 'removing' the Interactive Video programatically across the multi site please?
Regards
Christine
otacke
Tue, 06/08/2021 - 21:19
Permalink
Hi Christine!All that
Hi Christine!
All that checking the "restricted" checkbox does is set a flag in the "<prefix>_h5p_libraries" table of the database. So, a query that runs over all the <prefix>_h5p_libraries" tables and sets the value in the "restricted" column to 1 if the "name" column matches "H5P.InteractiveVideo" should do the job.
Cheers,
Oliver
Christine Merrifield
Tue, 06/08/2021 - 21:05
Permalink
Is there an another option for a large multisite?
Hi thanks for your response it is very much appreciated.
We have a very large multisite so updating each blog is currently not practicle. Is there a way of not displaying the Interactive video programatically please?
Regards
Christine
Christine Merrifield
Fri, 07/02/2021 - 16:48
Permalink
Thanks for recommending restricted
I have tried marking Interactive Video as restricted and I can still add a video and add it to a post so this does not appear to be working for me, I had downloaded the Interactive Video content type first and then marked it as restricted.
I also tried adding a database record to restrict the Interactive Video but this didn't affect the ability to view Interactive Video in the content types available in the hub.
Is there any way to prevent Interactive Video displaying in the list that is on the Hub? Then no one can click on it and download it.
Thanks for your help
Regards
Christine
BV52
Fri, 07/02/2021 - 18:32
Permalink
Hi Christine,Have you tried
Hi Christine,
Have you tried checking the list while logged in as a non-administrator? Administrator accounts will always see all the content types.
-BV
Christine Merrifield
Mon, 07/05/2021 - 10:58
Permalink
Logging in as an editor
Thanks for the clarification, I do see a restricted list of content types by logging in as an editor.
Unfortunately this does not solve the our problem as the administrator should not be able to add Interactive Video.
Thank you
Christine
BV52
Mon, 07/05/2021 - 18:37
Permalink
Hi Christine,I'm afraid this
Hi Christine,
I'm afraid this is not possible within the settings of H5P. This can only be done by changing/adding codes into the plugin.
-BV
Christine Merrifield
Tue, 07/06/2021 - 09:21
Permalink
Thank you for your help.
Thank you for your help.