YouTube Droplet Issue

jonathansross

I have a new droplet based upon youtube's new iframe code. Try this:


if (!$H) $H=300;
if (!$W) $W=500;
return'
<iframe title="YouTube video player" height="'.$H.'" width="'.$W.'" src="http://www.youtube.com/embed/'.$YOUTUBEID.'" frameborder="0" allowfullscreen></iframe>
';


Usage:
[[yt-embed2?YOUTUBEID=HtJc9xKn8cY&H=400&W=600]]
-- or you can use it without the variables --
[[yt-embed2?YOUTUBEID=Y_hQORwUMn4]]

Let me know if it works for you.

Jonathan

ad_acc

Fantastic! That seems to have done the trick. Thanks so much for your help!

dbs

[url="https://onkel-franky.de"]https://onkel-franky.de[/url]

ad_acc

Does anyone have any ideas?  :oops:

I can really use some help on this one...

ad_acc

Here is the code I'm using for the droplet:

if (!$height) $height=344;
if (!$width) $width=425;
$returnvalue = '<object height="'.$height.'" width="'.$width.'" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">';
$returnvalue .= '<param name="wmode" value="transparent" />';
$returnvalue .= '<param name="src" value="http://www.youtube.com/v/'.$id.'&rel=1" /><embed height="'.$height.'" width="'.$width.'" src="http://www.youtube.com/v/'.$id.'&rel=1" wmode="transparent" type="application/x-shockwave-flash"></embed></object>';
return $returnvalue;

ad_acc

I installed it just the other day so I assume its the latest version.

DarkViper

which version of droplet module you have in use?
[url=http://www.youtube.com/watch?v=tmzDAz6ZvFQ]Der blaue Planet[/url] - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen[br]
[i]"You have to take the men as they are... but you can not leave them like that !" :-P [/i]
[i]Das tägliche Stoßgebet: [b]Oh Herr, wirf Hirn vom Himmel ![/b][/i]

ad_acc

Hi there!

I am trying to use the YouTube droplet to add videos to my site. The droplet seems to work fine if I only have one video on a page. However if, for example, I add 3 different YouTube videos on a page, the droplet uses the first video 3 times. I'm not sure if the droplet isn't working properly or if I'm doing something wrong. This is how I'm adding videos to my page:

[[youtube?id=VIDEO1]]
[[youtube?id=VIDEO2]]
[[youtube?id=VIDEO3]]

You can find the droplet details here:

http://www.websitebakers.com/pages/droplets/official-library/images/youtube.php

I noticed this issue brought up once in an old post but couldn't find a solution. Does anyone have any ideas? Any help would be greatly appreciated.

Thanks!