WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.9 is now available!


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • YouTube Droplet Issue
  • Print
Pages: [1]   Go Down

Author Topic: YouTube Droplet Issue  (Read 9586 times)

ad_acc

  • Guest
YouTube Droplet Issue
« on: October 04, 2010, 10: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

Offline DarkViper

  • Forum administrator
  • *****
  • Posts: 3087
  • Gender: Female
Re: YouTube Droplet Issue
« Reply #1 on: October 05, 2010, 12:13:55 AM »
which version of droplet module you have in use?
Logged
Der blaue Planet - er ist nicht unser Eigentum - wir haben ihn nur von unseren Nachkommen geliehen

"We need education to cope with digitalization - and NOT the digitalization of education.!"

Tägliches Stoßgebet: Oh Herr, wirf Hirn vom Himmel !

ad_acc

  • Guest
Re: YouTube Droplet Issue
« Reply #2 on: October 05, 2010, 03:29:04 PM »
I installed it just the other day so I assume its the latest version.
Logged

ad_acc

  • Guest
Re: YouTube Droplet Issue
« Reply #3 on: October 05, 2010, 03:31:24 PM »
Here is the code I'm using for the droplet:

Code: [Select]
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

  • Guest
Re: YouTube Droplet Issue
« Reply #4 on: October 14, 2010, 03:25:29 PM »
Does anyone have any ideas?  :oops:

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

Offline dbs

  • Betatester
  • **
  • Posts: 8924
  • Gender: Male
  • tioz4ever
    • WebsiteBaker - jQuery-Plugins - Module - Droplets - Tests
Re: YouTube Droplet Issue
« Reply #5 on: October 14, 2010, 03:37:41 PM »
check your droplet-version:
http://www.websitebakers.com/pages/droplets/module-wb2.8.php
Logged
https://onkel-franky.de

ad_acc

  • Guest
Re: YouTube Droplet Issue
« Reply #6 on: October 14, 2010, 03:50:41 PM »
Fantastic! That seems to have done the trick. Thanks so much for your help!
Logged

jonathansross

  • Guest
Re: YouTube Droplet Issue
« 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: [Select]
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

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.8.x) »
  • Droplets & Snippets »
  • YouTube Droplet Issue
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2