• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 YouTube embedding video has stopped working

#1
YouTube video no longer seems to be working. I tried it on four different clips. All that is displayed now is a black box with a Y in the right corner. When I mouse over it, it says "Watch it on YouTube".

Did YouTube change their policy about this? Did I miss an update that is required? I am running 1.56.

Thanks!
 

Jake Bunce

XenForo moderator
Staff member
#4
I mean post the URL of the thread on your forum which contains the videos. If it's broken only on your forum then we might be able to see why if you can post the URL.
 
#5
OK ... here is a link to a thread.

<Removed - linking to sites of this nature is against the site rules>

(Note - there may be adult ads that display on this thread)
 

Brogan

XenForo moderator
Staff member
#7
I removed the link from your post as linking to sites of that nature is against the rules.

Having had a quick look, I suspect it's some sort of JavaScript conflict as you are running custom ads, etc.

Reverting to a default style with no custom JS or ads will confirm that.
 
#8
I have not changed anything on the forum recently. The ads have been running for years with no conflicts with YouTube in the past. They are running via a well known add-on. I don't really mess with the styles much. A couple of days ago it worked fine.
 

Brogan

XenForo moderator
Staff member
#9
As it works on the other forum on the same server, it's going to be either a style or add-on issue.

The first step with troubleshooting issues of this nature is to rule out third party code by reverting to a default style and disabling add-ons.
 
#10
I temporarily turned off the banner add-on program as you suggested. Still don't work.

I tried a different browser and determined that the YouTube videos still work on Firefox fine. The problem is only showing up on Chrome, IE and Edge.
 

Mike

XenForo developer
Staff member
#11
Your embeds appear to be using older or non-standard embed code. The default YT embed code is:
Code:
<iframe width="500" height="300" src="https://www.youtube.com/embed/{$id}?wmode=opaque" frameborder="0" allowfullscreen></iframe>
I suspect that's the problem.
 
#13
Your embeds appear to be using older or non-standard embed code. The default YT embed code is:
Code:
<iframe width="500" height="300" src="https://www.youtube.com/embed/{$id}?wmode=opaque" frameborder="0" allowfullscreen></iframe>
I suspect that's the problem.
That was the problem. Thanks very much Mike! Also thanks Brogan.

I don't know why I had an old or non-standard one. I suspect it from an old support post or add-on that automatically added media BB codes. Perhaps these do not get updated when new upgrades are installed? I might have other old embed codes.