Smart Youtube

Vladimir on December 13th, 2007

Smart Youtube is a Wordpress Youtube Plugin that allows you to easily insert Youtube videos in your post, comments and in RSS feed. It is small, fast and does not depend on any external scripts.

The main purpose of the plugin is to correctly embed youtube videos into your blog post. The plugin is designed to be small and fast and not use any external resources. Unlike other plugins the link to the video will also appear in your rss feed. And the best thing is, Smart Youtube will also display a preview screenshot of the video in your RSS feed.

You can see the plugin in action in my RSS feed on the picture.

Smart youtube wordpress plugin in rss feed

Download

Installation & Usage

  1. Upload the whole plugin folder to your /wp-content/plugins/ folder.
  2. Go to the Plugins page and activate the plugin.
  3. Use the Options page to change RSS feed options
  4. When you want to display Youtube video in your post, paste the video link with httpv:// (notice the ‘v’)

Example: httpv://www.youtube.com/watch?v=00000000
0000000 part is your video REF#

The video will be automatically embedded to your post in the proper way.

Additionally, you can set how do you want the video to be displayed in your RSS feed. Smart Youtube can show the preview image of the video (automatically grabbed from Youtube), the link to the video, or both. I recommend enabling only the preview image.

Changelog

Changes v1.4:
All youtube servers work now (like uk.youtube.com, es.youtube.com).

Changes v1.3:
The plugin now allows embedding video in comments too. Syntax is the same.

Mar 16th, 2008 v1.2

* Fixed xHTML validation, added video width and height options

Dec 13th, 2007 v1.0
* Initial release

Visit my other interesting Wordpress Plugins.

I can also offer WordPress plugin development services or any other type of WordPress work you may need.

94 Responses to “Smart Youtube”

Pages: [7] 6 5 4 3 2 1 » Show All

  1. I love this you tube plugin…thanks for your effort.

  2. I’m just thinking, perhaps it would be easier for the users if we could have the “V” put in automatically? IE: if there was a button on the editor to add a youtube video which bought up a dialog box which you can then paste the youtube code in, and when you press ok it will put it in your post, but with the “V” ..?

  3. A few of our videos that we have put on our blog using smart you-tube
    no longer work, the image is there but when you press play you get
    the message “We’re sorry that video is no longer available.”
    I’ve upgraded smart you-tube from 1.22 to 1.4, but that hasn’t helped the
    videos to work. I also have trouble pasting the link from you-tube to the ‘write
    post’ window, sometimes it works sometimes it doesn’t, so then I
    type it in directly with the ‘v’ included in httpv……..so what could
    be the problem where some videos work on blog and others do not?

    Thank you for your assistance.

  4. @ Tanya

    I also seem to having a problem in IE6 and 7 (XP on Parallels on an OSX 10.5 host). I’m just getting a blank space where the video should be (http://spacerdotgif.com). Strangely enough when I look at this site I also see blank spaces in the comments where videos have been embedded. I believe I am using the latest version of the plugin at 1.4. Everything is fine in Firefox and Safari.

    Not sure yet whether this is something strange with my set up, but it would seem I am not the only one having it.

  5. Good day, I´ve used this Plugin in my blog http://www.blogwmp.com wordpress in portuguese in version 2.5 but I haver some problems, when I inserted the url of youtube with and then i my post apeards the video but with a word of the title with a link notfound, could you help me please

    Regards, António

  6. Roddy, I released new version today that will take care of that issue and allow Smart Youtube to play a video from any youtube site.

  7. Thanks Vladimir,

    But I want to add www and es to the coding so I don’t have to switch all the time I want to put a http://www.youtube.com or a es.youtube.com.

    Is it possible to make it more dynamic with youtube servers in the coding, maybe by adding all possible languages servers there not just http://www.

    Thanks

  8. Tanya, videos on your site work fine for me. Everything seems to be in order.

  9. Hi,
    I used your plugin but it takes ages for the video to download on my page in Firefox 2.0. There is nothing to indicate that there is a video there. So my readers might think - what video? In I.E. I get the white outline of the video and then nothing plays.

    My code I placed in the post: Mercan Dede (name of post) is:

    Can you help?

    Thanks very much if you can.

  10. Just replace es with www in your video link - the videos are always with the same name just across different youtube servers.

    Regards,
    Vladimir

  11. Can someone help me out fixing the coding so it can work with other youtube languages videos as well. for example: httpv://es.youtube.com
    as for now it only applies to http://www.youtube.com videos.

    I know the should be changed on this section:

    function yte_check($the_content) {
    if(strpos($the_content, “httpv://”)!==FALSE) {
    preg_match_all(”/httpv://(www.|)youtube.com/watch(?v=|/v/)([a-zA-Z0-9-_]{11})([^<s]*)/”, $the_content, $matches, PREG_SET_ORDER);
    foreach($matches as $match) {
    $the_content = preg_replace(”/httpv://(www.|)youtube.com/watch(?v=|/v/)([a-zA-Z0-9-_]{11})([^s<]*)/”, yte_tag($match[3]), $the_content, 1);
    }
    }
    return $the_content;
    }

    Thanks

  12. G’day Vladmir,

    Thank you for your help. Yep the problem was that I was inserting the YouTube URL address as a link.

    When I just copy and paste it into the post it works fine in all browsers.

    Cheers,
    Steve.

  13. Hi guys,

    I use Firefox 2.0 and the video works perfectly. There is no reason for it not to work. I can guess only that it is a conflict with some other plugin you use on the blog (or even some FF plugin) which I both use quite a lot of.

    If you have more details on the issue let me know adn ‘l see what I can do.

  14. Is there a fix for the video not working in Firefox browsers (only get blank space and 404 error message)? Works fine in I.E.

  15. Is it possible to get the plugin to work in user comments as well?

Pages: [7] 6 5 4 3 2 1 » Show All

Trackbacks/Pingbacks

Leave a Reply

You will be able to edit your comment after submitting.