YouTube Wordpress Plugin With Technorati Tags

I’m no longer supporting this, and I’m unsure if the old YouTube API is still in place.

Hey all, I was asked to write a simple plugin that will make use of the YouTube API to generate videos based on specific post tags.

Downloads

  1. YouTube Wordpress Plugin
  2. svn export http://public.svnme.com/youtubevideos .

Usage

  1. open the .PHP file in a text editor, on the line $dev_id = "???" insert your developer ID
  2. upload the PHP file to wp-content/plugins/
  3. activate the plugin from the Dashboard, Plugins menu
  4. go to Presentation, Template Editor, Single Post and/or Main Index. Insert this
    code where you want the video to appear:
    <? youtubevideos(); ?>
  5. when you post, use the code: <!--youtube:YourTagHere--> to tell the plugin what video topic you want to show. For example, if you want a video on horses, put <!--youtube:horses--> at the end of your post.
  6. that’s it. To change the number of videos shown or to tweak the filter settings, you have to modify that within the plugin PHP file itself.
  7. Let me know of any bugs you find, or any tweaks you have made (this is a community after all :) )

Features

  1. Set how many videos to show, could be 1, could be 1,000
  2. Setup filters to block videos that contain bad keywords and keep your blog respectable
  3. Change the output template to display the videos any way you want to better incorporate it with your blog
  4. Manually add your own taggings to show videos you want.

Change Log

  • May 13 I just looked through this code and it is pretty sloppy, sorry. Use this as an example or starting point for your own plugin — or, if it still works, use it. Just a heads up (don’t judge me by that code ;) )
  • Oct 4 the new version needs to be tested – ill try to get to that today
  • Oct 4 Thanks to Mr. Nuck Chorris, the SimpleTags is now phased out, I have updated the file.
  • Oct 3 I removed the YouTube Developer ID, please use your own :)
  • Oct 3 I am going to work on this again now that I am back. If you found bugs or have ideas for it, please send me an email and I will try to include them.



Comments

  1. zblogger September 28th

    Comment Arrow

    My site is currently under construction and undergoing some major changes, but I’m trying to get a decent blog structure in place. Not sure where to put the youtube code you have noted above. What do you mean by “single post”? If you’re back from vacation I’d definitely could use some guidance. Hope you had a nice time… Thanks in advance for the info…

    S


  2. Nuck Chorris September 28th

    Comment Arrow

    DUDE YOU ROCK! I’m testing this out at [url=http://www.claycazier.com/]my site[/url] with a Cookie Monster video…

    I made one change in the version I implemented: instead of requiring Simple Tags and limiting yourself to 1 tag, I changed the PHP to look for instead of what’s between [tags][/tags]. Works better – lets you put a video wherever you want from right inside WordPress’ visual editor by just sticking in what it reads as a comment.

    Oh, and I saw WordPress decided to feature this plugin from the WordPress Dashboard… pretty cool.


  3. Nuck Chorris September 28th

    Comment Arrow

    crap, that last post hid the way I call the keyword. I pull it inside a comment like this [code][/code]. Let’s see if this works/


  4. Nuck Chorris September 28th

    Comment Arrow

    crap, it didn’t work.

    try again:

    I changed the code to look for <!–youtube:keyword–> instead of [tags][/tags]


  5. yich October 1st

    Comment Arrow

    Hi,
    I am new to this…

    I was wondering if there is a specific youtube video that I want to show, am I able to do it using this plugin?

    I am using Wordpress 2.x. I have installed the plugin above, but I am not sure if i can point to a specific video.

    Thanks.


  6. Nuck Chorris October 3rd

    Comment Arrow

    I’m sure there’s an update coming, but the way to use this plugin is this:

    1. upload the PHP file to wp-content/plugins/
    2. activate the plugin from the Dashboard, Plugins menu
    3. you must also have the SimpleTags v2 plugin installed
    4. go to Presentation, Template Editor, Single Post and/or Main Index. Insert this code where you want the video to appear:
    5. when you post, use the Simple Tags marker of [tags]anything[/tags] to tell the plugin what video topic you want to show. For example, if you want a video on horses, put [tags]horses[/tags] at the end of your post.
    6. that’s it. To change the number of videos shown, you have to modify that within the plugin PHP file itself.


  7. Nuck Chorris October 4th

    Comment Arrow

    Ok, if SimpleTags has been eliminated, this is how you use this plugin:

    1. upload the PHP file to wp-content/plugins/
    2. activate the plugin from the Dashboard, Plugins menu
    3. go to Presentation, Template Editor, Single Post and/or Main Index. Insert where you want your videos to appear.
    4. when you post, put the comment somewhere in the post. For example, if you want a video on horses, put somewhere in your post.
    5. that’s it. To change the number of videos shown, you have to modify that within the plugin PHP file itself.


  8. Steven Clift October 11th

    Comment Arrow

    Can your plug-in be used to display the most recent (not the most “relevant”) videos with a certain tag?

    See:
    http://www.dowire.org/notes/?p=295

    Steven Clift


  9. Ming October 11th

    Comment Arrow

    hi everyone, anyone.

    my website is at http://www.RisingIMStar.com.

    I’m kinda desperate to be able to insert the Youtube or Google Video onto my wordpress blog.

    I understand that this plugin is for searching for multiple content? Is there a way where I can use the embed html provided by youtube to just display a particular video?

    Any help is super duper greatly explicitly implicitly appreciated! :)

    cheers,
    TOFUmonkey


  10. Comment Arrow

    You tube is pretty east. Just follow the html instructions to insert movies in to your website.


  11. TOFUmonkey November 3rd

    Comment Arrow

    hi everyone,

    this is the ming here.
    owner of RisingIMStar

    I’ve gotten the videos to work. thanks for everything! :)

    do visit my blog and give some comments.
    even though it’s related to internet marketing.
    I do give it a light hearted approach and some fun things too.

    Cheers,
    TOFUmonkey
    RisingIMStar


  12. Desi December 17th

    Comment Arrow

    Hey Nice Plug-In
    But i am having trouble installing it..
    i did every thing said in there
    i pasted this.



    ” END OF Single Post AND MAIN INDEX TEMPLATE.

    now when posting video to my post.
    what do i have to type.
    meaning youtube code. embled code. how do i type that

    in my plug-in section i see youtube = active and everything active too .

    please help me thank you..


  13. SaveTube February 19th

    Comment Arrow

    I use http://www.savetube.com to save any youtube video. They also got tools and cool features like seeing whats the latest downloaded videos, pretty nice if you ask me :)


  14. TOFUmonkey February 22nd

    Comment Arrow

    hey, i got the video to work when i remove the rich text editor for Wordpress…
    and it’s working fine…

    i didn’t install any plugins for it. :)

    you can test this if you like… :D

    cheers,
    TOFU


  15. KralOyun April 15th


  16. chris M June 3rd

    Comment Arrow

    yeah buddy. this does this job!


  17. SNaRe September 4th

    Comment Arrow

    I tried it at wp 2.2 is there a problem? It’s not working for me


  18. muhabbet October 17th

    Comment Arrow

    yeah buddy. this does this job!


  19. maynet October 17th

    Comment Arrow

    i didn’t install any plugins for it


  20. Sachin April 9th

    Comment Arrow

    How do you get this working. I have done exactly what is mentioned. But the videos just aren’t displayed. I then tried the Youtube URL with the dev id and tag to see if I get result feed. I am getting that but nothing seems to be working on the site.

    BTW I created seperate page in the blog and paste on the page rather than the post.

    Please advice


  21. chandru April 13th

    Comment Arrow

    Hi I have used YouTube Wordpress Plugin.. I dont know why no videos shown in my site..


  22. jocuri May 27th

    Comment Arrow

    yeah buddy. this does this job


  23. jocuri May 30th

    Comment Arrow

    Keep up the good work! 10q


  24. Vic June 24th

    Comment Arrow

    Hi there,
    Know anyone which plugin to use if I want only a part of the article to be displayed? If someone want to read more there will be a “read more” link…
    On my blog right now is displayed all of article content and I don’t want this…
    I’m talking about the latest 10 articles displayed on the first page of my blog.
    I’m using Wordpress.
    Can anyone help?


  25. ucretsiz green card August 11th

    Comment Arrow

    it looks like a nice site, but it would better with multi language support, for example spanish.. but thanks..


  26. lsi September 5th

    Comment Arrow

    it would be better with other languages support, but thanks..


  27. toner September 5th

    Comment Arrow

    BTW I created seperate page in the blog and paste on the page rather than the post.


  28. ser September 20th

    Comment Arrow

    thanx for plugin


  29. Suzy October 2nd

    Comment Arrow

    Hi,great plugin.
    Thank you so much.


  30. rapidshare November 24th

    Comment Arrow

    nice plugin, i like it thnx for sharing


  31. tamerd December 8th

    Comment Arrow

    Thanks for this – great idea.


Add Yours

  • Author Avatar

    YOU


Comment Arrow



Trackbacks


About Author

Rob Hurring

Ruby, Rails, PHP, bash... oh my!