YouTube SimpleGallery – new and improved!
- YouTube SimpleGallery and Vimeo SimpleGallery have merged, i.e. they now have the same codebase. Old shortcodes still functional.
- NEW FEATURE: It is now possible to combine video services, i.e. you can add links from YouTube and Vimeo in the same gallery.
- NEW FEATURE: Automatically fetch titles from video service.
- NEW FEATURE: User-defined attributes in shortcode overrides default settings:
thumbwidth=yallows for galleries with different thumb sizes, etc.
- NEW SHORTCODE:
[youtubeuserfeed user=username service=youtube]– outputs a gallery from a user’s video feed – works with both YouTube (service=youtube) and Vimeo (service=vimeo).
Make sure you go through the Options for the plugin, and set defaults to your preference.
You can now combine links from YouTube and Vimeo in the same gallery.
To embed a gallery in a Post use the following code:
[youtubegallery] http://www.youtube.com/watch?v=cRdxXPV9GNQ http://vimeo.com/13470805 http://www.youtube.com/watch?v=jJK-G9-dLzw http://www.youtube.com/watch?v=S4aqM_wu6Ns http://vimeo.com/68180971 [/youtubegallery]
If you want to add titles to the videos, add it before the link and separate with | (pipe), like this:
[youtubegallery] Avatar Trailer HD|http://www.youtube.com/watch?v=cRdxXPV9GNQ Eyes Close|http://vimeo.com/13470805 The Fast Show: Unlucky Alf|http://www.youtube.com/watch?v=jJK-G9-dLzw Jožin z bažin|http://www.youtube.com/watch?v=S4aqM_wu6Ns Mirage|http://vimeo.com/68180971 [/youtubegallery]
NOTE: If titles are added before videos, these will override titles fetched automatically from services.
To set up a gallery that subscribes to a user’s feed, use the following shortcode:
[youtubeuserfeed user=username service=youtube]
Note that both
service are required for the feed to work. Service is either
Optional attributes are
maxitems=x where x is the number of items to fetch:
[youtubeuserfeed user=username service=youtube maxitems=4]
Overrides are a way of suppressing the default settings of the plugin, with attributes of your own.
Override columns with
cols=x, where x is the number of thumbs per row:
Override thumbnail width with
thumbwidht=x, where x is a pixel value:
Fetch titles from service with
autotitles=false to not fetch):
And, of course, you can combine them:
[youtubegallery cols=8 thumbwidth=100 autotitles=false]
These are also applicable for the
Add a «YouTube SimpleGallery» widget to your sidebar(s), add links with linebreaks in the Links-area. You can add titles in the same way as for Posts.
Widgets have their own fields to define columns and thumbnail width.
You cannot use shortcodes in Widgets.
Supported Video Services
Note that it is possible to combine videos from both services in galleries.