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
Changelog: Cleaner code, pretty url support (youtube.com/v/), css (span class youtube). -Special thanks to Mike Thompson-
Changelog: Resolved conflict with Shawns great quicktime posting plugin and added html-comment around code.
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).
Change log: Added size variables and cleaned up the code a bit.
Installation
Upload to plugin directory and activate through admin-section/plugins.
Hello, It’s been some time since I commented here requesting your help. I still have problems embedding a video whose URL has two consecutive dashes. WordPress joins them in an em-dash, thus the video player won’t show in the post. Is there something I could to to prevent this?
Thank you.
GREAT WORK!! EASY AND VERY GOOD!!!!!!
hi Chigüire,
Thanks for reporting this problem.
Tested your url and you are right. The problem lies therein that wordpress converts two dashes to one long one when you type it in and/or save the post. So, the code gets stored in the database like one long dash (source)
I can think of three possible solutions right now:
1. Make wordpress stop this behaviour globally by writing/finding and installing a plugin for that.
2. write a plugin that puts code tags around the code youtube.com sends, before it gets stored in the database
3. put code tags around the youtube code manually for url’s that give problems ( <code>
[youtube=http://www.youtube.com/watch?v=p--dHQIeagE]</code>Solution 2 would be the best one I think, solution 3 is the easiest
hi Chigüire,
I found a way (hack) of implementing solution 1:
http://wordpress.org/support/topic/117862
[...] and wordpress in general. The site has been updated using a sweet plugin that allows you to add a youtube video simply by using brackets and the keyword [...]
Can you help? I put in the API key from wordpress.com but youtube tells me it’s incompatible with the wordpress standalone url.
Great plug-in! Makes video posting so much easier. Thanks….
[...] YouTube Brackets – Allows you to simply enter a URL for a YouTube video versus copying and pasting embed code. [...]
[...] YouTube Brackets [...]
[...] YouTube Brackets [...]
Great plugin thank you !! I also had the problem of youtube videos completely breaking my layout, and YouTube Brackets was the remedy.
Whoah! At last i made it! thanks thanks guys;….
[...] hosted on wordpress.com, but with standalone setups of wordpress it doesn’t work at all. With YouTube Brackets plugin, you can simply enter a URL for a YouTube video versus copying and pasting embed [...]
[...] hosted on wordpress.com, but with standalone setups of wordpress it doesn’t work at all. With YouTube Brackets plugin, you can simply enter a URL for a YouTube video versus copying and pasting embed [...]
[...] YouTube Brackets [...]
[...] YouTube Brackets – Allows you to simply enter a URL for a YouTube video versus copying and pasting embed code. [...]
[...] 不過如果你的wordpres blog是像我一樣,自己架設的server(英文稱作Self-Hosted) 就沒那麼簡單囉。因為語法會失效,變成普通的一行字. 不過有了Robert Buzin的 Youtube Brackets ,一切都很Easy。 [...]
WordPress 2.2 self hosted.
Done all of youtube set up with non blog api
Activated V3 plug-in
Insert code []
The code inside the brackets shows, and the video does not.
Youtube post says UNKNOWN ERROR.
Any ideas?
just awesome!!!
keep up the good work
[...] 52) Youtube Brackets Link [...]
The embedding works great, but when a video is being played I can’t click over to another Firefox tab. Any thoughts?
[...] 52) Youtube Brackets Link [...]
[...] 52) Youtube Brackets Link [...]
[...] having very many gadgets or plugins installed at BT, I did some googling and found this one called “YouTube Brackets”, which emulates the functionality given to wordpress.com [...]
[...] 52) Youtube Brackets Link [...]
[...] YouTube Brackets – Insert YouTube videos in post using [brackets] method. Enables YouTube blogging to standalone wordpress setups. [...]
[...] You Tube Brackets – I posted video at YouTube and went to embed it and found that WP was eating the video code. This makes life as easy as [[link]] just like on their hosted wordpress.com. [...]
[...] Robert Buzink – Journal » Blog Archive » YouTube Brackets (WordPress Plugin) (tags: wordpress youtube plugin) [...]
[...] видео в блог. Extreme Video – проигрыватель .flv файлов. YouTube Brackets – позволяет ввести адрес YouTube файла и получить embed-код [...]
[...] hosted on wordpress.com, but with standalone setups of wordpress it doesn’t work at all. With YouTube Brackets plugin, you can simply enter a URL for a YouTube video versus copying and pasting embed [...]
[...] hosted on wordpress.com, but with standalone setups of wordpress it doesn’t work at all. With YouTube Brackets plugin, you can simply enter a URL for a YouTube video versus copying and pasting embed [...]
[...] my Picasa public gallery. That’s pretty cool. The coolest WordPress Plugin, though, is the YouTube Brackets Plugin. To those used to Blogger, the idea of it being difficult to embed YouTube videos in a posting is [...]
[...] Vale, lo tengo solucionado gracias a este plugin. [...]
[...] Vale, lo tengo solucionado gracias a este plugin. [...]
Awesome! I’ve been looking for youtube support for months! It works perfectly. Thanks!
[...] 52) Youtube Brackets Link [...]
[...] 52) Youtube Brackets Link [...]
[...] 52) Youtube Brackets Link [...]
[...] 52) Youtube Brackets Link [...]
[...] [...]
[...] geht am einfachsten mit dem YouTube Brackets Plugin. Wenn man naemlich direkt den YouTube-Code kopiert, gibt es im Zusammenhang mit dem [...]
Thanks..
[…] Açıklamalı 230 WordPress eklentisi (Agu. 15, 2007) (WordPress plugin list),[…]
[...] YouTube Brackets – Allows you to simply enter a URL for a YouTube video versus copying and pasting embed code. [...]
[...] YouTube Brackets is a nifty plugin that enables you to easily insert YouTube videos into your posts. Last fall I collaborated with the Robert Buznik to fix version 1 of his plugin so that it would insert valid code when used in a post. His newest version 1.1 is back to being invalid as “embed” is not an allowable tag. Luckily his old version still works with the latest WordPress. [...]
Dude, this rocks. Thank you! I struggled so much to embed videos. This makes it a snap. Cheers!
[...] Não foi feito por mim, apenas alterei o codigo deste [...]
[...] YouTube Brackets – Allows you to simply enter a URL for a YouTube video versus copying and pasting embed code. [...]
[...] YouTube Brackets – Allows you to simply enter a URL for a YouTube video versus copying and pasting embed code. [...]
[...] YouTube Brackets – Allows you to simply enter a URL for a YouTube video versus copying and pasting embed code. [...]
[...] YouTube Brackets URL YouTube- . [...]