YouTube SimpleGallery

Download
Installation
- Install from Plugins in WP Dashboard
OR
- Unzip the archive
- Upload the folder “youtube-simplegallery” to “/wp-content/plugins/”
- Activate the Plugin in the WordPress Dashboard
THEN
- Download and install either Shadowbox JS, Fancybox or Thickbox if you want to show videos in a box on your site.
- Go to the Settings Page (Settings > YouTube SimpleGallery) and configure the plugin to suit your needs
Usage
In Posts or Pages:
To embed a gallery in a Post or a Page use the following code:
[youtubegallery]
http://www.youtube.com/watch?v=cRdxXPV9GNQ
http://www.youtube.com/watch?v=xqTac_O_wh4
http://www.youtube.com/watch?v=jJK-G9-dLzw
http://www.youtube.com/watch?v=S4aqM_wu6Ns
[/youtubegallery]
If you want to add titles/description 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
Call of Duty Modern Warfare: Deathmatch|http://www.youtube.com/watch?v=xqTac_O_wh4
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
[/youtubegallery]
In Theme files (outside The Loop):
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 like this:
<?php echo do_shortcode('[youtubegallery]
http://www.youtube.com/watch?v=HEheh1Bh44Q
http://www.youtube.com/watch?v=xqTac_O_wh4
http://www.youtube.com/watch?v=jJK-G9-dLzw
http://www.youtube.com/watch?v=S4aqM_wu6Ns
[/youtubegallery]'); ?>
Make sure to keep the linebreaks!
Columns
For both Posts & Pages and do_shortcode you can add cols=x, e.g. [youtubegallery cols=4] to override the default setting.
In Widgets:
Add a «YouTube SimpleGallery» widget to your sidebar(s), add links with linebreaks in the area entitles «Links». You do not use the [youtubegallery] and [/youtubegallery] in Widgets. You can add titles in the same way as for Posts and Pages.
Result
The gallery will be displayed like this:
Changelog
1.5
- Added option for thumbnail size
- Added option for columns w/breaking rows
- Added style option for titles
1.4.1
- Fixed compatability issue with PHP 5.3.5.
1.4
- Added support for Fancybox.
- Added option for autoplay on click.
- Changed all embedding to HTML5 compliant.
- Remodeled Settings page.
1.3
- Fixes broken thumbs.
- Fixes broken Thickbox.
- Added HD option.
- Minor bug fixes.
1.2
- Fixes bug with broken thumbs and videos when adding titles.
1.1
- Added option to open links in new window/tab when going directly to YouTube.com
1.0
- 1st official release. Option for Shadowbox JS added. Bugfixes: Fixed broken thumbnails. Fixed URIs with special characters.
0.4.1 BETA
- Minor bugfix.
0.4 BETA
- Fixed issues with WP’s auto embedding of YouTube-URIs, introduced in WP 2.9.
0.3.1 BETA
- Minor bugfix.
0.3 BETA
- Fixed errors when showing several galleries to one Page, or when showing Home or Archives with galleries in multiple Posts.
0.2 BETA
- Option to include titles/description added
0.1 BETA
- First launch







Hi there,
It seems as though this plugin needs updating since the latest version of wordpress was released. All I get on my site is grey icons for the video links.
Hope you get it fixed soon,
D
still got the old pb with this plugin
the plugin shows right on all the browsers but in the explorer
the tumbnails will not resize
so pls can u fix that
Hi,
I installed your plugin on my site to show Youtube trailers and the trailers work fine. But for some reason it adds 2 extra gray video icons, one before my first trailer and another after my last trailer. Do you know why it is doing that?I even tried the default youtubegallery cols=3 code and the extra videos still show up.
You sir made a great pluggin, but reacently i faced issues :/
OK, now I’m new to all of this WP stuff, but I’m slowly learning as I go.
I have installed & activated the youtubegallery plugin, along with shadowbox-js. I have linked the two together.
When I make a new post, I get the grey “video missing” thumbnail which is tall and skinny rather than square. When I hover my mouse over the link it gives me “http://www.youtube.com/embed/%3Ciframe%20width=” and upon clicking it, tries to load the page, but obviously that link is bad.
I even reinstalled the plugin from scratch, re-linked it to Shadowbox and used the default video links supplied in the readme:
[youtubegallery]
http://www.youtube.com/watch?v=cRdxXPV9GNQ
http://www.youtube.com/watch?v=xqTac_O_wh4
http://www.youtube.com/watch?v=jJK-G9-dLzw
http://www.youtube.com/watch?v=S4aqM_wu6Ns
[/youtubegallery]
I’ve got to be missing something somewhere, but I’m totally stumped. Any help would greatly be appreciated.
http://wordpress.org/extend/plugins/youtube-simplegallery/
I’m having the same problem, cept I get a bunch of default youtube thumbnails and broken links as described above.
Grrr. I simply can’t figure this out and I’ve tried all three types of boxes. I can get the gray boxes on my screen, but when I click I get an error. I’m attempting to use this in a widget on my homepage. Could you, perhaps give us an example of how exactly your text looks for the referenced examples inside a widget box? Perhaps I’m doing the line breaks incorrectly or perhaps I’m supposed to have <> in there somewhere. The instructions aren’t clear to me. Thanks.
When I use two galleries on the same page, I get a minor problem. The first gallery has only one video and it’s looks correct. The second has 4 videos (with four columns) and it is displayed as if it has 5. The id’s for the videos seem off. The first one is labeled 1 and the second is 2-5. When it gets to #5, it wraps it to the next line.
–Jeff
It appears your plug-in no longer works with fancybox (which is my preferred lightbox). Can you look into it please. I’ve tried on several websites and fresh installs lately and none are working. I have either used thickbox or another solution – neither of which are preferable as I like the way this one is put together and styled.
Thanks.
Great plugin but am having an issue. I cannot seem to change the videos that I want to display. When I enter the new url’s the ol video’s are still present but not the new one’s. Any help would be much appreciated. thanks.
There is some kind of bug in which when I all, for example 3 galleries, there’s a problem with the last gallery’s comlumn, it adds a when it shouldn’t.
Any idea on how to fix that?
Useful bug fix for multiple galleries:
http://wordpress.org/support/topic/plugin-youtube-simplegallery-sidebar-widget-wont-change-video
Hi,
I think that this plugin is great first of all because of simplicity. One functionality I would like to have is to have option for different galleries… For exampl, I would like to have an option to choose different thumbnail sizes for different pages or maybe to put title above video…
Thanks.
I have youtube simple gallery installed and have now installed fancybox for WP however he Simple Gallery plugin says Fancybox 4 WP is not installed. I have deactivated every plug in I can find and still it wont recognise that Fancybox 4 Wp is installed. I need some help please…..
At this moment there seems to be a problem with IE8. When I click on a thumbnail it opens fine in a lightbox and the video is played.
When I click on the “close” button or next to the video the video is closed but the overlay switches to black without transparency.
In other words: In IE8 clicking on the clode button results in a black screen.
I though it was a specific problem on my wp site, but when I click on the youtube tumbnail in this post (http://wpwizard.net/plugins/youtube-simplegallery/) I have the same problem.
Works fine in other browsers.
I recently changed from using Shadowbox JS to Fancybox. Now the plugin settings page warns that Fancybox is not installed or activated, however, it is installed and activated. I can’t seem to get the plugin to recognize Fancybox. Instead it just reacts as if I’ve selected “none” from the player to use. Any ideas?
Same problem as Milleniumfly
Does anybody know how I can put the javascript from Simple Youtube Gallery in the DOM to the footer?
Hi,
Great plugin, this was the only one of many that I tried that a) worked, b) came close to what we were after.
I have a couple of notes though that may be of use to others. My issues may not affect others (our site is a bit of a mess and there are definite jquery conflicts on our end). Also note some of my fixes suggested below may break the plugin for other users, so you know, use with caution.
IE7
For some reason IE7 was displaying a blank thumbnail sized block before the first video. This was resolved by shifting the gallery_divider div one place to the left. So in youtube_simplegallery.php change line 394 to the following:
$showgallery = (”.”\n”);
This puts the youtube_gallery_divider div before the actual gallery div and fixes the problem without any (apparent) harm.
Illegal string offset ‘cols’
For some reason after first deploying we were getting the following error just before the thumbnails:
Warning: Illegal string offset ‘cols’ in /home/cihe/webapps/public_html/system/wp-content/plugins/youtube-simplegallery/youtube_simplegallery.php on line 388
My fix here was quite a bit dirtier and I will be honest I haven’t looked into the code to figure out what this does exactly but simply commenting out the line (388) with two //s does the trick, again without seemingly affecting the plugin. So the line becomes:
//if($atts['cols']) $cols = $atts['cols'];
This only happened on our live server and not the testing server, may be a clue there… Note that commenting out this code may break the plugin.
Blank captions
Finally the only other thing to note was to ensure there was no indentation in the shortcode when using in a template. If the shortcode (and in particular the list of videos) is indented with the code around it hovering over a video in IE7 or Chrome (not FF or IE9) will give a blank, or partly blank caption.
Hope that is of help to someone, and again thanks for a great plugin!
C