After several requests, I’ve made a few updates to Gallery Plus:
- Added (actually changed) an option to allow the gallery to the images only, without a hyperlink.
- Added an option to have the image title in the <a> tag.
- Moved the gallery style to the header.
The update is uploaded and will show up at WordPress’s leisure.
If you want exclude to actually work, you’ll need to change line 126 from
if(isset($exclude[$c]))
to
if(isset($exclude[$id]))
Marcus,
That would exclude it by the photo’s ID. The current method excludes it by number of photo in the album, e.g. “1” excludes the first photo, “3” excludes the third.
Ah, I did not realize that. Perhaps a little clarification in your readme.txt file since the norm for an exclude in WordPress is always the ID. I do like your implementation better though.
thanks! worked great to get lightbox working on the wordpress gallery.
How can I get it to use the caption from the image in wp 2.6, not the filename?
thanks for a great plugin.
Ian, do you mean for Lightbox to use the caption instead of the title? Gallery Plus currently sends the caption and title of the image as the alt and the title attributes, respectively, of the <img> tag. Depending on your version, Lightbox looks for it’s display title in various tags attributes. Thus you can either change which tag Lightbox looks in (edit lightbox.js) or you can change the contents of that tag (edit gallery-plus.php). I will consider adding an option to do this in the next update.
Hi, this plugin was displaying only a single column of images no matter what columns was set to. I don’t know if it was my theme or if it’s a wordpress 2.6.3 incompatibility. The following diff fixes it for me, just pasted in from media.php. Does anyone understand what is going on here?
john
121a122,138
>
> .gallery {
> margin: auto;
> }
> .gallery-item {
> float: left;
> margin-top: 10px;
> text-align: center;
> width: {$itemwidth}%; }
> .gallery img {
> border: 2px solid #cfcfcf;
> }
> .gallery-caption {
> margin-left: 0;
> }
>
>
You save my day. Thank you for the awesome plugin
Thanks for making this plugin, I couldnt believe they left out the option to link directly to an image in the built-in gallery shortcode. I made a really small change to allow me to select a thickbox overlay (which I like better than lightbox since it allows you to right click and view the image alone – at least in firefox). You may want to add the change so ive uploaded it http://www.mediafire.com/?sharekey=6b56e03d87eb7572d2db6fb9a8902bda
I’ve also edited my gallery shortcode to include two new attributes pic and picsize which, if pic is set, will show only the picture that has pic for its title and is formatted with only and , this is really useful for me, and I’m not sure if its something you may want to add to this plugin.
Thanks for this plugin! ๐
I have one question – there is an option “exclude” but if I want to show only one photo (something like “include”) – what shoud I do?
Any live site used Gallery Plus?
I am using gallery plus plugin, but have noticed it seems not to work with the new 2.7 WordPress
I also hacked the code to use Thickbox3 plugin instead of the lighbox plugin ๐
I do take that back, it is working properly, just need to adjust my thickbox to work ๐
Thanks for this plugin! I am outputting all images attached to a page and running them through a slideshow script, which was working fine, but couldn’t get rid of image links. This plugin did the trick. Works fine for me on WP 2.7.