mod for zipdownload.php mod for zipdownload.php
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

mod for zipdownload.php

Started by sjordan, August 02, 2006, 01:11:40 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

sjordan

Hello,

My users and I were having trouble with the zipdownload feature on macs. The downloaded zip file opened successfully on linux and Windows, but mac users trying to use Stuffit to open the generated zip files were getting errors.

I tracked this down to archive.php in include folder.

Devin Doucette, the creator of the archive functionality upon which CPG's archive.php is built has a new version of his code out, Copyright (c) 2005.

I replaced the current version of archive.php and modified zipdownload.php to work with it.

Things seem to now work for linux, Windows and mac users.

I've included both files in the attached zip. I've alse included the original readme from Devin Doucette's new code.

If it helps you, please have at it. (Remember to back up your current files)

Moderators/Devs, feel free to move this to mods if you find it worthy and you can confirm that ...

1. It helps mac users.
2. Doesn't break the experience for anyone else.

Cheers.

CPG v. 1.4.8

Joachim Müller

@sjordan: thanks for sharing

@devs: should this go into stable and devel or only into devel?

sjordan

@Gaugau: My pleasure. I've got a lot from CPG. I've now given something back.

Abbas Ali

Imo, should go in both as it is not a new feature.
Chief Geek at Ranium Systems

sjordan

Hello,

It seems this mod did not make it into the recent release v 1.4.9

Did it fail your QA testing? I would like to know if my code changes didn't work so that I can improve them.

As reported to me, mac users were having difficulty prior to the upgrade in archive.php I included with this mod.

Hope it helps.

Joachim Müller

Threads on the bugs board that are not labelled as "fixed" haven't made it into the subversion repository and subsequently not into a release. It's the sheer number of workload that kept the devs from adding it to the core in time for the release of cpg1.4.9.

Joachim Müller

Committed suggested fix to devel and stable banch. Subsequently, the updated code will be in cpg1.5.0 and cpg1.4.11. Marking thread as "fixed". Mac users: please confirm.