• Sign up or login, and you'll have full access to opportunities of forum.

Any Reason I Can't Open Any Youtube???

Go to CruxDreams.com
I'm a little surprised that the site is pumping out old code,
I think it's Xenforo's fault.

The most direct way is just to get the recommended embed code off of youtube by right-click. That's got to be their up-to-date standard. It looks like this:
HTML:
<iframe width="500" height="300" src="https://www.youtube.com/embed/WuJE40OBt48" frameborder="0" allowfullscreen></iframe>
while the forum will spit out all that <object, <embed code as you revealed.

when I throw the raw code of both versions onto a featureless sample page, https://jsfiddle.net/o5powhhy/, Firefox will still turn the Flash object code into an HTML player, - both versions will play - so that must be a built-in script...?
Running that sample page from the desktop (it won't load Flash when run from within jsfiddle) I can reproduce the exact behaviour on the forum, I get Madiosi's screenshot result for IE and Chrome with the object code, automagically displayed HTML 5 player for Firefox with the object code, but - perfect HTML5 video for all browsers with the iframe code.

So this forum installation simply seems to be producing outdated code. It should be outputting the iframe code and then there wouldn't be any trouble with any major browser.

It might be worth checking whether video embed codes are produced by some kind of plugin or extension to the core system, such a plugin might need a separate update - or if the embed code is generated using editable templates for the code snippets, which might be easily fixed.
 
I think it's Xenforo's fault.

The most direct way is just to get the recommended embed code off of youtube by right-click. That's got to be their up-to-date standard. It looks like this:
HTML:
<iframe width="500" height="300" src="https://www.youtube.com/embed/WuJE40OBt48" frameborder="0" allowfullscreen></iframe>
while the forum will spit out all that <object, <embed code as you revealed.

when I throw the raw code of both versions onto a featureless sample page, https://jsfiddle.net/o5powhhy/, Firefox will still turn the Flash object code into an HTML player, - both versions will play - so that must be a built-in script...?
Running that sample page from the desktop (it won't load Flash when run from within jsfiddle) I can reproduce the exact behaviour on the forum, I get Madiosi's screenshot result for IE and Chrome with the object code, automagically displayed HTML 5 player for Firefox with the object code, but - perfect HTML5 video for all browsers with the iframe code.

So this forum installation simply seems to be producing outdated code. It should be outputting the iframe code and then there wouldn't be any trouble with any major browser.

It might be worth checking whether video embed codes are produced by some kind of plugin or extension to the core system, such a plugin might need a separate update - or if the embed code is generated using editable templates for the code snippets, which might be easily fixed.
She sounds like she knows what she is talking about... if I knew what it was...
jurist prelude.jpg

Tree
 
I think it's Xenforo's fault.

The most direct way is just to get the recommended embed code off of youtube by right-click. That's got to be their up-to-date standard. It looks like this:
HTML:
<iframe width="500" height="300" src="https://www.youtube.com/embed/WuJE40OBt48" frameborder="0" allowfullscreen></iframe>
while the forum will spit out all that <object, <embed code as you revealed.

when I throw the raw code of both versions onto a featureless sample page, https://jsfiddle.net/o5powhhy/, Firefox will still turn the Flash object code into an HTML player, - both versions will play - so that must be a built-in script...?
Running that sample page from the desktop (it won't load Flash when run from within jsfiddle) I can reproduce the exact behaviour on the forum, I get Madiosi's screenshot result for IE and Chrome with the object code, automagically displayed HTML 5 player for Firefox with the object code, but - perfect HTML5 video for all browsers with the iframe code.

So this forum installation simply seems to be producing outdated code. It should be outputting the iframe code and then there wouldn't be any trouble with any major browser.

It might be worth checking whether video embed codes are produced by some kind of plugin or extension to the core system, such a plugin might need a separate update - or if the embed code is generated using editable templates for the code snippets, which might be easily fixed.

That's a very impressive (and conclusive) test you've put up there!
:clapping:

At least now we know what the cause of the problem is. Whether anything gets done about it in the near future remains to be seen. Seems that Firefox is still the most awesome browser on the planet since it can process the old code and yet still manage to display the video correctly, whereas Chrome, IE and others are apparently unable to do so.

My enormous thanks and admiration to you Malins for finally working out the cause of this problem. I guess we'll just have to wait for someone to fix it now...

Perhaps this issue now needs to be escalated up to the site admins, although to be fair they're as much at the mercy of the Xenforo code base as the rest of us...

Of course if Google hadn't messed around with their API then none of this would have happened. I can't help wondering how many other forums out there have been affected by this change...

For anyone interested in the code, here's Google's developer info page on the subject;
https://developers.google.com/youtube/iframe_api_reference
 
Last edited:
I guess we'll just have to wait for someone to fix it now...
Perhaps this issue now needs to be escalated up to the site admins, although to be fair they're as much at the mercy of the Xenforo code base as the rest of us...

This might in fact be quite simple.

There's an instruction here how to add support for a new type of video embeds,
https://xenforo.com/community/threads/bbcode-iframe.84897/#post-840782

...it's basically just defining a simple regex...
...changing an existing one can't be so different...

...so, go to Admin CP > Home > BB Code Media Sites

Screenshot 2016-08-17 12.18.54.png
[demo installation]

The field labelled Embed HTML should be checked whether it contains the outdated object code, then it ought to be updated. Probably some kind of post cache will need to be flushed.

In fact, on xenforo.com > Help I found this, https://xenforo.com/help/bb-code-media-sites/

xenforo said:
In most cases, the code can be edited to suit; for example the width and height values can be changed, along with the various other parameters. You will need to check the site in question to see what options there are.

The default YouTube entry uses the iframe code like so:
...
You could however use the object version in its place...
...
So it really looks like it's just a setting in the Admin CP and that's it.
 
Should I PM IM and refer him to this thread?
Sounds like a good plan - It's possible that IM is too busy actually running the site to be reading all these posts :)
 
Anyway, the defaults given are,

Match URLs:
Code:
youtube.com/watch?v={$id}
youtube.com/watch?*&v={$id}
youtube.com/v/{$id}
youtu.be/{$id}
youtube.com/*/u/*/{$id}
youtube.com/embed/{$id}
Embed HTML:
HTML:
<iframe width="500" height="300" src="https://www.youtube.com/embed/{$id}?wmode=opaque" frameborder="0" allowfullscreen></iframe>
 
YouTube videos now working for me.

Anyone done anything? if so thank you very much all, brilliant girly-chat blew away some pre-conceived gender ideas.
 
Seems that the issue has now been put right. Kudos to whoever it was that actually fixed it.
 
So they do :D

In truth, I don't think anyone here did anything, unless IM has been operating incognito, I think he's still away on holiday,
so maybe it was a XenForo hitch (as you and Malins seemed to be homing in on), and they've put it right.
 
Back
Top Bottom