Elxis CMS Forum
Support => Elxis 4.x/5.x DEV => Topic started by: peppemania on December 02, 2012, 13:45:36
-
is possible show video in litebox?
i try with:
<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).
-
Try colorbox with iframe.
See youtube engine as an example (componets/com_search/engines/youtube/)
$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.
-
ok add:
$eDoc->loadLightbox();
$eDoc->addDocReady('$(".youtube").colorbox({iframe:true, innerWidth:640, innerHeight:360, close:\''.$eLang->get('CLOSE').'\'});');
but the link is bad:
http://www.youtube.com/watch?v=96K4XJ4z0zY
no: watch?v=
but: /v/
good:
http://www.youtube.com/v/96K4XJ4z0zY
result:
<a class="youtube colorbox" href="http://www.youtube.com/v/96K4XJ4z0zY" target="_blank">play video</a>
work for me!