Closed (won't fix)
Project:
pclzip_zip_node_files
Version:
6.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2010 at 22:52 UTC
Updated:
18 Feb 2013 at 09:15 UTC
First of all thank you for this module I have added it allready to my image page in the gallery i have created using views and field_gallery_image.
I have created a CCK field that contains the foldername to a folder with all the images in a gallery.
Is it possible somehow to:
1 Make the download icon appear on that page if that field has been filled out?
2 Make it zip the folder?
Comments
Comment #1
weaponx commentedAfter some experiments i took the liberty of making a copy of your module in order to understand the code behind.
The codes of my (working) experiment is posted below. Please take note that i am beginner in php and i can not guarantee the quality of this php code below.
The code changes assumes that you store all gallery files for each gallery in a folder with the node id as name.
I ended up with theese modifcations.
Rename folder "pclzip_zip_node_files" -> "pclzip_zipfolder_galleries"
Delete files "pclzip_zip_node_files.info", "pclzip_zip_node_files.install", "pclzip_zip_node_files.module"
Create file "pclzip_zipfolder_galleries.info" with this content:
Create file "pclzip_zipfolder_galleries.install" with this content:
Create file "pclzip_zipfolder_galleries.module" with this content:
If you have trouble with code try the following in the module as well as in your filestructure.
Line 184:
Is the basepath the correct place to look for your picture folder? The usual path for basepath is "(drupal root)/sites/default/files".
Line 187:
Is this the correct path below basepath? Example: "(drupal root)/sites/default/files/photos/32".
Enjoy
Comment #2
ssm2017 Binder commentedthank you a lot for your contribution
maybe you can create a project on the drupal website and then commit your own module :)
i havent read or tested your code yet
Comment #3
Aurochs commentedthis is great if it works with gallery assist galleries
Comment #4
30equals commentedOld threat clean up.