The YouTube Plugin allows you to search YouTube, select a video from the results and add it to your post. You don’t need to have a YouTube account. You don’t need to edit the b2evolution Html Validator. You don’t even need to go to YouTube.com. It’s all done from inside your b2evolution backoffice.
YouTube Plugin 2.3 (for b2evolution 2.x)
YouTube Plugin 0.9.5 (For b2evolution 1.x)
Requires b2evolution 1.8 or higher
This plugin is installed in the standard way.
Using the plugin is simple.
If you know the id of your video and don’t want to search for it in the toolbar (or can’t find it that way for some reason), you can just add [youtube]THE_ID[/youtube] to your post and the renderer will still work.
Although the video search only supports YouTube, you can use this plugin to display videos from other sites, too. Click on the "Other sites" link to get buttons for adding the clips. Click the button for your service, then paste in the id for the clip. You can usually find the id in the url for the video, or in the embed code that the video site provides.
The supported sites are Blip.tv, Current.tv, Daily Motion, Google Video, iFilm, Jumpcut, Revver, vSocial, metacafe and Break.com
Thumbnails per page:
Choose the number of results per page you want to display. The default is 3, which should fit on one row for most monitor resolutions. If you run at a higher resolution or want multiple rows, you can raise this number.
The YouTube plugin’s source is hosted in the Plugins Repository at: http://svn.sourceforge.net/viewcvs.cgi/evocms-plugins/youtube_plugin/.
This plugin requires b2evolution 1.8 or later.
This plugin was made for b2evoltution by Danny Ferguson
Note from Danny: Thanks to Gazugafan who discovered this bug and provided the fix. I’ve applied it to the plugin and made a new release. I’ll leave this section here for a week or two in case anyone has questions about the bug.
I noticed that if you search for a youtube video and include a space character, the search doesn’t work at all. I fixed this by doing the following in youtube.js…
line 14 change to (notice the urlencode):
after line 28, add a new function as follows:
It’s not tested very thoroughly, but it seems to work fine for me. Hope it helps!