Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: peppemania on December 02, 2012, 13:45:36

Title: video in litebox? [SOLVED]
Post by: peppemania on December 02, 2012, 13:45:36
is possible show video in litebox?
i try with:

Code: [Select]
<a class="elx_litebox cboxElement" href="http://www.youtube.com/watch?v=Cipar0Ers8g">Flash / Video (Iframe/Direct Link To YouTube)</a></p>
but: Request unsuccessful: error

any idea? (with images works well).
Title: Re: video in litebox?
Post by: datahell on December 02, 2012, 19:20:34
Try colorbox with iframe.

See youtube engine as an example (componets/com_search/engines/youtube/)

Code: [Select]
$eDoc->loadLightbox();
$eDoc->addDocReady('$(".something").colorbox({iframe:true, innerWidth:425, innerHeight:344, close:\''.$eLang->get('CLOSE').'\'});');
echo '<a href="http://link/to/video1" target="_blank" class="something">video 1</a><br />';
echo '<a href="http://link/to/video2" target="_blank" class="something">video 2</a>';

Elxis also includes highslide which is also able to do that.


Title: Re: video in litebox?
Post by: peppemania on December 03, 2012, 12:57:03
ok add:

$eDoc->loadLightbox();
$eDoc->addDocReady('$(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:360, close:\''.$eLang->get('CLOSE').'\'});');

but the link is bad:
Code: [Select]
http://www.youtube.com/watch?v=96K4XJ4z0zY
no: watch?v=
but: /v/

good:
Code: [Select]
http://www.youtube.com/v/96K4XJ4z0zY

result:
Code: [Select]
<a class="youtube colorbox" href="http://www.youtube.com/v/96K4XJ4z0zY" target="_blank">play video</a>
work for me!