Download for a visitor and downloading entire album

Hello,

I created a gallery with ZenPhoto, but I want to do these two actions:

1 - allow download by album (or sub-albums)
For example: In a single gallery,
- On some albums public, not to allow the download of images
- And other public albums, allowing the download of images
- On an album password protected, allowing the download of images

2 - If the download is allowed, I saw that readers could download frame by frame but I would also allow downloading of the entire album, for example by ZIP

If ZenPhoto does not do that, I could not use it because it is the principle of sharing of photos:
- Allow some people only see the photos
(Example: my favorite photos that I don't want giving)
- Allow others people to view and download the photos (with or without password)
(Example: the family with a password, sports photos without a password)
- Enabling people who have the right to download, do this action frame by frame or download the entire album

Can anyone advise me?

I chose zpGalleriffic v1.4 and I have not figured out how to do this.

Excuse me for my English but I am French and I use a translator to talk to you ...
Sorry but I have not found a site ZenPhoto French help.

Comments

  • acrylian Administrator, Developer
    1. Regarding rights management please review: http://www.zenphoto.org/news/an-overview-of-zenphoto-users
    In any case you will have to modify the theme used to add such checks. Also review the troubleshooting guide on the differences between protected and unpublished status of items.

    2. There is a function for album zip and downloads. Please review the functions documentation. Again you will have to modify the theme, especially to tie this with the appropiate rights.
  • For clarification, does a custom theme have to be installed to incorporate the function to download a zip'd file of an album's photos? Actually, I'm quite happy with the stock "out-of-the-box" appearance of ZenPhoto. IMO, simple is better.

    Also, I've looked for the "functions documentation" but so far, I have not found it. Where else, other than the "User Guide"?
  • The `printAlbumZip()` function needs to be placed in the theme's album.php script at the place where you want the download link to appear. Of the distributed themes, only Effervescence+ adds this feature. Of course you can clone one of the other themes and add the function call to its album.php script.

    There probably needs to be a search feature for the functions to make these easier to find. http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionprintAlbumZip

    Just for future referece, you go to the user guide and click on the link for the function refences. Then (here is the not obvious part) click on "all elements" at the top right so you get the index of ALL the functions, not just a subset. From there you can click the first letter of the function name or better just use your WEB browser's page search for the function name.

    Just one other warning. If the album is large in terms of number of images and/or size of the images the zip may fail by running out of server memory to make the file.
  • acrylian Administrator, Developer
    The "functions documentation" has its own box on top of the sidebar on the user guide section. Since the functions documentation is generated statically via PHPdoc there is no way to search it via the site itself.
  • Luce Member
    Thank you for your advice
    All right, I made ​​good progress, you can see a first result on the site www.salardaine.fr
    So I:
    - An album of my favorite photos, copyrighted, no options for image download and no options for download the album by ZIP
    - Photo albums of sport, without copyright, with the ability to upload image and the ability to upload album
    - Albums private password-protected with even sub-album protected by another password

    I removed access to the image ('image detail' image.php), it was useless, did not add anything more because I put the metadata in the album next to image

    I also chose the album to display in the home page in the mini slideshow
    and also two or three little things and more ...

    My big problem now ... is the caching of images.
    I need to thumbnail-size: 100, 475, 700 in administration but in ZenPhoto, action "caching the album" seems to set only the sizes 100. How can I prepare in advance the sizes 475 and 700?
    Otherwise the display is too long, sometimes impossible.
    If you have an idea, I thank you in advance.
  • If you are refering to the cache album buttons, then they do only make images of the size defined in the options. Any custom settings you make in your theme itself will be cached upon first reference. (BTW, the cache album stuff is there only because of popular demand. It is really not needed due to the normal behavior as mentioned above.)

    If you feel you need to prepair these images in advance, simply visit your web pages.
  • acrylian Administrator, Developer
    Just to add, it may take some time on the first view to generate the sized images but then not again.
  • Here's a bit of information I found useful:

    If you just need to download a spesific album and haven't placed the function in the theme, you can use this link: http://www.your-web-site.com/zp-core/album-zip.php?album=album-folder-name/
Sign In or Register to comment.