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
Legendary Member
Legendary Member
Posts: 10232
Joined: 16 years ago

#16

Post by Ian-S »

Bottom 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 TBK cos that's the site it would work best on with the 50 embeds in the crash video threads :lol:

:)
I am very sorry if you find my posts long and boring, I like to type and often go off on a tangent.
If this is the case, you may click here to solve the problem, or alternatively here too.
User avatar
Everso Biggyballies
Legendary Member
Legendary Member
Posts: 48991
Joined: 18 years ago
Real Name: Chris
Favourite Motorsport: Anything that goes left and right.
Favourite Racing Car: Too Many to mention
Favourite Driver: Kimi,Niki,Jim(none called Michael)
Favourite Circuit: Nordschleife, Spa, Mt Panorama.
Car(s) Currently Owned: Audi SQ5 3.0L V6 TwinTurbo
Location: Just moved 3 klms further away so now 11 klms from Albert Park, Melbourne.

#17

Post by Everso Biggyballies »

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.)

* I started life with nothing, and still have most of it left


“Good drivers have dead flies on the side windows!” (Walter Röhrl)

* I married Miss Right. Just didn't know her first name was Always
User avatar
PTRACER
Forum Administrator
Forum Administrator
Posts: 42138
Joined: 20 years ago
Real Name: Paul
Favourite Motorsport: Formula 1
Favourite Racing Car: Lotus 49
Favourite Driver: Gilles Villeneuve, James Hunt
Favourite Circuit: Nordschleife
Car(s) Currently Owned: Mitsubishi Lancer Evo X JDM
Contact:

#18

Post by PTRACER »

I'll see if I can sort it out next week (cheers for the feedback guys, and for that code Ian)
Developer of the 1967v3 Historic Mod for Grand Prix Legends: viewtopic.php?t=17429

King of the Race Track, Destroyer of Tyres, Breaker of Lap Records
User avatar
Ian-S
Legendary Member
Legendary Member
Posts: 10232
Joined: 16 years ago

#19

Post by Ian-S »

no problemo, I was quiet amazed at how simple it was to get up and running.
I am very sorry if you find my posts long and boring, I like to type and often go off on a tangent.
If this is the case, you may click here to solve the problem, or alternatively here too.
User avatar
PTRACER
Forum Administrator
Forum Administrator
Posts: 42138
Joined: 20 years ago
Real Name: Paul
Favourite Motorsport: Formula 1
Favourite Racing Car: Lotus 49
Favourite Driver: Gilles Villeneuve, James Hunt
Favourite Circuit: Nordschleife
Car(s) Currently Owned: Mitsubishi Lancer Evo X JDM
Contact:

#20

Post by PTRACER »

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!
Developer of the 1967v3 Historic Mod for Grand Prix Legends: viewtopic.php?t=17429

King of the Race Track, Destroyer of Tyres, Breaker of Lap Records
User avatar
ReneLotus
Advanced Member
Advanced Member
Posts: 2445
Joined: 17 years ago
Location: the Netherlands

#21

Post by ReneLotus »

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