YouTube Brackets (WordPress Plugin)

Uncategorized

YouTube offers a service that sends a video you are watching to your blog. It does not send html-code to your blog, but a code like this:

[ youtube=http://youtube.com/watch?v=4yX1F_nTcfc]

This works fine for blogs hosted on wordpress.com, but with standalone setups of wordpress it doesn’t work at all.


That’s why I quickly put together a plugin that makes the bracket code work. I used the Quicktime posting plugin as a starter. Thank you, Shawn Van Every.

Usage
Setup your standalone wordpress blog at YouTube and send a video to your blog. Or just copy the url of the YouTube video you are watching and put it in your blog like this:

[ youtube=http://youtube.com/watch?v=4yX1F_nTcfc] (without the space between bracket and y, though).

You can also set the size of the video in your post. Do something like this: [ youtube=http://www.youtube.com/watch?v=0jjgk1-ac1I 150 100] (without the space between bracket and y, though).

YouTube.com directions

1. Go to YouTube.com
2. (Create an acount and) login
3. Go to ‘My Account/Account settings/Video posting Settings’
4. Choose ‘Add a Blog/Site’.
5. Choose ‘WordPress Self-Hosted’, fill in username and password of your WP blog, fill in api URL (http://your blog’s URL/xmlrpc.php) and a random WP API key (get one here).1 and click on the ‘Add Blog’ button.
6. Watch a video at YouTube.com and choose ‘Post Video’ from the options below the video.

Download

YouTube Brackets 3.0

Changelog: Cleaner code, pretty url support (youtube.com/v/), css (span class youtube). -Special thanks to Mike Thompson-

Youtube Brackets 2.1

Changelog: Resolved conflict with Shawns great quicktime posting plugin and added html-comment around code.

YouTube Brackets 2 beta

Change log: Code now validates as XHTML 1.0 Transitional (thanks to Karen). Is only tested with Firefox and Internet Explorer though, but most probably works with all browsers. If you want to be sure, use version 1 (below).

YouTube Brackets 1

Change log: Added size variables and cleaned up the code a bit.

YouTube Brackets 1 beta

Installation
Upload to plugin directory and activate through admin-section/plugins.

  1. You have to register at wordpress.com in order to to get an api-key. You can register without creating a blog. It’s stupid YouTube asks for an API key with Self-Hosted WordPress blogs. They don’t need it at all. With Flickr you don’t have to provide an API key.[back]

Tags: , , , , ,

237 Comments

  1. woli says:

    Nice, I was looking for that……..

  2. [...] 2. youtube brackets by Robert Buzink [...]

  3. [...] YouTube Brackets WordPress Plugin YouTube offers a service that sends a video you are watching to your blog. It does not send html-code to your blog, but a code like this: This works fine for blogs hosted on wordpress.com, but with standalone setups of wordpress it doesn’t work at all. That’s why the author of this plugin put this one together to make the bracket code work. I used the Quicktime posting plugin as a starter. Thank you, Shawn Van Every. [...]

  4. [...] sites just go their automatic ways. I did learn how to embed youtube videos, and I used this plugin to make it easier. But now I have a lovely video of “how to make a pumpkin [...]

  5. [...] видео в блог. Extreme Video – проигрыватель .flv файлов. YouTube Brackets – позволяет ввести адрес YouTube файла и получить embed-код [...]

  6. [...] видео в блог. Extreme Video – проигрыватель .flv файлов. YouTube Brackets – позволяет ввести адрес YouTube файла и получить embed-код [...]

  7. [...] I also installed this plugin: YouTube Brackets 3.0 [...]

  8. snippets says:

    thanks so much! finally … :)

  9. [...] Youtube Brackets – Insert YouTube videos in post using [brackets] method. Enables YouTube blogging to standalone wordpress setups. By Robert Buzink + Mike Thompson [...]

  10. [...] YouTube Brackets : This plugin allows you to send YouTube video’s to your standalone WordPress blog directly from YouTube.com. [...]

  11. [...] I found this post which acknowledged that the bracket format did not work for self hosted blogs and offered a plugin [...]

  12. [...] YouTube Brackets : This plugin allows you to send YouTube video’s to your standalone WordPress blog directly from YouTube.com. [...]

  13. [...] YouTube Brackets – Vous permet d’entrer simplement l’URL d’une vidéo YouTube au lieu de copier coller son code embed pour pouvoir l’afficher sur votre blog WP. [...]

  14. [...] YouTube Brackets  - Send YouTube videos to your blog directly from YouTube.com. [...]

  15. [...] видео в блог. Extreme Video – проигрыватель .flv файлов. YouTube Brackets – позволяет ввести адрес YouTube файла и получить embed-код [...]

  16. [...] And, this can be entered into the “visual” or “code” editor with no problems! Thanks guys. [...]

  17. [...] Youtube Brackets Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages. [...]

  18. [...] YouTube Brackets : This plugin allows you to send YouTube video’s to your standalone WordPress blog directly from YouTube.com. [...]

  19. [...] is an initial version 0.1 release. It is based on the YouTube Brackets plugin, tweaked for the special needs of the extensive PodShow video embed code. Currently it has [...]

  20. [...] YouTube Brackets – Allows you to simply enter a URL for a YouTube video versus copying and pasting embed code. [...]

  21. [...] Youtube Brackets v3.0 [...]

  22. Thank you! This was just what I was looking for.

  23. [...] минималистичный плагин, есть ссылка на страницу автора с описанием. Вышел в 2006 году, с тех [...]

  24. [...] plugina | Posjetite autorovu web stranicu var dd_offset_from_content = 40; var dd_top_offset_from_content = 0;Slični [...]

  25. Hello, and thanks for plugin. My videos aren’t wide enough — can I adjust the width? Thanks in advance.

Leave a Comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>