Topic: Video within modals in humhub

ArtUnion free asked 2 years ago

Expected behavior I integrated "Video within modals" to my website based on Humhub. Video is displayed in a window, but it is not played and no way to close it Actual behavior

Resources (screenshots, code snippets etc.)

you can check here

Michał Duszak staff answered 2 years ago

It looks like your modal gets too little z-index. Try to use this CSS

.modal {
    z-index: 1055 !important;

Adam Jakubowski staff answered 2 years ago

Hello @ArtUnion,

I've reached out to you via the email address assigned to your mdbootstrap account.

Keep coding,

Michał Duszak staff answered 2 years ago

In the console I see an error that says Refused to load the font '<URL>' because it violates the following Content Security Policy directive: "font-src 'self'". And in details it prevents at least four font-awesome related resources from loading into the project.

Here's an MDN reference:

ArtUnion free commented 2 years ago

sorry Michal

May I ask you an example to add to my test.PHP for CSP pls many thanks in advance

ArtUnion free answered 2 years ago

it works well now I integrated you examle here.

but if I lauch it via humhub, it doens't work

could you help pls regards

Michał Duszak staff commented 2 years ago

Modal works fine when i launch it on

Could you please tell me exactly where this problem occurs?

ArtUnion free commented 2 years ago

Pls see my screen shootpls see error:

this is happend on

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Free
  • Premium support: No
  • Technology: MDB Standard
  • MDB Version: MDB5 3.10.2
  • Device: window
  • Browser: chrome
  • OS: window
  • Provided sample code: No
  • Provided link: Yes