Welcome, Guest. Please login or register.
Did you miss your activation email?
May 26, 2012, 11:57:32 AM

Login with username, password and session length
Search:     Advanced search
Interested in joining the WebsiteBaker team?
For more Information read here or on our new website.
155533 Posts in 21712 Topics by 7736 Members
Latest Member: chris85
* Home Help Search Login Register
Pages: [1]   Go Down
Print
Author Topic: YouTube Droplet Issue  (Read 1007 times)
ad_acc

Offline Offline

Posts: 5


« on: October 04, 2010, 09:55:13 PM »

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!

Logged
DarkViper
Development Team
*****
Offline Offline

Posts: 1252


« Reply #1 on: October 04, 2010, 11:13:55 PM »

which version of droplet module you have in use?
Logged

Anleitungen lesen und selber nachdenken ist anstrengend...  Da lass ich doch lieber andere für mich denken...

In 1984:  Nineteen Eighty-Four is a unrealistic utopia!!
In 2012:  Nineteen Eighty-Four is a little piece only of our reality!!
ad_acc

Offline Offline

Posts: 5


« Reply #2 on: October 05, 2010, 02:29:04 PM »

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

Offline Offline

Posts: 5


« Reply #3 on: October 05, 2010, 02:31:24 PM »

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

Code:
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;
Logged
ad_acc

Offline Offline

Posts: 5


« Reply #4 on: October 14, 2010, 02:25:29 PM »

Does anyone have any ideas?  embarassed

I can really use some help on this one...
Logged
dbs
WebsiteBaker Org e.V.

Offline Offline

Posts: 3719


WWW
« Reply #5 on: October 14, 2010, 02:37:41 PM »

check your droplet-version:
http://www.websitebakers.com/pages/droplets/module-wb2.8.php
Logged

ad_acc

Offline Offline

Posts: 5


« Reply #6 on: October 14, 2010, 02:50:41 PM »

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

Offline Offline

Posts: 1


« Reply #7 on: March 09, 2011, 04:41:37 AM »

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

Code:
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
Logged
Pages: [1]   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!