Add a template to NextGEN Gallery that provides multiple-file downloads for trade/media galleries
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.
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.
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.
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]
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.
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"]
No. NextGEN Gallery / NextCellent Gallery are doing all the work. This plugin is only adding a new gallery template and the ZIP download functionality.
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”.
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"]
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.
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/');
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.
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!
The full changelog can be found on GitHub. Recent entries:
Released 2023-12-05