On: 2006/04/20 Viewed: 198742 times
Shorter URL for this page: http://ozh.in/kv
Youtube has changed their API key process and stuff. Until further notice, this plugin is broken

You like Youtube and want to publicize and share the favorite videos you bookmarked there ? My Youtube Favorites Videos is made for you.

In three words

This plugin / widget for WordPress allows you to display, in a very configurable manner, your latest favorite videos from Youtube. But I guess you already understood that :)

Plugin and / or Widget

The first thing to know about this plugin / widget is that it can actually behave as a regular plugin, or as a Widget. Ok, I'm not going to write "Plugin / Widget" all the time. Let's call this a… plugget !

If your theme is not Widget enabled, use it as a plugin : edit a few things from the file itself and insert <? ozh_youfave() ?> anywhere in your sidebar.php (more details below)

If your theme is Widget enabled, no need to even edit a file, everything is done via the Widget admin menu. The cool thing is that the admin menu of this plugget is pretty neat in my opinion. For instance, you can modify the way you want your faves to be displayed, and guess what ? Live preview. Yeah baby. Have a look at this demo.

Me Wants Plugget !

  • Get the file : wordpress-youtube-favorites.zip
  • Unzip it in wp-content/plugins. It should create a subdirectory youfave/ and populate it with 3 files
  • Activate the plugget from the Plugins admin page


Either by manually editing the plugin or through the widget form, you will have to edit a few settings that are mostly self explanatory, except maybe the following :

  • Your Youtube API key
    If you have a login, you have an API key (Developer ID, whatever they call it at this particular moment) already, it's a weird string like "K0olApIKay". Get it on this page
  • The template
    You can customize the way you want your favorites to be displayed. To do so, enter any HTML and any of the following "template tags" listed below with example values :

    %%id%% : kzGljuievpM
    %%title%% : A Funny Video
    %%length_seconds%% : 378
    %%length_minutes%% : 06'18''
    %%rating_avg%% : 4.24
    %%rating_count%% : 528
    %%description%% : Awesome video !
    %%upload_time%% : 1142348228
    %%upload_time_yours%% : 3/14/2006 2:57 pm
    %%comment_count%% : 199
    %%tags%% : funny humor wordpress
    %%url%% : http://www.youtube.com/?v=kzGljuievpM
    %%thumbnail_url%% : http://static17.youtube.com/vi/kzGljuievpM/2.jpg
    %%view_count%% : 2157555
    %%view_count_pretty%% : 2,157,555

    The cool thing is that if you configure the plugin via the Widget form, remember there is a real time preview. How suparneat is that.


If you like this plugin, I'll appreciate mucho muchly that you post a link to it in your blog, so that any of your readers that would like it too could get their hands on it. If you absolutely love this plugin above all and if by some extraordinary coincidence you feel one dollar too rich, feel free to give the Paypal "Help Me Take My Wife To A Nice Restaurant" button the bad click frenzy it deserves !

Shorter URL

Want to share or tweet this page? Please use this short URL: http://ozh.in/kv


This page "WordPress Plugin : Your Youtube Favorite Videos" was posted on 20/04/2006 at 11:15 pm

112 Blablas

  1. Chris says:

    I'm running WordPress 2.0, using the default theme, and upon activating and then using this as a widget, the index page loads as a blank page.

    I'm not running my homepage from within /wordpress – it's the directory above it.

    Possible path issue?

  2. Amanda says:

    When I try to activate the plugin it says

    Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/neverl2/public_html/kickass/wp-content/plugins/widgets/wp_ozh_youfave.php on line 377

    I have made sure there are no extra spaces before or after the files. I am trying to use it has a widget.

  3. Shaw says:

    It's not working :(

  4. Ozh says:

    To all » I've just re-uploaded the zip. There was maybe an encoding problem with the files that could be the reason of your problem (I'm not sure since this very file works fine here and on my test blogs)

  5. Darryl says:

    It works now. Thank you!

  6. Shaw says:

    Still nothing – but thanks though.

  7. naabster says:

    works not for me.. but would be a great widget!

  8. Danno says:

    Doesnt work for me either. The title appears but no videos

  9. Ozh says:

    Danno » then you probably screwed something up somewhere…

  10. Klaus says:

    I downloaded and installed your plug-in, but I think I made some mistakes. Please have a short look on my page.
    Second I changed the following:

    [garbage stripped]



  11. Ozh says:

    Klaus » you didn't understand how this works. You're not supposed to replace tags with some values. Just install the plugin and don't modify anything, it'll work. Or you really did not understand what it's for.

  12. Julian says:

    awsome plugin dude. congrats

  13. Julian says:

    Cool plugin man, but only the vids appear, no description or anything. I haven't modified the default template there, and when I preview within the config, it seams to work. Hate to complain, but…any help?

  14. Brian Hickey says:


    I have activated your youtube faves plugin in my blog and am widget enabled but every time I do I get the "my favorites" but no actual video. Either I'm stupid (which is entirely possible) or I've got something configured wrong.

  15. Daiko says:

    Hi Ozh!

    I have developed a Widget called Daiko's Video Widget. I was wondering if you could by any chance provide a function that would return the favourites as an array with the format:
    [YouTubeID]@[Title][linebrake] as described in my widget at http://www.daikos.net ?
    Then I could check if the function exist and integrate the videos your widget provides in the list of videos.
    It could be conditional of installation of your widget and mutually benefit our widgets!
    What do you think?

  16. Daiko says:

    sorry the e-mail was wrong in the previous post…

  17. Christian says:

    Hello, I am very interesting is seeing this widget in action. Can someone please post a URL so I can see what it looks like in action.

    I have a blog that I post video's on all the time from youtube so it sounds like this would definitely save me time. But can you still post copy/description with the video?

    Much thanks in advance for any answers to my questions!


  18. Darryl says:

    I love this YouTube plugin. I use it all the time.

  19. Trey says:

    I was able to activate the plugin. The title "My Youtube Favorites" appears but no videos are showing on my blog. I added in the api code, login username, etc. What am I doing wrong?

  20. Julie says:

    Ozh!! Thanks for this amazing plugin!!!! It works beautifully in my sidebar!!! I love it!!! Thank you SO much!!!

  21. Albert says:

    Thanks for the work! I also have problems with getting the videos to display. The rest is in my sidebar.( or my girlfriends for that matter) I see some other bloggers having the same problem. Maybe we make a common mistake. The 'API' I used is the 'Developer ID'. I guess it's correct. Some help please.

  22. David says:

    I'm not seeing any thumbs or video links either. I see the heading for the widget (WP 2.0.4) and didn't recieve any other error message. Did I screw something up?

    Thanks for your work and help!

  23. Julie says:

    Hi Ozh!!

    I have wordpress (2.0.4) and I'm not seeing my videos anymore and I put the function: in my sidebar, but my videos or thumbnails of the videos are not showing up anymore. :( When I had that function in with 2.0.3 it was working perfectly, so I don't know what happend. :(

  24. rodney says:

    This looks like a very nice way to bake in you tube videos but i am not getting anything to display in my blog. It is a new install of the latest version of wordpress. I have modified the youtube user id and developer code and uploaded it but nothing is displaying in the sidebar at all. do i need to add some code to the sidebar? the site template is not widget enabled. help plase! thanks


  25. cian says:

    I'm having a similar problem – latest wordpress. Initally got conflicts as I've got a xmlparser plugin already. Modified the xmlparser in your plugin and also pointed to the existing plugin. Both times the error went but not showing any results. Really keen to use this.


  26. tom says:

    Running the latest WordPress, and I'm getting Failure to Fetch URL messages. I cannot figure out how to fix this.

  27. Protheo says:

    Having the same problem with videos. The title is showing but no the videos and have installed via widget.
    Any help?

  28. Dean says:

    If you\'re having a problem, all you need to do is go into wp_ozh_youfave.php and edit your info – username, API/developer key, etc – then save it and upload it to your site. Now your widget's good to go.

    To see it in action, check out http://deanish.com.

  29. tuna says:

    Seem the API and User parameters doesn't work with widget setting. Simply fix by open
    wp_ozh_youfave.php in wp-content\plugins\youfave
    and insert your API and User in php file (line:18 and 22)

    Anyway, Thanks for widget :)

  30. […] WordPress Favourite YouTube Videos – WordPress plugin / widget to display, in a very configurable manner, your latest favorite videos from Youtube. […]

  31. […] WordPress Favourite YouTube Videos – WordPress plugin to show your favorite videos from Youtube. […]

  32. […] WordPress Favourite YouTube Videos – WordPress plugin / widget para exhibir, en una manera muy configurable, tus últimos videos favoritos desde Youtube. […]

  33. mersenne says:

    hi, it's definitely a lovely plugin, I've installed it with no problems, although i'm not using widgets. i've got one problem though, i couldnt' change the width of the thumbnails from 77, i edited the plugin and changed the width to some other thing but it seems to be fixed at 77, i tried to find if the main css is affecting it but it doesn't seem to . you can check it out at my website, the source explicitly states width=77 although i've changed it.. any help ?

  34. mersenne says:

    and one more thing, it should be possible to add this to a page and publish it on a seperate page right? i tried to create a new page, but there was no output need help for that as well please ;)

  35. Lisa Lee says:

    Sadly, it doesnt work. I followed the instructions, did everything I'm supposed to, and NOTHING shows up. I am using ver 2.04 and using this as a plug-in.

  36. tuber says:

    you can add promote your YouTube videos on http://www.youtubeclips.org for quick search YouTube your clips

  37. john says:

    I have seen this widget work on other people's sites but for some reason not on mine. I am getting the following error. The ? marks are site specific designation so I took it out at this time. I tried inputting the values in the PHP file but I still get the same error. I also don't see a preview of the guitar guy in the widget menu. I would appreciate any and all help.

    Fatal error: Cannot redeclare class xmlparser in /home/content/?/?/?/?????????????/html/wp-content/plugins/youfave/xmlparser.php on line 7

    Thanks for the widget

  38. anja says:

    is there actually a way to have the actual video in the sidebar instead of just a thumbnail of it? in a minimized version of course…

    thanks for any help on this…

  39. […] Download YouTube Favorite Videos […]

  40. Rhett says:

    Have installed this plugin and it works great as is.

    I'm looking to extend functionality and was wanting to replace ($ozh_youfave['url'] = sprintf('http://www.youtube.com/api2_rest?method=youtube.users.list_favorite_videos&dev_id=%s&user=%s',$ozh_youfave['api'],$ozh_youfave['user']);
    with something that will source a playlist via youtube rather than the favorites. I couldn't find anything on the youtube API section. Maybe you might know?

  41. […] Friday, 22 December 2006 at 8:24 am. Filed under Journal. RSS 2.0 feed for this post. | TrackBack URI |   ∅comments […]

  42. […] WordPress Favourite YouTube Videos – WordPress plugin / widget to display, in a very configurable manner, your latest favorite videos from Youtube. […]

  43. niko says:

    my java script is turned off probbably because i can't watch video on you tube any more . how do you turn it on?

  44. […] Your Youtube Favorite Videos This entry is filed under Computing. You can follow any responses to this entry through the RSS 2.0 feed. Both comments and pings are currently closed. 4 Responses to "Youtube Favorites" 1 Jane says: May 17th, 2006 at 4:44 pm My favorite is the Mistaken Identity. Look on NPR's site and put in "apple computer" in search box. Then look for npr's report on this and your'll pee your pants!!!! […]

  45. francesco says:

    what is "Your Youtube API key"?
    i only have "developer ID" on my dev profile on youtube!

  46. and says:

    This plug in does work with the latest WP (2.1.3).
    Installation is a bit hit and miss however.

    You need to configue the widget and also the plug in "wp_ozh_youfave.php"
    Put your YT login name and the dev number into both configs and you should see it working.

    Thumbnail size is adjusted through the widget interface, the plug in had no effect for me.

    Basically duplicate your settings in both areas and it should work.

  47. mattybinks says:

    Hi. First, thank you for writing this plugin. I have one question. I'm trying to figure out how to use the plugin template tags by simply displaying a video's name beneath the video thumbnail and I can't figure it out. Can you please post a short sample of how to utilize the template tags? Thanks! Matt

  48. […] op deze pagina, maar die bleek het niet te zijn. Blijven zoeken… en toen kwam ik via deze op deze, maar die bleek het ook niet te zijn. In de broncode van pdw zijn pagina zag ik dan dingen als […]

  49. Elena says:

    Awesome, thank you for this. Took a bit to get it to work because I skipped over the part that said you have to go into the php file and change the settings, too, but it's all good now! Great work!