Page 1 of 4

YouTube HighSlide BBCode

Posted: 11 Mar 2010, 07:49
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

Posted: 01 Apr 2010, 00:11
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

Posted: 01 Apr 2010, 09:07
by Stoker
First post updated ;)

Re: YouTube HighSlide BBCode

Posted: 20 Apr 2010, 20:26
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

Posted: 20 Apr 2010, 21:24
by Stoker
Do you have the Highslide Attachment mod installed?

Re: YouTube HighSlide BBCode

Posted: 21 Apr 2010, 08:47
by camilost
Yes, version: 4.1.8.

Re: YouTube HighSlide BBCode

Posted: 21 Apr 2010, 09:08
by Stoker
Please post a link to a topic where you are using it.

Re: YouTube HighSlide BBCode

Posted: 21 Apr 2010, 17:01
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

Posted: 21 Apr 2010, 20:36
by Stoker
You have to use the full js version. Remember to change it in overall_header.html

Re: YouTube HighSlide BBCode

Posted: 22 Apr 2010, 07:17
by camilost
Ok, that's work. Thanks :)