NextGEN Download Gallery

Description

Add a template to NextGEN Gallery that provides multiple-file downloads for trade/media galleries. NextGEN Gallery is one of the best gallery plugins for WordPress because it is very flexible and has a nice, simple admin. This plugin adds a new gallery template that lets you select multiple images from the gallery to be downloaded as a ZIP archive.

NB: the Photocrati version of NextGEN Gallery can impact the performance of your server, and not all of the old plugin’s functionality works. You might want to consider using NextCellent Gallery instead — it’s a fork of the original NextGEN Gallery with continued support and compatibility, without the performance impacts.

NextGEN Download Gallery is targetted at creating “Trade/Media” areas on websites, allowing journalists to easily download multiple product images. It’s apparently very popular with photographers too.

Translations

Many thanks to the generous efforts of our translators:

If you’d like to help out by translating this plugin, please sign up for an account and dig in.

Credits

This program incorporates a little code that is copyright by Photocrati Media 2012 under the GPLv2. Some PHP code was copied from NextGEN Gallery and altered, so that the nggtags shortcode could be extended as nggtags_ext and specify a gallery template.

Screenshots

  • example download gallery

Installation

  1. Install NextGEN Gallery or NextCellent Gallery, and create galleries/albums
  2. Upload this plugin to your /wp-content/plugins/ directory.
  3. Activate the plugin through the ‘Plugins’ menu in WordPress.
  4. Specify the gallery template as “download”

From a gallery shortcode

When using a shortcode to show a NextGEN gallery, you can make it a download gallery by specifying the gallery template:

[nggallery id=1 template=download]

From an album shortcode

When using a shortcode to show a NextCellent Gallery album, you can make it show download galleries by specifying the gallery template:

[nggalbum id=1 gallery=download]

NB: NextGEN Gallery 2.0 still doesn’t support this functionality, as at v2.0.66.17; see FAQ for work-around.

From a tags shortcode

The standard nggtags shortcode doesn’t allow you to specify the gallery template, so this plugin adds an extended version of that shortcode.

[nggtags_ext gallery="frogs,lizards" template=download]

Or in NextGEN Gallery v2.0:

[ngg_images tag_ids="frogs,lizards" template=download display_type="photocrati-nextgen_basic_thumbnails"]

FAQ

Will this plugin work without NextGEN Gallery or NextCellent Gallery?

No. NextGEN Gallery / NextCellent Gallery are doing all the work. This plugin is only adding a new gallery template and the ZIP download functionality.

Can I make an album use the download template?

Yes, in NextCellent Gallery the album shortcode has separate parameters for album and gallery templates. The “template” parameter tells it which template to use for the album, and the “gallery” parameter tells it which template to use for the gallery. e.g.

[nggalbum id=1 template=compact gallery=download]

NB: NextGEN Gallery v2.0 still doesn’t support this functionality. Instead, you need to link a page to each gallery in Gallery > Manage Galleries, and use the nggallery shortcode on those pages to set the template as “download”.

Can I make the tags shortcode use the download template?

In NextCellent Gallery, just add the template to the nggtags shortcode:

[nggtags gallery="frogs,lizards" template=download]

NextGEN Gallery v2.0 introduces a new shortcode, ngg_images; see the Photocrati documentation for ngg_images. This new shortcode can support a template parameter, like this:

[ngg_images tag_ids="frogs,lizards" template=download display_type="photocrati-nextgen_basic_thumbnails"]

I don’t like the download template; can I customise it?

Yes. Copy the template from the templates folder in the plugin, into a folder called nggallery in your theme’s folder. You can then edit your copy of the template to get the pretty.

Why does it break when I select too many images?

There can be several reasons, but the most common one is that your server is limiting the size of temporary files. You might be able to work around that by telling WordPress to use your uploads folder for temporary files. To do that, add this line to your wp-config.php file, just below the lines defining ABSPATH near the bottom of the file:

define('WP_TEMP_DIR', ABSPATH . '/wp-content/uploads/');

You’ve translated my language badly / it’s missing

The initial translations were made using Google Translate, so it’s likely that some will be truly awful! Please help by registering to translate into your preferred language.

Can I change the image paths, to download a different image?

If you have higher resolution images you’d like to download instead of the ones displayed, you can use a WordPress filter hook. See this support post for details. NB: this is advanced and requires some programming ability!

Reviews

Èrèlé 7, 2017
A really good plugin, small problem, the look is not customizable
Read all 11 reviews

Contributors & Developers

“NextGEN Download Gallery” is open source software. The following people have contributed to this plugin.

Contributors

“NextGEN Download Gallery” has been translated into 10 locales. Thank you to the translators for their contributions.

Translate “NextGEN Download Gallery” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

The full changelog can be found on GitHub. Recent entries:

1.6.2

Released 2023-12-05

  • fixed: fatal error “call to a member function get_entity() on null”