Page 1 of 1

Youtube bbcode problem

Posted: Fri Dec 09, 2016 8:07 pm
by catmando
Dal, can you take a look at the youtube shortcode as it appears to not work in some instances or needs to be made easier for people to use so that it does embed properly and display on any device

Cheers

Re: Youtube bbcode problem

Posted: Fri Dec 09, 2016 9:34 pm
by rpineau
you might need to have it force the html5 version of the video. instead of flash.

Re: Youtube bbcode problem

Posted: Wed Jul 26, 2017 10:34 am
by mfro
I think we discussed the youtube BBcode years ago during the last forum upgrade.
With many browsers disabling flash now for security reasons, this should probably be changed to HTML5 now.

IIRC, we had this BBcode definition:

Code: Select all

[youtube={TEXT}]{SIMPLETEXT}[/youtube]


For HTML5, the HTML replacement should now read:

Code: Select all

<b>{SIMPLETEXT}</b><p> <iframe width="640" height="360" src="https://www.youtube.com/embed/{TEXT}" frameborder="0" allowfullscreen></iframe>


I have this working fine in another phpbb forum.