I have just installed Gallery2 and am still evaluating if I want to dig deeper and start to port all pictures to it. I like all the modues that you can install easily to add the features.
I am just wondering about the fact that many designers and professional photopgraphers are macintosh users and would like to add the feature to download the cart as *.sit file but have been unable to find any information about *.sit or Stuffit integration.
So please le me know here if someone already did a "download as *.sit"-module or if I need to start looking into modifying the *.zip module.
Thanks for taking your time to read this.
Michael
Posts: 1894
If there is a command line tool in MAC that can do stuffit archives, it will be extremely simle to adapt the zip module to do just that.
I haven't seen that being done yet but then again I don't own a mac
Good luck
- http://perso.mine.nu/
-------------------------
The Termite -
Posts: 4
Thanks for the fast reply. There is indeed a Linux binary for Stuffit. (http://www.stuffit.com/downloads/files/stuffit520.611linux-i386.tar.gz) /bin/stuff -f=sit5 -n=download.sit files
I am not programmer, but I suppose I simply copy the zipcart folder and rename it to sitcart and rename in all files anything related to ZipCart to SitCart?
Hmh ... modules_zipcart.mo seems to be a binary file, how can I change the content there?
Michael
Posts: 1894
.mo files are the compiled language information, you may not need to re-do them. simple rename them modules_sitcart.mo
Let us know
Eric-
-------------------------
- http://perso.mine.nu/
The Termite -
Posts: 4
Hehe, as I said I am not a programmer. I copied the zipcart folder into a sitcart folder and renamed zip to sit in all files and Zip to Sit and ZIP to SIT. then I tried to activate the plugin and got a nice
Error
Error (ERROR_PLATFORM_FAILURE) :
* in modules/core/classes/GalleryTemplate.class at line 270 (gallerycoreapi::error)
* in modules/core/classes/GalleryTemplate.class at line 200 (gallerytemplate::_initcompiledtemplatedir)
* in main.php at line 418 (gallerytemplate::fetch)
* in main.php at line 87
* in main.php at line 80
But with rerunning install script and removing all references to sitcart in mysql the site was running again.
The second try was more successfull. The Module is installed and needs configuration. I suppose all the work is done in the SitCartPlugin.class at least I see the comman to copy files into a temp folder, but I cannot see where the job is really being done. Mostlikely at:
$gallery->guaranteeTimeLimit(60);
list ($success) = $platform->exec(array($cmd));
if (!empty($cwd)) {
@$platform->chdir($cwd);
}
where $cmd = array($sit, $sitFile);
while $sitFile = $sitBase . '.sit';
and $sitBase = $platform->tempnam($gallery->getConfig('data.gallery.tmp'), 'sit_');
$platform->exec(array(array($sit, $platform->tempnam($gallery->getConfig('data.gallery.tmp'), 'sit_');
. '.sit')));
Hmh ... that really tells me nothing ... if someone can hook me up where to look further. I have zipped the files to http://album.proacct.de/sitcart.zip for you to look at.
How do I compile the language files in the po folder?
Thanks again for your time.
Michael
Posts: 1894
For compiling the .po files, it depends on your plateform
poEdit does a good job for windows. I'm not sure about others, that what I use to compile them
FOr the module. I'm looking at the files.
Cya
- http://perso.mine.nu/
-------------------------
The Termite -
Posts: 3236
I don't see this being much use to anyone but mac users with mac servers. I went to see how I could get a .sit file compressor / creator on my gentoo box and was happy to discover it had stuffit in portage. Well, turns out you can only extract stuff for free. Compressing it costs money.
I find it hard to believe that opening a .zip file on a mac is any harder than opening a .sit file, so what real use is it?
_________________________________
Support & Documentation || Donate to Gallery || My Website
Posts: 4
Well, if You work a lot with photographers You will realize that they love their Macintosh and Apple Systems very much. It is a world of its own, that I try to please.
Currently they seem to like Gallery2 as a whole, but they asked me if it was possible to implement this feature for their comfort. And there I am as windows user with a linux webserver looking for a sit module.
Thanks for the understanding.
Posts: 3236
Well, I guess since your G2 is on a linux box you'll need to pay for stuffit. It doesn't seem like it would be *too* hard to accomplish, the more flexibility in G2 the better!
If you find a GPL / free stuffit compressor, that'd make it easier too.
_________________________________
Support & Documentation || Donate to Gallery || My Website
Posts: 7
I'm pretty sure Stuffit will expand/extract a zip file.