Rate the 2019 Australian GP! viewtopic.php?f=17&t=15942

YouTube BBCode Updated

Announcements of any new features or alternations to the forum will be posted here. This is the place to submit any problems you have or suggestions on how to improve the forum.
User avatar
PTRACER
Forum Administrator
Forum Administrator
Posts: 35848
Joined: 15 years ago
Real Name: Paul
Favourite Motorsport: Formula 1
Favourite Racing Car: Lotus 49
Favourite Driver: Gilles Villeneuve, James Hunt
Favourite Circuit: Nordschleife
Location: U.K.
Contact:

YouTube BBCode Updated

Post by PTRACER » 4 years ago

The YouTube tag has now been updated and I have altered nearly 10,000 posts to reflect the changes (well the computer did it itself). The full URL is no longer required when you post a YouTube video. The annoyance is finally over!

Example:

[youtube]FOP9-d7wZLE[/youtube]

I have also removed the HQ YouTube tag which hasn't worked for some time.
Racing is living and everything that happens in between is just waiting.

User avatar
Cheeveer
Ultimate Member
Ultimate Member
Posts: 11290
Joined: 13 years ago
Location: 24 hours from Le Mans

Post by Cheeveer » 4 years ago

Very good. Thanks.
***Some say you should live each day like it was your last... but who wants to live each day in wild panic and extreme death anxiety?

The universe, look at the hugeness of it... it is a dizzying thought that little ol' me is the centre of it all!***

User avatar
ReneLotus
Advanced Member
Advanced Member
Posts: 2373
Joined: 12 years ago
Location: the Netherlands

Post by ReneLotus » 4 years ago

It wasn't that annoying to me, but thanks for the update :-)

User avatar
PTRACER
Forum Administrator
Forum Administrator
Posts: 35848
Joined: 15 years ago
Real Name: Paul
Favourite Motorsport: Formula 1
Favourite Racing Car: Lotus 49
Favourite Driver: Gilles Villeneuve, James Hunt
Favourite Circuit: Nordschleife
Location: U.K.
Contact:

Post by PTRACER » 4 years ago

No worries! By the way, I can't go full screen with the new code on my PC using Firefox, anyone else have this issue?
Racing is living and everything that happens in between is just waiting.

User avatar
Cheeveer
Ultimate Member
Ultimate Member
Posts: 11290
Joined: 13 years ago
Location: 24 hours from Le Mans

Post by Cheeveer » 4 years ago

PTRACER wrote:No worries! By the way, I can't go full screen with the new code on my PC using Firefox, anyone else have this issue?
No go on Chrome either. (Windows 7 64-bit).
***Some say you should live each day like it was your last... but who wants to live each day in wild panic and extreme death anxiety?

The universe, look at the hugeness of it... it is a dizzying thought that little ol' me is the centre of it all!***

User avatar
SB83
Advanced Member
Advanced Member
Posts: 2837
Joined: 15 years ago
Real Name: Sandeep Banerjee
Favourite Racing Car: Lotus 49
Favourite Driver: Jim Clark
Favourite Circuit: Nordschelife
Car(s) Currently Owned: Suzuki Ritz (Splash), Ford Ecosport
Location: Gliese 876 b

Post by SB83 » 4 years ago

Can someone tell me how not copying the full URL is better than copying the video ID only? The way Paul said it made it sound like that and also, over at another forum, I remember the 'youtubeidiot' tag was for the full URL and the plain youtube tag was for the video ID, so you were an idiot if you copied the full link. For me, copying the full link is a shit ton easier than pecking out the video ID from the URL, highlighting it and then copying that so never really understood this lol.

User avatar
kals
Forum Administrator
Forum Administrator
Posts: 27256
Joined: 11 years ago
Real Name: Kieran
Favourite Motorsport: F1..BTCC..MotoGP
Favourite Racing Car: Benetton B189
Favourite Circuit: Donington Park
Location: New Jersey

Post by kals » 4 years ago

Nice one Paul

User avatar
Cheeveer
Ultimate Member
Ultimate Member
Posts: 11290
Joined: 13 years ago
Location: 24 hours from Le Mans

Post by Cheeveer » 4 years ago

SB83 wrote:Can someone tell me how not copying the full URL is better than copying the video ID only? The way Paul said it made it sound like that and also, over at another forum, I remember the 'youtubeidiot' tag was for the full URL and the plain youtube tag was for the video ID, so you were an idiot if you copied the full link. For me, copying the full link is a shit ton easier than pecking out the video ID from the URL, highlighting it and then copying that so never really understood this lol.
+1
***Some say you should live each day like it was your last... but who wants to live each day in wild panic and extreme death anxiety?

The universe, look at the hugeness of it... it is a dizzying thought that little ol' me is the centre of it all!***

User avatar
kals
Forum Administrator
Forum Administrator
Posts: 27256
Joined: 11 years ago
Real Name: Kieran
Favourite Motorsport: F1..BTCC..MotoGP
Favourite Racing Car: Benetton B189
Favourite Circuit: Donington Park
Location: New Jersey

Post by kals » 4 years ago

Cheeveer wrote:
SB83 wrote:Can someone tell me how not copying the full URL is better than copying the video ID only? The way Paul said it made it sound like that and also, over at another forum, I remember the 'youtubeidiot' tag was for the full URL and the plain youtube tag was for the video ID, so you were an idiot if you copied the full link. For me, copying the full link is a shit ton easier than pecking out the video ID from the URL, highlighting it and then copying that so never really understood this lol.
+1
It's a small issue but...

wrong - https://www.youtube.com/watch?v=PsQ_mT5YSvg

versus

right - http://www.youtube.com/watch?v=PsQ_mT5YSvg

The amount of times I've seen the top posted in error (I've done it myself) using the youtube tags and then someone has suggested correcting it or myself, Paul and Jesper have had to manually correct it.

Like I said, it's a small issue but an answer to Sandeep's question.

User avatar
SB83
Advanced Member
Advanced Member
Posts: 2837
Joined: 15 years ago
Real Name: Sandeep Banerjee
Favourite Racing Car: Lotus 49
Favourite Driver: Jim Clark
Favourite Circuit: Nordschelife
Car(s) Currently Owned: Suzuki Ritz (Splash), Ford Ecosport
Location: Gliese 876 b

Post by SB83 » 4 years ago

My question was why PsQ_mT5YSvg was considered easier than https://www.youtube.com/watch?v=PsQ_mT5YSvg actually. another forum made you use youtubeidiot tags for the latter, ie. full URL. Now it's http vs https though.

User avatar
ReneLotus
Advanced Member
Advanced Member
Posts: 2373
Joined: 12 years ago
Location: the Netherlands

Post by ReneLotus » 4 years ago

PTRACER wrote:No worries! By the way, I can't go full screen with the new code on my PC using Firefox, anyone else have this issue?
Same here on Win8 and Firefox. I tried uploading a new vid, but it had the same problem.

User avatar
erwin greven
Ultimate Member
Ultimate Member
Posts: 14356
Joined: 14 years ago
Real Name: Erwin Greven
Favourite Motorsport: Endurance Racing
Favourite Racing Car: Lancia Delta 038 S4 Group B
Favourite Driver: Ronnie Peterson
Favourite Circuit: Nuerburgring Nordschleife
Car(s) Currently Owned: Renault Clio 1.2 2003
Location: Stadskanaal, Groningen
Contact:

Post by erwin greven » 4 years ago

Same here. But it also happens when i try to switch to full screen when being on http://www.npo.nl/live/nederland-1
Brian Redman: "Mr. Fangio, how do you come so fast?" "More throttle, less brakes...."
DJ at www.metalmessiahradio.com *** Every Tuesday 1pm - 4pm EST.

User avatar
Ian-S
Elite Member
Elite Member
Posts: 9261
Joined: 11 years ago

Post by Ian-S » 4 years ago

There's some code I have on the V8 site that embeds a fake player/preview onto the forum post, to save on bandwidth and load time, that only loads up the YT player when you click play, I'll dig it out later if you want, it's really useful where you get a situation of a page having 15 video's embedded and it takes ages for all the separate players to load up, I hate waiting 3 minutes for the final video to load its player so I can watch it :lol:
Artificial Intelligence is no match for Natural Stupidity.

User avatar
PTRACER
Forum Administrator
Forum Administrator
Posts: 35848
Joined: 15 years ago
Real Name: Paul
Favourite Motorsport: Formula 1
Favourite Racing Car: Lotus 49
Favourite Driver: Gilles Villeneuve, James Hunt
Favourite Circuit: Nordschleife
Location: U.K.
Contact:

Post by PTRACER » 4 years ago

SB83 wrote:My question was why PsQ_mT5YSvg was considered easier than https://www.youtube.com/watch?v=PsQ_mT5YSvg actually. another forum made you use youtubeidiot tags for the latter, ie. full URL. Now it's http vs https though.
I suppose I could have just as easily altered the code to accept https:// as it's now the standard, but if someone ended up with an http:// YouTube link that wouldn't work either. Also some people have tried to post http://youtu.be links which just mess everything up completely.

Ian, does that code stop YouTube-heavy pages from freezing as they load?
Racing is living and everything that happens in between is just waiting.

User avatar
Ian-S
Elite Member
Elite Member
Posts: 9261
Joined: 11 years ago

Post by Ian-S » 4 years ago

PTRACER wrote: Ian, does that code stop YouTube-heavy pages from freezing as they load?
Sure does.

Now hopefully I've remembered this properly, grab this file off our server and upload it to yours (I think you could put it in the forums directory, I just put it in the route at the time, if you can't save it properly, let me know and I'll zip it up):

Code: Select all

http://www.v8thunderonline.co.uk/forum-youtubeembed.js
Go into ACP > Templates > Edit Template and select overall_header, find the opening <Body.....> tag, directly below it paste:

Code: Select all

<script src="http://www.yoursite.co.uk/forum-youtubeembed.js"></script>
Save the change, then select overall_footer.html

Now find the closing </Body> tag and directly before that, paste:

Code: Select all

<script type="text/javascript">optimizeYouTubeEmbeds()</script>
Save, purge the cache, then go find a Youtube heavy page and see if it works, should get something like this if it does:
http://www.v8thunderonline.co.uk/forum/ ... =18&t=7974

To disable it, if it don't work, just remove the optimizeYouTubeEmbeds() string from overall footer.

While you're at it, add the same to another forum cos that's the site it would work best on with the 50 embeds in the crash video threads :lol:

:)
Artificial Intelligence is no match for Natural Stupidity.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests