Testing my PhotoZip Plugin

update: Tim has a improved version of this plugin over at http://home.snafu.de/tj.berger/ Included in the lightbox js, german translations and more

This is a post which tests my photozip plugin for wordpress and some walkthrough..
Will be uploading the zip file for the plugin when I return home.


Okay what? Initial-D? Nope, a quick shot from my brother at Changi.


This is how my admin page look. Pretty cool looking mac application lookalike (Tiger Admin style).
Click on PhotoZip in the quicktags.


Window popups. Select browse.


Select file.


Click upload.


Status of thumbnailing the images. Pages redirects automatically when ready.


Small thumbnail previews of images uploaded. Click on insert to place html codes into the post.


Now you see it. I use ChenPress (FCKEditor) WYSIWYG. Click Use Editor.


Edit simply!

29 Responses to “Testing my PhotoZip Plugin”


  1. 1 teddyblue

    what is the plugin for ur comments box here??

  2. 2 eric

    hi… a newbie to php, etc… i managed to get your plugin to go as far as installing it on my ftp, then when i try to run it in editor, after clicking the “upload” icon, i got the error msg below:

    Warning: exec() has been disabled for security reasons in /var/www/html/wp/wp-content/plugins/photozip/manager.php on line 245
    Unable to run unzip

    could u help me? ur plugin looks great, really wish i could get it to work. thanks in advance and keep up the good work! :)

  3. 3 Zz85

    eric,

    it seems you do not enough permissions on your server. have you tried chmod manager.php to 777?

  4. 4 Linuxix

    *** Nothing to do with standard unix permissions but with the PHP config of the server. The admin has diabled the function exec() in PHP.

  5. 5 dan

    OK…my guess is this is simple, but I’m getting this error message:

    Not Found
    The requested URL /wp-content/plugins/photozip/manager.php was not found on this server.

    Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

    The problem is that in the plugins/photozip/ folder manager.php does exist. I was able to activate photozip just fine but then once I click on the photozip button to post the above error comes up.

    Any ideas? Thanks!

  6. 6 Deanna

    Hey,

    Your plugin is listed in my wordpress admin panel and it IS activated, but when I go to write a post, there are no quick tags listed and no kind of photo zip option. I just started learning about wordpress — so sorry if I sound like a numbskull. Any help would be appreciated.

    Thanks,

    Deanna

  7. 7 Wordpress

    Hi. Your plugin very important.

  8. 8 Michael

    Hey,
    Am trying to use your plugin, it seems like just the thing I’m after (Thanks!)! However I’n having trouble when I I try and upload a zip with 21 photos. The photos seem to get up loaded, but I don’t see them on the PhotoZip screen where I should see them!
    Any hints?
    Cheers
    Michael

  9. 9 Matthew

    I have given the script full access to the directory structure to read and write, but I am still getting errors with the pemissions. I double checked and eth permissiosn ar ethe same for eth page work pres uses to upload images and its aimed at teh same directory.

    any ideas?

    thanks!

  10. 10 Mike

    Will this plug-in work with WP 2.0?

  11. 11 James

    Get plugin :)

    I found that my server couldn’t handle unzipping anything over 2MB, so I modified the code a little so it can also handle tar files. It’s also cleans up the folder names a little too. Here comes the code:


    Im manager.php
    ----REPLACE----
    exec ("unzip $pz_zip_file -d $pz_moveto_path$pz_folder") or die("Unable to run unzip");

    ----WITH----
    $pz_folder = preg_replace('/[\s]+/’, ‘_’, $pz_folder);
    $pz_folder = preg_replace(’/[\W]+/’, ”, $pz_folder);
    if(substr($pz_zip_name,strlen($pz_zip_name)-3,strlen($pz_zip_name)) == ‘tar’)
    ((is_dir($pz_moveto_path.$pz_folder) or mkdir($pz_moveto_path.$pz_folder)) and exec (”tar -xvf $pz_zip_file -C $pz_moveto_path$pz_folder”)) or die(”Unable to untar”);
    else
    exec (”unzip $pz_zip_file -d $pz_moveto_path$pz_folder”) or die(”Unable to run unzip”);

  12. 12 agi

    Thanks for the plugin. Ive used with with 2.02 and seems to work okay.

    Since im also using js lightbox plugin i have modified the code to make the images all belong to the same set.

  13. 13 sharif

    I love the idea of this but it doesnt appear to work. I have all permissions I get all the proper prompts except…when I click to Insert, neither the photos nor the code get put anywhere I can see and edit. The box just sits there…mocking me. Help!?

  14. 14 tim

    I’m a big fan of photozip!-plugin, too. I thank you for your great work!!

    The comment of agi inspired me to add such a function, too. Further i have translated the plugin into the german language for my fellow authors.
    Other functions that i have added are:
    - a possibility for the user to change the thumbnail size
    - a possibility for the user to choose the kind of adjustment of the thumbnails in the article (side by side or in one column)
    - (as said) a possibility for the user to decide if a Lightbox-Galery should produced or not

    Screenshots and the modified plugin are downloadable in a english and a german version at my homepage (http://home.snafu.de/tj.berger/).

    I hope that is ok for you Zz85. If not please write me an email and i will take all this from away my homepage.
    by the way: I would translate new versions of photozip into german if you want this.

  15. 15 tim

    it seems that th “insert all” button doesn’t work if you ues the standard WYSIWYG-editor to wirte your articles. Copy+paste the HTML-Code which should be visible in the textarea below the picture preview to the article. After saving the changes of the article the pictures should be visible in the article, too.

  16. 16 Zz85

    Hey, tim..

    its seems you have done some good work there..

    sorry I know that this plugin has alot lacking but I dont have effort and time to improve it even though I always wanted.

    Thanks for your interest in it! :)

  17. 17 tim

    Hello Zz85,

    have translated PhotoZip into german (not dutch).

    Thank you for adding a hint on the top of this article to the versions with my small changes!!

  18. 18 tim

    Two days ago i have discovered at this Wordpress page how Plugins should be translated.
    I have modified my inofficial Version 0.3.4 to this standard. The new inofficial version is 0.3.5 . (I don’t have changed the type of translation. No new functions in v0.3.5)

  19. 19 tim

    I have changed the type of translation. No new functions in v0.3.5 :)

  20. 20 tim

    until v0.3.8 if have added these features/functions:
    - possibility to set a subtitle for each photo
    - possibility to set and change the main uploadfolder during the usage in the first window of the plugin
    - the functionality of the Lightbox-Plugin will now used in the right way

  21. 21 tim

    I have published a developed version of PhotoZip! and reached version number v0.4.

    - now it works with IE, too (but the button will be displayed only in the non-WYSIWYG view of the editor).
    - shows which photo file types are supported and extract and processes only the supported photo files (jpg/jpeg, png, gif) (if these photo files were uploaded in a zip-file)

    Further i have added the .tar-archive functionality which was proposed by James in one comment above. But i have no possibility to say if this tar-part of the plugin works correctly.

    v0.3 - v0.4 should work with Wordpress 2.0.4 - 2.1.1

  22. 22 giovanni.b

    i’ve installed the v0.4.1 on wordpress 2.1.3 and enable it, but the button doesn’t appear :(

  23. 23 tim

    2 Weeks ago a friend of mine tried to upload pictures from his new camera and he discovered, that it is not possible with PhotoZip! on his server. I have not discovered this bug before, because I have always uploaded smaller pictures in reminiscence to all the people with a slow modem internet access.
    In follow I have read a lot of forum discussions and PHP manual posts. In the end I think this problem is caused by max_post_size (on my server) Further memory_limit and upload_max_filesize seem to be limits in some cases, too. So in v0.4.5 a function compares the smallest Value of these three with the real size of every uploaded picture before PhotoZip tries to make thumbnails. Is a uploaded JPG to it an other function tries to find an embedded thumbnail (exif). Big pictures without embedded thumbnail will deleted on the server. But the the smallest limit is often 8MB.
    Additionally PhotoZip uses the wp-admin.css and looks now more like WP and now it is really (i have tested it thoroughly this time) .tar, .tar.gz and .tar.bz2 (and .zip) archive-files.
    With other small improvements PhotoZip should work more safely.

  24. 24 tim

    Since 0.4 I have added a WYSIWYG-editor toolbar button for PhotoZip (works in the PZ version for WP 2.1.x)

  25. 25 Andrew

    Hi, the plugin is great! But ive got a question, maybe someone will be able to help… What im trying to do is to separate my WP install from photos - i want WP to be located on domain.com but photos on img.domain.com (for example) for future purposes… But if i enter this path to manager.php - ../../../user/img.domain.com/sep07/ this works fine and photos are uploaded to the right place, but then the links to files in post appear as “http://domain.com/user/img.domain.com/sep07/blah-blah-blah”

    please help to overcome this! … tnx!

  26. 26 tim

    @giovanni and all:
    If you have installed PhotoZip v0.4.1 or higher (v0.4.9 is my last version) and the button does not appear then (clear the browser cache and) press “reload” at your browser. If this doesn’t work switch of the WYSIWYG-editor in the “Site Admin” > “users” > “your profile”.

  27. 27 tim

    I have moved my webpages to a new adress: http://undeuxoutrois.de.

    There you can find my versions of PhotoZip from now. The actual version is v0.6.3, which has e.g. an AJAXified pictures management part.

  28. 28 Bryant Arrington

    site is new and rough draft. I would like to use your plug-in.

    thanks!!

  1. 1 Juicing Up Photo Viewing Experience: Part I at kepo-ing Zz85

Leave a Reply