Daiko’s Video Widget

I’ve been working on a widget to display Google Video’s of your own choice in the sidebar. The widget is based on Joe’s quotes and displays videos based on the Google Video ID and the Title.

Unlike Google’s own embed-encoding this plugin validates as XHTML 1.0 Transitional. I know that the player controls are a bit messy when it is shrinked like this, but for those with broad sidebars, that would not constitute a problem.

Play around with it and tell me what you think!

Installation:

1. Copy daikosvideowidget.php and the daikosvideowidget directory to your /plugin/widgets/ folder
2. Activate the widget on your plugin-page.
3. Drag the Daiko’s Video widget to your sidebar and set a title + width and height (default is 200×170 and the example to the right is 160×150)

To edit the Video-list, open the txt file(s) in the daikosvideowidget directory and edit or add lines in the following format:

GoogleID (tab) Title (linebrake)

Do not add a linebrake after the last line…

Good Luck!

NEW VERSION AVAILABLE

46 Responses to “Daiko’s Video Widget”


  1. you do realise that by changing the original embed code you violate the google video TOS?

    nice widget though.
    looking forward for more of you stuff.

  2. thx for the widget but it doesn’t work :(
    There’s the player on the sidebar but no video are played. I followed your installation info…
    can you help me?
    Have a nice day :)

  3. 3Bob

    I have a problem i cant get it to work.. 2 errors pop up.

    Warning: opendir(/home/middle/public_html/wp-content/plugins/widgets/daikosvideowidget): failed to open dir: No such file or directory in /home/middle/public_html/blog/wp-content/plugins/widgets/daikosvideowidget.php on line 57

    Warning: readdir(): supplied argument is not a valid Directory resource in /home/middle/public_html/blog/wp-content/plugins/widgets/daikosvideowidget.php on line 58

    Any ideas? i get these errors above the player.

  4. It looks like you forgot to copy the directory also to the widget directory. Try that first!

    Daiko

  5. 5Bob

    Nope
    i’m not that silly.
    I will just uninstall it if thats the best reply you can come up with.

  6. 6Bob

    That directory contains only 2 files
    .DS_Store
    myvideos.txt

    That’s all that was in the archive i downloaded and i am NOT a computer novice saying i “forgot” to install a directory is not funny.

    If anything you left a file out of the archive.

  7. Sorry I didn’t mean to imply that. The php error suggests that the dir is missing. I’ll take a look at it when I get home. These replies were made on my cell phone.

  8. 8Bob

    The directory is there and the syntax is correct for the location. I did check this from the php file before i posted the question here.
    I did think the error was the myvideos.txt so i made my own but still the same error.

  9. Your directory contains two files Sir:
    myvideos.txt and .DS_Store
    then, there is a file named daikosvidewidget.php (+ readme_dvw.txt)
    I’ve uploaded the php file and the directory into my /plugin/widgets/ folder
    The player is OK but the screen is on black: no video. Why?
    I’m a little sad about it: your plugin is very cool…
    Thanks :)

  10. Hi again Bob,

    Why don’t you try now… It seemed to have something with the encoding of the .txt file to do. It has to be UTF-8 txt.

    You can add multiple txt files to the daikosvideowidget directory. Maybe an idea would be to make various collections!?

    I’m truly sorry for the inconvenience!

    I recognize that the widget may not be fully in compliance with Google Video. If people want a non XHTML version based on the embed coding from Google, I can make that as a separate download….

    Good luck!

  11. One more thing! I noticed that the new txt file is best edited in Wordpad not Notepad. Don’t ask me why, but it seemed like Notepad for some reason added an extra linebrake which causes every second video to be blank….

  12. 12Bob

    Uploaded the new txt file, (it is different to the first) but i still have the error.

  13. I suggest you update the php-file too!

  14. 14Bob

    done that as well, deleted the old one and uploaded the new one. Made a new text file with the name list.txt in wordpad as well. Deactivated it and reactivated it still the same.

  15. Sorry, out of ideas, at least now… I repacked the thing and uploaded the new package to http://www.googlebetas.com and it works just like that.

    Any others with the same problem?

  16. Bob,

    If you could also test Joe’s quotes at: http://sojoe.info/2006/04/09/joes-quotes-widget.html

    I don’t think that part of the code should be different…

    Maybe you also could test adding a / after the dir declarations in the php. My problem now is that I’m unable to replicate your error…

  17. 17Bob

    I have joes quotes and it works fine, have tried adding the ” / ” makes no difference.
    It cant find the txt file.. well thats what i think but i dont understand php.

    Not to worry looks like its only me thats affected

  18. How about shortening the dir name?

    The last idea is to check the chmod settings.

  19. Man…ur video widget kicks ass!

    http://simmessa.com/blog

  20. followed the instructions, plugged it in. I have the google video box but nothing is playing. checked the txt file everything looks good. Advice?

  21. Hi Kevin,

    It is hard to say why, but I would recommend that you upgrade to 1.1

  22. i have same problem, i cant solve it. :( pls help.

    Warning: opendir(//wp-content/plugins/widgets/daikosvideowidget.php): failed to open dir: No such file or directory in /home/www/mutix.net/blog/wp-content/plugins/widgets/daikosvideowidget.php on line 57

    Warning: readdir(): supplied argument is not a valid Directory resource in /home/www/mutix.net/blog/wp-content/plugins/widgets/daikosvideowidget.php on line 58

    in daikosvideowidget.php line 57, 58:

    $url = get_settings(’siteurl’).’/wp-content/plugins/widgets/daikosvideowidget’;
    $lpath = $_SERVER['DOCUMENT_ROOT'].’/wp-content/plugins/widgets/daikosvideowidget’;

  23. The widget is out in version 1.1 and 1.2 Beta. They don’t need the text-file and the above problem is solved. In addition you get YouTube and even MySpace support.

  24. Well, with version 1.1 also YouTube is included, now this is the perfect widget :)

    Thanks again,

    http://simmessa.com/blog to see it in action…

    Cheers,

    Simmessa.

  25. The widget works some of the time. Many times when you go to the site, you only see a blank area where the video should be. If you refresh or click around, eventually it will pop on. Any ideas?

  26. Great plugin!!!!
    Is there any way to tell the plugin that the ID is from a particular site? It is currently taking one of my Google IDs and assuming it’s a Myspace ID, hence the video is not showing.

  27. Hi Dean,

    Can you give me the MySpace ID on that particular video?

    Daiko

  28. Hey Daiko,
    Here is the Google ID for the video that is giving me problems

    404263582548955379

    When I enter it, the widget thinks it is a Myspace ID when it is not.

    http://video.google.com/videoplay?docid=404263582548955379&hl=en

    Dean

  29. Dean! I’ve posted an answer on the main Video Widget page. http://www.daikos.net/daikos-video-widget/

    Bug-fix will be available as soon as I get an internet connection. This is done on my mobile.

  30. Just wanted to say ‘thank you’ for creating an awesome widget and for all your hard work.

  31. hi there.com plugin but :

    Does anybody know if tis script is compatible with Wordpress 2.5?

    Thanks in advance for any help on this!

  32. Hi baron,

    Yes it is WP 2.5 compatible….

  33. hi there .thanks for plugin:

    Does anybody know if tis script is compatible with Wordpress 2.5.1 ?

    Thanks in advance for any help on this!

    best regards

  34. Hi!!
    I´m new in wordpress and i´m making a new page with this program. I saw ur widget for video. I got 1 quiestion:
    Is posible to show more than 1 video at the same time? i can´t find a scrip for what I want. And urs is the only one that go without problems.

    Thanks.

  35. Hi there.
    On http://www.juwenalia-szczecin.pl, on the right side bar, there is just one video… And I’ve typed in three in the widget edit menu.
    What could be wrong?

    Great plugin :)

  36. 36Jason

    This looks great but wheres the link to download???

  37. 37Mintz

    a bug
    This widget will recognize x as ×
    for example, if you put
    Vg0×2_BGtVs@ The Draw Memory

    in your Daiko’s Video Widget Favorite Videos
    you will find what happens

  38. I tried installing this and so far, all appears to be working “internally”, but NOTHING is showing up externally on the site itself!

    Any ideas what I can do here? I’d love to have the RAW code and just open the sidebar and insert it exactly where I want the videos to show up, assuming that whenver I made changes within the plugin “internally”, they are reflected directly on the site’s sidebar itself.

    Any ideas what the widget code is to paste this widget manually in the sidebar?

    -R

  39. Daiko,

    Great Widget! How can I modify the video titles so that they are ‘centered’ and ‘bold’ ? I looked in your php file but since i’m new to coding, i don’t know what to change and what the value should be, can you help?

    Thanks so much!

    -Arman

  40. Awsome..

    But i’m still confuse about the configuration. where can i get the ID [Yoyutube, Google, etc] also where can i know the title ? is it from video title of Youtube for example that placed above the screen ? Last question, is the link from the URL or what ? …

    Thanks so much, im waiting 4 ur answer.

  41. 41Joe

    Hey, does this widget work with wordpress 2.7 (2.7.1) ?

  42. i tell to everybody this plugin is the simplest wp video plugin ever
    check the video to bilieve
    selection with Channels in Photoshop | canfindonline

  43. Working well for me but is there any way it can be used to display multiple videos or have multiple instances of the widget?

    Thanks,
    Ben

  44. couple of questions:

    can i display multiple videos at the same time? i’ve tried. I have 3 video ID’s in place, only one is displayed on the page.

    is it possible to mix in hyperlinks with actual video?

  45. I love the widget. Has worked perfectly for me. I use it at my site http://buyathletes.com. Thanks a lot.

  46. great news…and the link?

Leave a Reply



Bad Behavior has blocked 855 access attempts in the last 7 days.