YouTube HighSlide BBCode

Mod BBCode Database
BBCodes that need some file editing or extra files

YouTube HighSlide BBCode

Post by BBCode Bot »

YouTube HighSlide BBCode

Author: Stoker
Description: With the YouTube HighSlide BBCode you can have youtube videos in the highslide popup layer.
Note that you need to use the full script version. This BBCode is an addon for the highslide attachment mod.
You need to use the full Highslide script and to do so you need to edit overall_header.html
When the Highslide Attachment Mod is installed find this:

Code: Select all

<script type="text/javascript" src="{ROOT_PATH}highslide/highslide-with-gallery.js"></script>
and replace it with this:

Code: Select all

<script type="text/javascript" src="{ROOT_PATH}highslide/highslide-full.js"></script>
You also need to change this in the js file:

Code: Select all

objectLoadTime : 'before',
To:

Code: Select all

objectLoadTime : 'after',
and:

Code: Select all

preserveContent : true,
to:

Code: Select all

preserveContent : false,

BBCode:

Code: Select all

[youtubepop]{IDENTIFIER}[/youtubepop]
HTML:

Code: Select all

<a href="http://www.youtube.com/v/{IDENTIFIER}.swf" onclick="return hs.htmlExpand(this, { objectType: 'iframe', width: 425, height: 388, wrapperClassName: 'draggable-header' } )"><img style="width: 130px; height: 97px;" alt="YouTube" src="http://i.ytimg.com/vi/{IDENTIFIER}/default.jpg" /></a>
Helpline:

Code: Select all

Youtube Popup: [youtubepop]YouTube ID[/youtubepop]
Example:

Code: Select all

[youtubepop]R4i8SpNgzA4[/youtubepop] [youtubepop]Qq8Uc5BFogE[/youtubepop]
Demo:
[youtubepop]R4i8SpNgzA4[/youtubepop] [youtubepop]Qq8Uc5BFogE[/youtubepop]

Re: YouTube HighSlide BBCode

Post by IpHeX »

You also need to change this in the js file:

Code: Select all

    objectLoadTime : 'before',

To:

Code: Select all

    objectLoadTime : 'before',

Is there a change? both look the same to me! :?

Re: YouTube HighSlide BBCode

Post by Stoker »

First post updated ;)

Re: YouTube HighSlide BBCode

Post by camilost »

Ok. Thats work, but if i click on image gallery video this transfer me to: http://www.youtube.com/v/thisis.swf ;/

Re: YouTube HighSlide BBCode

Post by Stoker »

Do you have the Highslide Attachment mod installed?

Re: YouTube HighSlide BBCode

Post by camilost »

Yes, version: 4.1.8.

Re: YouTube HighSlide BBCode

Post by Stoker »

Please post a link to a topic where you are using it.

Re: YouTube HighSlide BBCode

Post by camilost »

http://multikill.xaa.pl/viewtopic.php?f=11&t=4&p=81#p81
This is my test forum :) If i change to "before", this problem is the same as.

Re: YouTube HighSlide BBCode

Post by Stoker »

You have to use the full js version. Remember to change it in overall_header.html

Re: YouTube HighSlide BBCode

Post by camilost »

Ok, that's work. Thanks :)
Last edited by camilost on 22 Apr 2010, 06:08, edited 1 time in total.