Hi,
I don't see how zp presents users with the ability to download a single image or a group of images. When viewing a photo, I had expected to see a download link. Do I need to modify an existing theme to make this possible? Also, I've see mention of the ability to download an entire gallery. Would I again need to modify an existing theme to embed appropriate code to do the album download?
Is it supposed to be possible to download and entire album and subalbums?
Thanks. I know these are newbie questions. But I didn't see any documentation for newbie questions like these.
Comments
To get a download link, use something like this on image.php:
`" title="<?php printBareImageTitle(); ?>"><?php echo gettext('Download')</a>`
To download an album, first enable the `downloadList` plugin and set the `Zip source` option to the required source.
Then on album.php or image.php use `printDownloadAlbumZipURL()`
http://www.zenphoto.org/documentation/plugins/misc/_zp-extensions---downloadList.php.html#functionprintDownloadAlbumZipURL
But I'd done the following things:
- enabled DownloadList Plugin
- using the basic theme: file album.php »
insert
<small><?php printDownloadLinkAlbumZip(); ?></small>
after <small><?php printAlbumDate(""); ?></small>
so, what's the next step? I can't see any Downloadlink ...
Is there a configuration anywhere else? in the theme maybe?
Is there anything to change in the album itself? But I can't find anything to make something to "start" the plugin.
The Zip-source ist 'from Album'.
The folder is named 'uploaded' ... I think that's the default name. But there is nothing inside (OK, that's a lie ... there is the file .gitignore inside)
The folder 'downloadList' is inside zp-core/zp-extensions - so I think the plugin is allready installed.
I need help ;-)
thx!!
The loop checks for sub-albums. So if you don't have any sub-albums nothing will show.
Try placing the function somewhere outside the `next_album()` or `next_image()` loops.
Btw: the function you use is deprecated.
Use `printDownloadAlbumZipURL()` instead.
The "uploaded" folder is the folder where the (non gallery) file manager stores uploaded files.
It is also the default directory to download single files from.
Just ignore that option. It's not involved in what you need.
Thanks for your answer and help!
... finaly it works ;-)