I’ve received many emails complaining that the plugin does not recognize YouTube videos. Because of lack of time, I delayed the update until now.

I just released an update to the plugin which should solve most of the issues that I was contacted about.

Go ahead and download the new version:
http://wordpress.org/extend/plugins/youtube-thumbnailer/

Search terms:

Related posts

39 Responses to YouTube Thumbnailer Plugin Should Now Actually Work

  • sean brennan says:

    Do you know of a related posts (with thumbnails) plug-in that will use the thumbnails that your Youtube Thumbnailer creates? Currently using Thumblated Related Post, but just get blank thumb for posts with youtube embedded.

  • Austin says:

    Great plugin – works a treat for my older posts.

    Any way so it periodically checks for new posts and add a custom field for them if a video found?

    Cheers,
    Austin.

  • Oren Yomtov says:

    @Austin

    It does that by default :)

    Check the settings page.

  • Oren Yomtov says:

    @sean

    You can change the name of the custom field the plugin uses.

  • sean brennan says:

    I’m not sure what I should change the name of the custom field to… or how that would help the youtube thumbnails to show up in the related posts thumbnails. Could you elaborate?

    related post plugin I’m CURRENTLY using is Thumblated Related Post (http://www.devilslab.com/wp-thumblated-related-post)

    it doesn’t have many settings or ask for a custom field name. It uses first image in the post. I thought you might know of another plugin that would work better in conjunction with your plugin?

  • sean brennan says:

    one more thing… I know there is some modification I’m supposed to make to theme file – functions.php to implement the new thumbnail features added in wp 2.9.1, but I have yet to figure out what exactly I’m supposed to do for that, could that be part of the problem?

  • Oren Yomtov says:

    @sean

    Well, the plugin that you are using doesn’t support custom fields. Sorry.
    I once new a good plugin for thumbnails. I know that Brian Gardner used it for some of his themes. But I just can’t come up with the name.

    About the modification – I have never heard of that.

  • sean brennan says:

    here is the modification I was talking about… not sure if it is necessary.

    http://markjaquith.wordpress.com/2009/12/23/new-in-wordpress-2-9-post-thumbnail-images/

  • Oren Yomtov says:

    Nice, this is good news but not related to your situation.

  • sean brennan says:

    OK. If you remember the plugin PLEASE let me know. I see a few out there but one I’m using is only one I found that is up to date for wp 2.9.

    I asked on WP forum but no one ever answers me there.

  • Austin says:

    Hey Oren;

    Thanks for the reply. Can see how the settings work for posts created normally.

    I’m using a youtube autoposter plugin that seems to add posts directly into the db so they never call the api.

    The only way I can think of to get around this is to run your plugin via wp cron and get it to only check posts made in last ‘x’ hours so it executes quickly.

    Could that work do you think?

    Cheers,
    Austin.

  • Austin says:

    Does the plugin check every single post for the presence of a youtube video whenever it runs? With some sites using the youtube autoposter it’s in the 1000′s. if wp cron is used and is triggered by a site visitor then wouldn’t the plugin take a while to run thru all of the posts and therefore cause the page load to be quite slow?

  • Austin says:

    Will do. Btw – I had to add a ‘?’ to the preg match otherwise it was including f=videos (not sure if that’s a common youtube parameter)

  • Austin says:

    One of the plugins I’m using posts videos with following type URLs: http://www.youtube.com/v/tGd5pLU2-fI?f=videos

    I had to change the plugin to add a ‘?’

    if (preg_match(‘#http://www\.youtube\.com/v/([^?&"\']*)#’,$p->post_content,$match) )

    otherwise it would include ?f=videos in the thumbnail URL.

  • Perry says:

    Hi Oren,

    Yhanks for your wonderful plugin. I have a question: the option to automatically update de thumbnail when saving or updating a post doesn’t seem to be working on my wordpress 2.9 site. Any suggestion?
    I made a site for my son so he can collect youtube clips. Of course my son isn’t a admin user so i can’t let him run the plugin manually.

    Thanks in advance,
    Perry

  • I have a problem.
    How to add the word into the news?
    Thanks

  • Karen Hayes says:

    Youtube is my favortie site to visit aside from facebook. most of the time i watched movie trailers and music videos on it.

  • Mark says:

    hey i did try install it and run it and it sitll not giving any thumbnail …. i wish you show screenshot … i tho it will be like maybe 20 youtube in front page .. and then click it then it go to single page with comment

  • Metacowboy says:

    Great plugin as i start mostly with a youtube video and it nearly works for me .
    The only stuff i miss is that its only find videos that are ebeded with the Embed code from youtube . Most videos on my blog added via WP- Youtube Plugin
    Is there a way that your Plugin detects these too and place a Thumb.
    Keep on these great work
    Thanks

  • Metacowboy says:

    Thank you for your Hyper fast feedback .
    Link to the WP-Plugin
    http://www.daburna.de/dokuwiki/doku.php/instruction
    It supports more than youtube but the Syntax is the same i found your Plugin description [youtube ID]
    Not shure if there would be a simple way to extend to Veho ,Facebook Video and other Video services too
    Freindly Greets

  • HART says:

    Hi Oren. I’m trying to get this plugin to work but, can’t seem to … is it broken on WP3.0.1 ?

    I’m using this plugin http://www.wpvideotube.com/ and would like a thumbnail created when the video is created and inserted in the blog post. I’m then using the Thumbnail for Excerpts plugin to pick it up on the front page of the Thesis template. I’ve tried your plugin and ran the “Run YouTube Thumbnailer” in Tools, and although it looks like and identifies all posts with YouTubes in my database – it’s not adding any thumbnail to the post’s custom fields at all.

    Any suggestions?

    Thanks in advance / HART

    • Oren Yomtov says:

      Hey,

      I don’t know what’s causing this.
      I can help you if you give me the credentials to that WordPress installation.
      You can contact me through the contact page on this website.

      Regards,
      Oren.

  • HART says:

    Thanks Oren … I figured out what the problem was … http://callHART.com/crazy

    your plugin was actually working as it should (creating “thumbnail”) in the custom fields. But, using thesis and the thumbnail for excerpts plugin .. on the front page it doesn’t use the thumbnails from the custom fields, but rather the “post and thumbnail” designated by thesis (i believe)

    I changed the settings to name the thumbnail as “thesis_thumb” and “RUN” it again and everything started to appear as it should.

    Thanks again for this plugin :D

    HART

  • Marcus says:

    I updated the plugin to recognize the regular Youtube URL instead of the embed code, however the thumbnail field seems to also grab the line break and first word of the next paragraph after the YouTube URL. is there any way to stop it from grabbing those two things and adding them to the URL.

    YouTube Url: http://www.youtube.com/watch?v=r4iPsgforRo

    It’s putting in the field:

    http://i2.ytimg.com/vi/r4iPsgforRo

    Karen/default.jpg

    “Karen” is the first word of the next paragraph.

    Any help is appreciated.

    Thanks!

  • Marcus says:

    OK figured out the solution to my problem. If you plan to just add the YouTube URL, and then some text below it in the post area, change this line of code in the plugin:

    if (preg_match('#http://www\.youtube\.com/v/([^&"\'? ]*)#',$p->post_content,$match) ) {
    $img="http://i2.ytimg.com/vi/{$match[1]}/default.jpg";

    to this:

    if (preg_match('#http://www\.youtube\.com/watch\?v\=([^&"\'?\r ]*)#',$p->post_content,$match) ) {
    $img="http://i2.ytimg.com/vi/{$match[1]}/default.jpg";

    This line exists twice, so make sure to swap both.

  • HART says:

    Hi again Oren.

    With reference to my above comment … where it was normally “thumbnail” setting had to be changed to “thesis_thumb” for a site using Thesis … is there a work around to make this work with a Genesis framework theme?

    I’m trying to get it to work but, there is no custom field in its template/framework as it’s actually using the “Featured Image” function of the new wordpress > 2.9 instead of calling custom fields to display thumbnails now.

    Any help would be helpful. I’m referring to http://battlingforhealth.com/community/category/community-blog/ which is a category view of a genesis framework template for Buddypress … the first image shows a thumbnail of images uploaded in a post, but not subsequent images for ones generated by the plugin.

    Thanks // HART

  • nyclivin says:

    hi i’ve downloaded this program but i dont know really know anything about php. i am computer saavy and i can figure things out when need be. at this time im lost. once the program is installed how do i get to actually work. in what file do i place what code and exactly where?

  • Jesse says:

    This isnt working for me. I am using a plugin which requires the URL to be placed in a post in a certain format.

    [youtube]http://www.youtube.com/watch?v=xfOkGadN15c[/youtube]

    I cant figure out REGEX to save my life. Do you know the regex I should be suing to capture that.

    Thank You,
    Jesse

  • Jesse says:

    OK, I figured out my problem I had to change teh sql query to look for a slightly different youtube url.

    I changed this:
    %http://www.youtube.com/v/%

    to this:
    %http://www.youtube.com%

    I also had to modify the regex suggested by Marcus from:
    #http://www\.youtube\.com/watch\?v\=([^&"\'?\r ]*)#

    to:
    #http://www\.youtube\.com/watch\?v\=([^&"\'?\r ]*)\[\/youtube]#

    Thanks for the great plugin, Jesse

  • Roger says:

    Plug in worked great, thanks!

  • Steven Malman - Chicago Personal Injury Lawyer says:

    This was exactly what I was looking for. I just added a ton of videos to my youtube page. Thanks! Steven J. Malman

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Subscribe without commenting