MyBB Community Forums

Full Version: YouTube does not embed on https version of website.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I seem to be having an issue my users keep reporting and I havent been able to find a fix. I am not extremely code savvy so thats probably most of the issue here but when trying to post YouTube videos in threads the video doesnt show up unless you are using the http version of the website. Anyone using https can not see the videos. Not sure how to go about fixing this. Any help would be greatly appreciated. 

Thanks

Screenshots:
[Image: https.jpg][Image: http.jpg]
It looks like the theme is outdated - try changing the video_youtube_embed template (Video MyCode Templates in the Admin CP's Templates & Style → Templates for your theme) to:
<iframe width="560" height="315" src="//www.youtube.com/embed/{$id}" frameborder="0" allowfullscreen></iframe>

Note that outdated themes may cause other problems.
(2021-03-20, 04:39 PM)Devilshakerz Wrote: [ -> ]It looks like the theme is outdated - try changing the video_youtube_embed template (Video MyCode Templates in the Admin CP's Templates & Style → Templates for your theme) to:
<iframe width="560" height="315" src="//www.youtube.com/embed/{$id}" frameborder="0" allowfullscreen></iframe>

Note that outdated themes may cause other problems.

Tried that nothing changed Sad
That theme is the one it installed with. I just changed the colors. I have been trying to figure out how to change it with no luck.
Can we have the URL to the page? The issue will be that YouTube is being loaded over http:// which won't work when the forum is on https://
(2021-03-21, 07:40 PM)Matt Wrote: [ -> ]Can we have the URL to the page? The issue will be that YouTube is being loaded over http:// which won't work when the forum is on https://
 I sorted it I just updated to the latest version. The installer on my servers control panel was still 1.6