WP MyTube is the WordPress plugin implementation for YouTube MooTools player embed with attached playlist. Simply put, this plugin will allow you to easily insert YouTube videos into your WordPress blog posts based on username or video id only. The attached playlist will display the user videos giving you the possibility to add several videos and only one player in your blog posts. This is very useful, for example, if you are a publisher that wants to display his youtube videos into a blog post.
Videos are added to your posts when you either add them or on edit. No special other settings for it except the stylesheet if you want to change the looks. To add videos to you blog posts, when you add/edit a post you’ll notice a new “add media” icon in shape of a tv. Simply click it, fill in the necessary information and the plugin will add the custom code to your pages. Hit save and that’s it.
If you want to add more than one player into a single post, well, you can do that. The plugin allows any number of players to be displayed in a single post without problems.
Further more, you can style the player to have a default look and if you want a second player to have a different look, you can add custom CSS class to it by passing the class name when you insert a new player.
Simply unzip the plugin archive, copy wp_mytube folder into your plugins directory from your WordPress blog, activate the plugin and you’re good to go. No other special settings required.
Styling the player
Please remember that you’ll need to keep the classes from stylesheet, meaning you’re not suppose to change their names. You can style the base player in any way you want to. To style a player in a custom way, use a different css class and set the player and playlist css as descendants from that class. You can find a custom styled player at the bottom of the plugin stylesheet.
Another thing to take into account is that the Youtube video player will take the same width and height as div element having as class .MT_youtube_player
You can add videos to your blog posts by either specifying a valid YouTube username or by passing video ids. If you choose to pass it video ids, they must be entered separated by | (ie: someId|otherId|thirdId ). If you enter both username and video ids, only username videos will be displayed, never both. Basically, it’s either one or the other.
Except for username and video ids you can set the number of videos to be retrieved, what to display when page loads ( player or playlist ), retrieve only embeddable videos, some text messages and the custom css class if you want the player to have different styling.
If you are using prototype based scripts into your pages, there’s a high chance that either the MooTools script powering the plugin won’t work or your protoype scripts will start outputting errors and stop working. MooTools and prototype don’t belong together.
If you’re using jQuery based scripts in your pages and the plugin doesn’t work, try using jQuery.noConflict() but beware that this might lead to errors for your existing jQuery scripts that don’t support it.
If you’re using MooTools scripts and have trouble with the plugin, first of all make sure the installed scripts don’t use MooTools 1.1. The script powering the plugin is developed with MooTools 1.2.
January 15′th 2010
- possibility to add videos from YouTube playlist ( will be overridden if user is set and will override any video ids you set )
Here’s an example with videos retrieved from GoogleDevelopers.