Improvements to embedded video links - including youtube

Forum News, Announcements and any issues you're having with the forum

Moderator: myglaren

Post Reply
User avatar
xantia_v6
Forum Admin Team
Posts: 9052
Joined: 09 Nov 2005, 22:03
Location: France or NewZealand
Lexia Available: Yes
My Cars: -
1997 Citroen Xantia V6 (France)
1999 Citroen XM V6 ES9 (France)
2011 Peugeot 308 CC THP 155 (NZ)
1975 Jaguar XJ-S pre-HE (NZ)
x 825

Improvements to embedded video links - including youtube

Post by xantia_v6 »

I have installed a new extension on the forum which changes the facility for embedding video links in posts.

The old [youtube] tags are gone, there are now new [media] tags available, but most of the time you won't need them, as just dropping the url of a video into the post should create the thumbnail.

e.g. puttng

Code: Select all

https://www.youtube.com/watch?v=kAG39jKi0lI
into a post (with no tags) produces:


Even better, it works with most other video and media hosting sites, including:

ABC News
Allocine
Amazon Product
Anchor
Audioboom
Audiomack
Bandcamp
BBC News
BitChute
Bleacher Report videos
Break
Brightcove
CBS News Video
Clyp
CNBC
CNN
CNNMoney
CodePen
CollegeHumor
Comedy Central
Coub
Dailymotion
Democracy Now!
Dotsub
dumpert
eBaum's World 8tracks
ESPN
Facebook
Flickr
Fox News
FOX Sports
Funny or Die
Gamespot
GameTrailers
Getty Images
Gfycat
Gifs.com
GitHub Gist
Global News
GoFundMe
Google Drive
Google+
Google Sheets
Hudl
Hulu
IGN
IMDb
Imgur
Indiegogo
Instagram
Internet Archive
İzlesene
JW Platform
Kontinental
Hockey League (КХЛ)
Kickstarter
Libsyn
Liveleak
Livestream
Mail.Ru
Medium
Megaphone
Metacafe
Mixcloud
Mixer
MLB
Mod DB
MRCTV
MSNBC
National Geographic Channel
National Geographic Video
NBC News
NBC Sports
NHL Videos and Highlights
NPR
The New York Times Video
Odnoklassniki
Orfium
Pastebin
Pinterest
Podbean
Prezi
Reddit threads and comments
Rutube
SchoolTube
Scribd
Sendvid
SlideShare
snotr
SoundCloud
Sporcle
Sportsnet
Spotify
Spreaker
Steam store
Stitcher
Straw Poll
Streamable
Streamja
Team Coco
TED Talks
Telegram
The Atlantic Video
The Guardian (obsolete)
The Onion
TikTok
TMZ
Trailer Addict
Trending Views
Tumblr
247Sports
Twitch
Twitter
Ustream
VBOX7
Veoh
Vevo
Video Detective
VideoPress
Vimeo
Vine
VK
Vocaroo
Vox
Washington Post Video
WorldStarHipHop
The Wall Street Journal Online
XboxClips Gamer DVR
Youku
YouTube
User avatar
myglaren
Forum Admin Team
Posts: 25360
Joined: 02 Mar 2008, 13:30
Location: Washington
My Cars: Mazda 6
Ooops.
Previously:
2009 Honda Civic :(
C5, C5, Xantia, BX, GS, Visa.
R4, R11TXE, R14, R30TX
x 4888

Re: Improvements to embedded video links - including youtube

Post by myglaren »

Excellent stuff Mike.
Is that why the facebook (or possibly twitter) link I posted last night embedded itself? I expected it to remain as a link.
User avatar
xantia_v6
Forum Admin Team
Posts: 9052
Joined: 09 Nov 2005, 22:03
Location: France or NewZealand
Lexia Available: Yes
My Cars: -
1997 Citroen Xantia V6 (France)
1999 Citroen XM V6 ES9 (France)
2011 Peugeot 308 CC THP 155 (NZ)
1975 Jaguar XJ-S pre-HE (NZ)
x 825

Re: Improvements to embedded video links - including youtube

Post by xantia_v6 »

myglaren wrote: 05 Apr 2020, 08:49 Excellent stuff Mike.
Is that why the facebook (or possibly twitter) link I posted last night embedded itself? I expected it to remain as a link.
Yes, all sorts of embedded items are popping up in old posts if you look for them.

It was actually quite a trial getting this to work. The extension writer (and the person who wrote the renderer that it is based on) assumed that it would be installed on new forums, and provided no means of backward compatibility with the old [youtube] tags. It took a day to determine that there was no esasy way around it, and then another day to write and test a brute-force database query to rewrite the (4500) existing [youtube] tags to the new format.
User avatar
myglaren
Forum Admin Team
Posts: 25360
Joined: 02 Mar 2008, 13:30
Location: Washington
My Cars: Mazda 6
Ooops.
Previously:
2009 Honda Civic :(
C5, C5, Xantia, BX, GS, Visa.
R4, R11TXE, R14, R30TX
x 4888

Re: Improvements to embedded video links - including youtube

Post by myglaren »

Excellent work. And I couldn't even manage to shift a few posts yesterday :(
Gibbo2286
(Donor 2020)
Posts: 7168
Joined: 08 Jun 2011, 18:04
Location: GL15***
My Cars: 2006 C5 2.0 Litre HDI VTR Automatic Estate.(now sold on)
Currently Renault Zoe 2014 ZE
x 2500

Re: Improvements to embedded video links - including youtube

Post by Gibbo2286 »

myglaren wrote: 05 Apr 2020, 08:59 Excellent work. And I couldn't even manage to shift a few posts yesterday :(

I shifted a few last week, see my new fence. :)
Man is, by nature, a lazy beast, he does not need twice encouraging to do nothing.
User avatar
Paul-R
Donor 2023
Posts: 6916
Joined: 07 May 2009, 16:24
Location: Wirral, NW England; Vaucluse 84, France
Lexia Available: Yes
My Cars: 2015 1.6 Blue HDi 120 Peugeot 308 Active SW
2013 2.0 HDi 163 C5 Exclusive Tourer
2003 2.0 HDi 110 C5 Exclusive Estate (Gone)
2001 2.0 HDi 90 Xsara Estate (Gone)
x 1369

Re: Improvements to embedded video links - including youtube

Post by Paul-R »

Excellent job. What are going to do with all your free time now?
As I get older I think a lot about the hereafter - I go into a room and then wonder what I'm here after.

Inside every old person is a young person wondering what the hell happened.

"Trying is the first step towards failure" ~ Homer J Simpson​
User avatar
myglaren
Forum Admin Team
Posts: 25360
Joined: 02 Mar 2008, 13:30
Location: Washington
My Cars: Mazda 6
Ooops.
Previously:
2009 Honda Civic :(
C5, C5, Xantia, BX, GS, Visa.
R4, R11TXE, R14, R30TX
x 4888

Re: Improvements to embedded video links - including youtube

Post by myglaren »







:(

May be a YouTube problem as they flash up briefly - using Firefox sourced link but posting in Chromium. YouTube crashing in Chromium.
User avatar
white exec
Moderating Team
Posts: 7445
Joined: 21 Dec 2015, 12:46
Location: Sayalonga, Malaga, Spain
My Cars: 1996 XM 2.5TD Exclusive hatch RHD
1992 BX19D Millesime hatch LHD
previously 1989 BX19RD, 1998 ZX 1.9D auto, 2001 Xantia 1.8i auto
and lots of Rovers before that: 1935 Ten, 1947 Sixteen, 1960 P5 3-litre, 1966 P6 2000, 1972 P6 2000TC, and 1975 P6B 3500S
x 1752

Re: Improvements to embedded video links - including youtube

Post by white exec »

Glad to say now working ok, either as a simple paste-in of the URL, or using the new media tab.
Thanks for getting this sorted.

Chris
User avatar
xantia_v6
Forum Admin Team
Posts: 9052
Joined: 09 Nov 2005, 22:03
Location: France or NewZealand
Lexia Available: Yes
My Cars: -
1997 Citroen Xantia V6 (France)
1999 Citroen XM V6 ES9 (France)
2011 Peugeot 308 CC THP 155 (NZ)
1975 Jaguar XJ-S pre-HE (NZ)
x 825

Re: Improvements to embedded video links - including youtube

Post by xantia_v6 »

I have deleted a bunch of posts above, related to the earlier forum configuration problem, as they could be confusing to future readers.
User avatar
myglaren
Forum Admin Team
Posts: 25360
Joined: 02 Mar 2008, 13:30
Location: Washington
My Cars: Mazda 6
Ooops.
Previously:
2009 Honda Civic :(
C5, C5, Xantia, BX, GS, Visa.
R4, R11TXE, R14, R30TX
x 4888

Re: Improvements to embedded video links - including youtube

Post by myglaren »

OK in Firefox, broken in Chromium.

OK, fixed - it was my copy of Chromium that was broken.
User avatar
Zelandeth
Donor 2024
Posts: 4731
Joined: 16 Nov 2014, 23:36
Location: Milton Keynes
My Cars: 2006 Peugeot Partner Escapade 1.6HDi.
1988 Renault 25 Monaco 2.0i.
1985 Sinclair C5.
1984 Trabant 601S.
1975 Rover 3500.
1973 AC Model-70.
x 1403
Contact:

Re: Improvements to embedded video links - including youtube

Post by Zelandeth »

Ah ha... that's why I've just spent half an hour trying to get a video embedded.

Not sure if I'm doing something wrong, but I've been unable to get it to work...just pasting the link simply results in a post with a link in...and attempting to put media tags gets me an error saying that I can't use those tags.

I find it increasingly surprising that in the days of Windows 95/98 where I was able to run a whole network of computers for an educational establishment with one hand tied behind my back, yet keep getting utterly stuck with things like this these days...
Current fleet:
06 Peugeot Partner Escapade 1.6HDi, 88 Renault 25 Monaco, 85 Sinclair C5, 84 Trabant 601S, 75 Rover 3500, 73 AC Model 70.
User avatar
xantia_v6
Forum Admin Team
Posts: 9052
Joined: 09 Nov 2005, 22:03
Location: France or NewZealand
Lexia Available: Yes
My Cars: -
1997 Citroen Xantia V6 (France)
1999 Citroen XM V6 ES9 (France)
2011 Peugeot 308 CC THP 155 (NZ)
1975 Jaguar XJ-S pre-HE (NZ)
x 825

Re: Improvements to embedded video links - including youtube

Post by xantia_v6 »

You were using a youtu.be shortcut which (surprisingly was not supported by the phpBB extension. I have now added support for it.
User avatar
myglaren
Forum Admin Team
Posts: 25360
Joined: 02 Mar 2008, 13:30
Location: Washington
My Cars: Mazda 6
Ooops.
Previously:
2009 Honda Civic :(
C5, C5, Xantia, BX, GS, Visa.
R4, R11TXE, R14, R30TX
x 4888

Re: Improvements to embedded video links - including youtube

Post by myglaren »

That seems iffy still Mike. Unless it is my connection.
Post Reply