Create beautiful galleries with videos from YouTube and Vimeo.
YouTube SimpleGallery is a plugin for creating video galleries with thumbnails. Now merged with the Vimeo SimpleGallery, this plugin supports both YouTube and Vimeo. You can even combine videos from both services in the same gallery. The plugin will automatically fetch both thumbnails and titles from YouTube/Vimeo.
Now also supports user feeds – a much requested feature!
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]
= Galleries =
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]
NOTE: Make sure URLs start with http. For the time being, https is not supported.
If you want to add titles to the videos, add it before the link and separate with | (pipe), like this:
[youtubegallery] Eyes Close|http://vimeo.com/13470805 Jožin z bažin|http://www.youtube.com/watch?v=S4aqM_wu6Ns [/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 user
and service
are required for the feed to work. Service is either youtube or vimeo.
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:
[youtubegallery cols=8]
Override thumbnail width with thumbwidht=x
, where x is a pixel value:
[youtubegallery thumbwidth=100]
Fetch titles from service with autotitles=fetch
(or autotitles=false
to not fetch):
[youtubegallery autotitles=fetch]
And, of course, you can combine them:
[youtubegallery cols=8 thumbwidth=100 autotitles=false]
These are also applicable for the [youtubeuserfeed]
shortcode.
Supported services are YouTube and Vimeo. Other services might be added, but a requirement is that they can deliver video streams in a HTML5-compatible format.
Note that it is possible to combine videos from both services in galleries.
Search for «YouTube SimpleGallery»
OR
Install either Shadowbox JS, Fancybox for WordPress or Thickbox if you want to show videos in a modal box on your site.
Settings let's you set width and height of embedded video, chose if Thickbox or Shadowbox should be used (note: width and height is only necessary if Thickbox or Shadowbox is active), and use included CSS.
The gallery will show on your page like this
If Thickbox or Shadowbox is active, the embedded video will show in a box on your site
Search for «YouTube SimpleGallery»
OR
Install either Shadowbox JS, Fancybox for WordPress or Thickbox if you want to show videos in a modal box on your site.
Check if your current Theme has both wp_head()
in header.php and wp_footer()
in footer.php. Both are usually required for these scripts to function properly. Also note that some plugins aren’t buddies and create conflicts with each other; try disabling the plugins for the effects you don’t use.
From version 2.0, YouTube SimpleGallery is employing Timthumb to crop/resize thumbnails. This is mostly due to YouTube and Vimeo having a different aspect ratio on their thumbnails. Timthumb may cause issues on certain webservers. If thumbnails are not showing up in your galleries, the cause might be a conflict between Timthumb and your webhost. Here are some things to try:
wp-content/plugins/youtube-simplegallery/scripts/chache/
index.html
in the cache-directory has permissions set to 666. The parent folder should not have permissions higher than 644.If you wish to add a gallery in a part of the Theme that is outside The Loop and/or not within a Widget, you can use the do_shortcode()-function.
<?php echo do_shortcode('[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]'); ?>
Make sure to keep the linebreaks!
The YouTube SimpleGallery is in constant development. A lot of features has been added since it’s birth, many of them requests, wishes and ideas from the users. If you got an idea, don’t hesitate to share it on the plugin website.
Don’t panic! The WordPress community is the best bunch of people in the world. Try posting your problem/question on the plugin website or in the WP forums. You’ll probably get help in a jiffy!