Daiko’s YouTube Widget - IE fix
I’ve been trying hard to find a good CSS solution to the play button issue in IE with limited luck. That is why I’ve now decided to provide you all with an update that will work on all plattforms (I guess). I’ve decided to put the video thumbnail in as a background image and use a transparent gif play button on top. The only problem with this solution is that you loose control over the size of the background image, thus just get a cropped view of the thumbnail when using the small and medium size thumbnails.
The other update is that I’ve made sure that the widget doesn’t display any before and after widget code on pages you don’t show the widget using conditional tags. It still displays comment code to assist users in debugging.
Tell me what you think and if you css freaks out there have a better solution, give me a shout.
Get version 1.2.3 of Daiko’s YouTube Widget here.

hy, a like your plugin it’s nice, i had an error but i made this modification
on daikos-youtube-widget/daikosyoutubewidget.php on line 19
“function widget_daikos_youtube_control($number=1)”, i think will help you
Hi dipsy,
Hmm I haven’t seen that one before. Did you have an error on first time installation? If you set $number=1 than it will not handle the registration of multiple widgets correct!? Or did I miss something? Please elaborate on your error message.
Hy daiko,
and excuse my bad english.
i had this error “Warning: Missing argument 1 for widget_videos_control() in /var/www/web40/web/wp-content/plugins/daikos-video-widget/daikosvideowidget.php on line 19″, this error occurs when you call a function with a parameter and you are not passing any arguments. So i thing that is a good thing putting $number=1 because if you call the function without passing any argument, you will not get that error and if the function is call with an argument,for example 4, widget_daikos_youtube_control(4) the var $number will be 4. If the function is call without any arguments, the default af the parameter will be “1″.
I want to thank you for this plugin it’s the best youtube widget for Wordpress
Hi!
I just installed your plugin and it’s working great so far.
Now, is there a way when you click on the video that would take you to a page on your blog than redirecting to the youtube website?
Thank you
Hi!
“May be a dumb question…”, but how do I display the video thumbnail so as not to just have a blank box with just the play button?
GREAT PLUGIN, THANK YOU!
Hi Matthias,
There are no dumb questions….
My guess is that you have more than the youtube ID in your videos. If you have something like rUZZl0n4_5E&feature=related instead of rUZZl0n4_5E the thumbnails will not show. Remove everything from & to the end. The thing is that it wouln’t affect the video playing, only the thumbnails from showing.
I can try to do that automatically, but that will be in the next version…..
Daiko
I also just installed your plugin and is working great. Thank you.