Join us here in ranking Ayrton Senna's Formula 1 cars! viewtopic.php?f=32&t=16038

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
Ian-S
Elite Member
Elite Member
Posts: 9294
Joined: 11 years ago

Re: YouTube BBCode Updated

Post by Ian-S » 4 years ago

Latest post of the previous page:

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.

User avatar
Everso Biggyballies
Ultimate Member
Ultimate Member
Posts: 25215
Joined: 13 years ago
Real Name: Chris
Favourite Motorsport: Anything that goes left and right.
Favourite Racing Car: Too Many to mention
Favourite Driver: Raikkonen, Lauda, Clark etc
Favourite Circuit: Nordschleife, Spa, Mt Panorama.
Car(s) Currently Owned: BMW 330C M Sport Coupe
Location: 8 kms from Albert Park, Melbourne.

Post by Everso Biggyballies » 4 years ago

I cant go to full screen from the post, but can do it ok if I go to watch on you tube..... (That is using W7 and Chrome. Not tried Firefox yet.)

*My woman cant wrestle. But you should see her box!*


*I married Miss Right. Just didn't know her first name was Always

User avatar
PTRACER
Forum Administrator
Forum Administrator
Posts: 36238
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

I'll see if I can sort it out next week (cheers for the feedback guys, and for that code Ian)
Racing is living and everything that happens in between is just waiting.

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

Post by Ian-S » 4 years ago

no problemo, I was quiet amazed at how simple it was to get up and running.
Artificial Intelligence is no match for Natural Stupidity.

User avatar
PTRACER
Forum Administrator
Forum Administrator
Posts: 36238
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

I haven't installed your mod yet Ian but I've fixed the fullscreen issue and it seems to help YouTube-heavy pages load faster too. Bonus!
Racing is living and everything that happens in between is just waiting.

User avatar
ReneLotus
Advanced Member
Advanced Member
Posts: 2379
Joined: 13 years ago
Location: the Netherlands

Post by ReneLotus » 4 years ago

PTRACER wrote:I haven't installed your mod yet Ian but I've fixed the fullscreen issue and it seems to help YouTube-heavy pages load faster too. Bonus!
It works here too! :thumbsup:

Post Reply