Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Youtube movie on product info


snights

Recommended Posts

Hi,

 

Ive installed a contribution called

"oscyoutube" http://addons.oscommerce.com/info/6373

 

I installed this becus putting youtube embedd code directly into products description made it go error and just gave a blank page.

 

After this contribtion it worked perfectly. I tryed it on my three other computers to and it worked..

But then i tried at my friends place and it gave me error.. It loaded the page so that the logo on the top showed but rest of the page was blank.

Tried at another computer samething.. Then another computer it worked and so on.. So about 50% of all the test at the same page and product it worked, the rest 50% it didnt. ?..

 

Anyone have any idé what it could be?

 

 

And it uses a code i product_info.php

 

 

 

<!-- begin Video Youtube -->


<?php

$small_youtube = $product_info['products_youtube'];


if ($small_youtube == NULL) {
echo '<font color="red">NO VIDEO</font>';

} else {

	  	$info_box_contents = array();
	  	$info_box_contents[] = array('align' => 'center', 'text'  => '


<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/'.$small_youtube.'&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=
0x999999">
</param><param name="allowFullScreen" value="true">
</param><embed src="http://www.youtube.com/v/'.$small_youtube.'&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=
0x999999" type="application/x-shockwave-flash" 
allowfullscreen="true" width="425" height="344"></embed></object>




');
	  	new infoBox($info_box_contents);
}		?>



<!-- Video Youtube //-->

Link to comment
Share on other sites

Solved.

Changed

 

<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/'.$small_youtube.'&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=
0x999999">
</param><param name="allowFullScreen" value="true">
</param><embed src="http://www.youtube.com/v/'.$small_youtube.'&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=
0x999999" type="application/x-shockwave-flash" 
allowfullscreen="true" width="425" height="344"></embed></object>

 

To

<object type="application/x-shockwave-flash" width="425" height="344" data="http://www.youtube.com/v/'.$small_youtube.'&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=
0x999999" id="VideoPlayback">
  <param name="movie" value="http://www.youtube.com/v/'.$small_youtube.'&hl=en&fs=1&rel=0&color1=0x3a3a3a&color2=
0x999999">
  <param name="allowScriptAcess" value="sameDomain">
  <param name="quality" value="best">
  <param name="bgcolor" value="#FFFFFF">
  <param name="scale" value="noScale">
  <param name="salign" value="TL">

  <param name="FlashVars" value="playerMode=embedded" />
  <param name="wmode" value="transparent" />
</object>

Edited by snights
Link to comment
Share on other sites

  • 3 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...