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

psynaptic’s picture

You 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.

Rosamunda’s picture

Oh I see. Thanks!
I´ve changed it (much better :)
But the problem remains...

psynaptic’s picture

Try 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.

nicholas.alipaz’s picture

Status: Active » Fixed

I will assume this is resolved since the reporter has stopped discussion.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

freatida’s picture

Status: Closed (fixed) » Active

Reopening 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.

nicholas.alipaz’s picture

without 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.

truyenle’s picture

I 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

nicholas.alipaz’s picture

Your 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.

truyenle’s picture

Oh 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

nicholas.alipaz’s picture

It 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.

truyenle’s picture

Hi nicholas,

I got it work by re-download the shadowbox library by selecting the jquery package -> Work cool!

Thanks
Truyenle

nicholas.alipaz’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.