Closed (fixed)
Project:
Shadowbox
Version:
6.x-3.5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
28 Jan 2010 at 23:46 UTC
Updated:
28 Sep 2010 at 16:00 UTC
Hi!
I´m just installing this module, and have read all help information in the module and the shadowbox page.
I cannot get a youtube video to even show up. When I click the button the page fades to blak. And that´s it. Nothing appears.
<a class="option" href="http://www.youtube.com/watch?v=_cuBp89S5Fo"
rel="shadowbox;height=140;width=120;player=iframe" title="Bienvenido">
Click here to view the video</a>In my page-front.tpl.php file, I´ve added this code inside HEAD tags:
<link rel="stylesheet" type="text/css" href="/sites/all/plugins/shadowbox/shadowbox.css">
<script type="text/javascript" src="/sites/all/plugins/shadowbox/shadowbox.js"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/adapters/shadowbox-jquery.js"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/languages/shadowbox-es.js"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/players/shadowbox-img.js"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/players/shadowbox-swf.js"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/players/shadowbox-flv.js"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/players/shadowbox-qt.js"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/players/shadowbox-wmp.js"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/players/shadowbox-html.js"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/players/shadowbox-iframe.js"></script>
<script type="text/javascript" src="/sites/all/modules/shadowbox/shadowbox_auto.js"></script>
<script type="text/javascript" src="/sites/all/plugins/shadowbox/shadowbox.js"></script>
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/plugins/shadowbox/shadowbox.css" />
<link type="text/css" rel="stylesheet" media="all" href="/sites/all/modules/shadowbox/shadowbox.css" />
<script type="text/javascript">
Shadowbox.init();
</script>
I´m using latest 6.x.3 version of this module and shadowbox plugin.
Thanks for your help!!!
Comments
Comment #1
psynaptic commentedYou shouldn't add scripts to the head section like that. All you should need to do is
print $scripts;and all the scripts will get printed for you.Comment #2
Rosamunda commentedOh I see. Thanks!
I´ve changed it (much better :)
But the problem remains...
Comment #3
psynaptic commentedTry without the player=iframe parameter.
Also, there is a bug in 3.5 so if it still doesn't work you could try the dev version.
Comment #4
nicholas.alipaz commentedI will assume this is resolved since the reporter has stopped discussion.
Comment #6
freatida commentedReopening the issue because I have the same problem. Just a black screen with no content. Have removed the iframe parameter and upgraded to dev version as suggested but no luck.
Comment #7
nicholas.alipaz commentedwithout any example code or even a page to see what is going on there is no way to help you.
--
Los Angeles Web Design and development for Drupal.
Comment #8
truyenle commentedI think I got the same problem.
So I user Embedded Video Field of emfield suite to include a youtube embedded video code and then I choose the display as Shadowbox: Image Thumbnail -> Full Size Video.
Then when I view the node and click on the thumbnail image -> The page is gray out but that's it.
I then inspect the element and see the code as:
Any idea nicholas.alipaz?
Truyen
Comment #9
nicholas.alipaz commentedYour code didn't come through. You need to post it like so:
<code>
Your code here
</code>
for it to display properly on this site.
Comment #10
truyenle commentedOh my god, here it is:
<a href="/en/emvideo/modal/696/425/350/field_feature_video/youtube/fl5iZUKLDmc%3Ffs%3D1/index.php" title="Blog: Mission X News" class="emvideo-thumbnail-replacement emvideo-modal-shadowbox shadowbox emvideo-thumbnail-replacement-processed" rel="shadowbox[featured_content];width=430;height=355"><span></span><img src="http://img.youtube.com/vi/fl5iZUKLDmc?fs=1/0.jpg" alt="See video" title="See video" width="120" height="90"></a>Thanks
Truyen
Comment #11
nicholas.alipaz commentedIt looks to be ok from what I can tell. I do however think your issue may be unrelated. I think your issue lies with shadowbox configuration and your theme. Does your theme declare a correct doctype for use with shadowbox? If not, that may be the issue. Read over the shadowbox faq on the shadowbox site and also read over the installation and readme file for this module to be sure you didn't miss anything.
Comment #12
truyenle commentedHi nicholas,
I got it work by re-download the shadowbox library by selecting the jquery package -> Work cool!
Thanks
Truyenle
Comment #13
nicholas.alipaz commented