Youtube bbcode problem

News, updates, like or dislike

Moderators: Mug UK, Silver Surfer, Moderator Team

Post Reply
User avatar
catmando
Atari God
Atari God
Posts: 1023
Joined: Tue Jan 24, 2006 9:56 pm
Location: London, UK

Youtube bbcode problem

Post 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
Atari Falcon Tos 4.04 | 14mb | IDE CF 2GB
Atari STE Tos 1.62 | 4mb | HxC Slim SD 8GB
Atari STE Tos 1.62/2.06 | 4mb | Floppy A-B Mod | IDE SD 4GB
Atari STFM
Android Devices (Running Hataroid and SToid)

Atari Forum Wiki - Use it before asking
rpineau
Atari Super Hero
Atari Super Hero
Posts: 514
Joined: Wed Jun 29, 2011 6:39 am
Location: California / USA
Contact:

Re: Youtube bbcode problem

Post by rpineau »

you might need to have it force the html5 version of the video. instead of flash.
Falcon + AB040 + Eclipse PCI + ATI Rage VGA card + NE2000 Ethernec + HxC Floppy Emulator
MegaSTE 4MB + CosmosEx / 1040 STF for hardware dev
http://www.rti-zone.org/atari.php
User avatar
mfro
Atari Super Hero
Atari Super Hero
Posts: 961
Joined: Thu Aug 02, 2012 10:33 am
Location: SW Germany

Re: Youtube bbcode problem

Post 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.
BlankVector
Atari Super Hero
Atari Super Hero
Posts: 540
Joined: Wed Oct 24, 2007 7:52 pm
Location: France
Contact:

Re: Youtube bbcode problem

Post by BlankVector »

It seems that the old [youtube=] syntax is now obsolete.

Would it be possible to try that official extension instead?
phpBB Media Embed PlugIn

Any other solution to embed YouTube videos here would also be welcome.
Subscribe to my Vretrocomputing channel on YouTube and Facebook. Latest video: Manipulate 16-pixel groups in assembly language.
User avatar
607
Captain Atari
Captain Atari
Posts: 209
Joined: Tue Aug 16, 2016 3:20 pm
Location: Amersfoort, the Netherlands
Contact:

Re: Youtube bbcode problem

Post by 607 »

I'm pretty sure mfro's fix works just fine. On my own forum I have an origin tag too, but I'm not sure that that's required. Maybe not, as I realised yesterday that I used to have it pointing to another website of mine, somehow. xD
Post Reply

Return to “Website Discussions”