Embedded YouTube videos not resizing to fit window

ben
Embedded YouTube videos not resizing to fit window
ben@d7ab5755 Monday 17th July 2023, 00:38:18

I was happy to see that embedding YouTube videos work great by using the following tags in a forum post

Minus the *
[*youtube]KF0gsbQKhD8[/youtube]


But on my forum and on this forum also, the video overflows the page and won't resize properly when viewing the post both on the blog or from a forum post when viewing it from a mobile device. It looks fine from a desktop PC though.

Not sure where to look to fix this, is the file that controls this part of the bootstrap template CSS or a PHP file?

Here's an example:

Last modified by ben@d7ab5755 on Monday 17th July 2023, 00:41:00

Replies 3
Tillreetree
Tillreetree@fc7e1f5a  Monday 17th July 2023, 01:41:39

file location:
lib/BBcode.lib.php


search:
iframe width="560" height="315"


replace with:
iframe style="width: 100%;height: 500px;"


example::
<iframe style="width: 100%;height: 500px;" src="//www.youtube.com/embed/' .$match[1]. '" frameborder="0" allowfullscreen></iframe>

Ben
Ben@e45e27cd  Monday 17th July 2023, 04:27:38

Perfect, thank you that's exactly what I was looking for.

Tillreetree
Tillreetree@fc7e1f5a  Monday 17th July 2023, 09:48:18

  You're welcome

Last modified by Tillreetree@fc7e1f5a on Monday 17th July 2023, 09:48:00

Suggested Topics
SurveyBuilder-Admin
SurveyBuilder-Admin started plugin Favorite Post Plugin
Resources
22K 10
SurveyBuilder-Admin
13.3K 0
20.7K 9
Want to read more? Browse all categories or view latest topics.