Pages (4): 1 2 3 4   
Member
Member
Phase2   14-11-2011, 21:10
#1

Hi,

I wrote a little plugin that is able to create zip-files on the fly while streaming them. Other than that the functionality is the same as Zenphoto's album-zip.

Advantage over the built in functionality is, that download starts immediately. You don't have to wait for zip file to be created before it is sent, but unlike using persistent archives it is always up to date.

There is a small drawback though. As the zip-file is still being created while getting sent, there won't be a filesize given. So resuming the download and estimated time till completion inside your browser/download manager won't work.

Requirements:
PHP 5.1.2 is required and safe mode = off is strongly recommended as timeouts may appear for large albums with safe mode enabled.

Usage:
just download from the link provided below and unpack the zip-file into your plugins folder.
enable the plugin.
and add the following line into your album.php, whereever you want the download-link to appear:

printAlbumZipStream();

Download:
https://sourceforge.net/projects/albumzipstream/

Administrator
Administrator
acrylian   15-11-2011, 10:58
#2

Thanks, new plugins are always welcome. But please create a page with some info we can link to from our extensions section. We don't like to directly link to 3rd party tools as that looks as if it is by us and linking to a forum post is not that good as well. Please see:
http://www.zenphoto.org/news/general-contributor-guidelines#themes-and-plugins

Member
Member
Phase2   15-11-2011, 12:51
#3

ok. I created a SF-project under:
https://sourceforge.net/projects/albumzipstream/

not much information on it yet, though.
I'll add more, when i've a little bit more time.

Could you please edit the download-link in my first post so it points to the sourceforge project?
Thanks.

Administrator
Administrator
acrylian   15-11-2011, 13:35
#4

Thanks, that's better and even easier for you regarding possible updates.

I will edit the link and also add an entry to our extensions section.

Member
Member
fxk   24-01-2012, 14:19
#5

Hi,

I have problems with this plugin ...
I dropped it into the plugins folder but it doesn't show up on the plugins list - weird.

Why could that be?
Cheeers
hein

Member
Member
sbillard   24-01-2012, 22:36
#6

check to be sure that you did drop the plugin into the folder correctly. There should be the main file in the root of the folder. Probably it is not there, otherwise you would get something displayed.

Member
Member
fxk   25-01-2012, 10:47
#7

Hmm - I didn't think, there are so many ways of dropping a file somewhere

I did everything again just now and realized, that the plugin consists of the plugin-php file PLUS an extra subfolder. Both these elements need to go into the "plugins"-folder ....

got it, thanks

Member
Member
fxk   25-01-2012, 11:09
#8

Ok, new problem
I activated the plugin and included the link in my skin, easy.

When I click the link "Download a zip file of this album" in the album "test"(just like i want it) the download begins and I get a zip file named "test.zip", size is 5.7 MB which makes sense.

Problem:
When I unzip the file I strangely get a new file named "test.zip.cpgz"

Various tools can't explain me, why and what this is ...
Any ideas from your side?

Thanks
hein

Member
Member
Phase2   25-01-2012, 12:41
#9

After some googleing I found out that there are lots of entries regarding .zip files becoming .cpgz on Mac OSX using the default Mac unzipper.

could you pls confirm that you're using OSX and unzipper?
If so, I might have a solution for this and try to do some code changes tonight.

Member
Member
fxk   25-01-2012, 13:14
#10

Hey - great.
yes, I'm on Mac OS X 10.6.
For unzipping I tried

  • the default "Archive Utility", result: *.cpgz
  • Stuffit Expander, result: Error Message: "An error occurred attempting to expand {///*/}test.zip - The structure of the archive is damaged. (Error #17540)"

that's it.

Thanks a lot!!!

Pages (4): 1 2 3 4   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.