MyBB Community Forums

Full Version: Default video embeder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Can anybody tell me how to fix the default video embeder in post toolbar as shown in photo?

Photo 1 of post toolbar:
[attachment=44428]
Photo 2 of videos not loaded:
[attachment=44427]

Because when i paste the link of a video on youtube the video is not loaded at all its like blank(invisible).Note my site already forced https://,settings on mybb already https://,videos of youtube all are https://.If i use a random plugin to load videos everything is fine,but i want mybb default embeder to be working at toolbar as shown in photo 1.
The default functionality embed YouTube videos with a URL of //www.youtube-nocookie.com, the // at the start means it'll match the protocol of the forum, but also embeds them on a different domain. If yours isn't doing this, either the videos weren't embedded with [video=youtube], maybe just [video] on its own, or a plugin is interfering.
(2021-09-27, 01:38 PM)Matt Wrote: [ -> ]The default functionality embed YouTube videos with a URL of //www.youtube-nocookie.com, the // at the start means it'll match the protocol of the forum, but also embeds them on a different domain. If yours isn't doing this, either the videos weren't embedded with [video=youtube], maybe just [video] on its own, or a plugin is interfering.

What happens is this picture can explain better than me:
1)[attachment=44431]
2)[attachment=44430]
I know, so what I'm saying is it's that that's not the default behaviour, so there is something custom on your forum. It shouldn't be specifying http:// or https:// at all, it should just be //, so yours is doing something non-standard.

Can you post the exact MyCode that's in that post to embed the video?
(2021-09-27, 02:05 PM)Matt Wrote: [ -> ]I know, so what I'm saying is it's that that's not the default behaviour, so there is something custom on your forum. It shouldn't be specifying http:// or https:// at all, it should just be //, so yours is doing something non-standard.

Can you post the exact MyCode that's in that post to embed the video?

See the photos yes:

1)[attachment=44433]

2)[attachment=44432]

I dont understand i didnt add anything only changed http:// to https://.I think something shall be modified for this to read correctly the values.
Okay, what is in the video_youtube_embed template for your theme? Make sure you look at the template set for your theme and not the default templates. It should contain the below HTML, but I think yours might have something else:

<iframe width="560" height="315" src="//www.youtube-nocookie.com/embed/{$id}" frameborder="0" allowfullscreen="true"></iframe>
Impressive!
GodLike!
Marked!
Rated!

That was it.Thanks buddy,this will be marked as solved.