ZenPress: Zenphoto plugin for WordPress

12357

Comments

  • trisweb Administrator
    Simbul, did you overwrite a wordpress path variable, or perhaps a commonly used variable name in your plugin?

    Perhaps make any global variables in zenpress more unique, like `$zpr_varname`. There seem to be conflicts with a couple plugins so far...
  • Just released 1.2.2, which should take care of the issue.
    Thanks for helping me make ZenPress better ;)
  • I'll update the wiki links. :)
  • Erm I am totally new to this but I just got zenphoto and zenpress installed on my new Wordpress blog.

    -wordpress 2.1
    -zenphoto 1.0.7
    -zenpress 1.2.2

    I find that activating the zenpress plugin will mess up the TinyMCE editor. I will end up with the two Visual and Code tabs but I won't be able to see any of the buttons below? Deactivating Zenpress will return the TinyMCE editor.
  • Hi, thanks for this promising looking plugin!

    But, when trying to insert an image it creates a path like:
    '<img src="http://www.annehelmond.nl/zenphoto//coparck/image/thumb/coparck04.jpg" title="coparck04" alt="coparck04" class="ZenPress_thumb" />'

    which obviously should be
    '<img src="http://www.annehelmond.nl/zenphoto/zen/coparck/image/thumb/coparck04.jpg" title="coparck04" alt="coparck04" class="ZenPress_thumb" />'

    Any ideas? is my Zenphoto admin path incorrect? (I tried several paths)

    Thanks a lot!

    Anne
  • @anneh-

    Double check your paths once again. That's what it looks like to me. Check for additional slashes.

    Remember it should look like this (with no trailing slashes):

    base zenphoto path:
    http://www.yourgallery.com/zenphoto
    admin path:
    /var/www/example.com/gallery/zen

    these should be autodetected, but may not always be depending on your configuration.

    @simbul-

    1.2.2 is working and tested OK on my installation. (ZP 1.0.7, WP 2.1)
  • thanks for the quick reply.

    my base zenphoto path is: http://www.annehelmond.nl/zenphoto/
    admin path was autodetected at: /home/helmond/domains/annehelmond.nl/public_html/zenphoto//zen

    which seems rather odd and creates an incorrect url path. i then changed my admin path to
    /home/helmond/domains/annehelmond.nl/public_html/zenphoto/zen
    which didn't work either.

    Still clueless.

    I'm using WP 2.0.7 and ZP 1.1.1 btw.
  • Works for me now Simbul! Thanks so much!

    Quick question though.. I like the default width and height option. Is there anyway you can make it so that it doesn't make it into a square? I want either a 400 width or 400 height (depending on portrait or landscape).. as ZenPhoto allows you to do with the thumbnails. Can you make that happen with Zen Press as well?

    From the zp-config.php file:

    // Default thumbnail size and scale:
    // If $thumb_crop is set to true, then the thumbnail will be a centered portion of the image
    // with the given width and height after being resized to $thumb_size (by shortest side).
    // Otherwise, it will be the full image resized to $thumb_size (by shortest side).
    // NOTE: thumb_crop_width and height should always be less than or equal to thumb_size
    $conf['thumb_size'] = 120;
    $conf['thumb_crop'] = false;
    $conf['thumb_crop_width'] = 120;
    $conf['thumb_crop_height'] = 120;

    Thanks again!

    Charles
  • @chazzzzy: not sure I understand what you mean. If you use "thumbnail" as a size, ZenPress will automatically fetch the Zenphoto thumbnail, which means every resizing Zenphoto does will be reflected in Zenpress.
    If you use a custom size, you can specify width (or height) alone, and the other dimension will be scaled automatically.

    @anneh: both the paths written in your first post are wrong, as far as I can see. The first one WOULD be right IF you had mod_rewrite enabled, but from the URLs in your gallery I see you haven't. The second one cannot be right, IMO: it would be like looking for albums in the Zenphoto admin directory.
    What is your mod_rewrite setting?

    @thinkdreams: thanks for telling me it's working on 1.0.7.
  • First I had mod_rewrite enabled and things didn´t work, now that I disabled mod_rewrite things seem to work!

    An enabled mod_rewrite would rename http://www.annehelmond.nl/zenphoto/index.php?album=coparck&image=coparck01.jpg to http://www.annehelmond.nl/zenphoto/coparck/coparck01.jpg ? Am I right? I am 99% sure my server allows mod_rewrite enabled, so I am still puzzled about the paths, or maybe I should just contact my hosting company ;)

    Thanks for helping, I love the clean gallery & plugin.
  • Latest update: I phoned my hosting company and I indeed have permission to mod_rewrite. It turned out that my admin path was different than the ZenPress suggestion and my other guesses :) I love the clean look of the URLS now ;)
  • @Simbul.. Zenphoto allows you to specify a maximum width AND height of say 400, and you can keep the rectangular shape of the image if you want.

    Your program on the other hands ends up cropping the image and makes a square.. I don't want a square.

    Would you be able to allow specifying a maximum height AND width without cropping? You can't JUST specify one dimension as the vertical images will be MUCH bigger then horizontal images.

    Thanks so much again for a great plug in!

    Charles
  • Ok maybe I understood the issue: you'd like to specify a *single* size value, which will be applied to width if the image is horizontal and to height if it is vertical.

    It is possible, indeed, but I will have to make careful considerations on where to put the feature in the interface, since I'm afraid it can lead to some misunderstandings.
  • Help!!!
    I installed zenpress0.9 and after i pressed the ZP button,
    the popup window shows:
    "ZenPress error. Check your configuration options."

    and the firebug shows the error:
    tinyMCE.restoreAndSwitchClass is not a function
    onmousedown(mousedown clientX=0, clientY=0)
    tinyMCE.restoreClass is not a function
    onmouseout(mouseout clientX=0, clientY=0)

    do i need to manually set up the admin path?
  • yzhang-

    what version of wordpress are you running? you should be using 1.2.2 if you are running wordpress 2.1. It is available at http://www.zenphoto.org/trac/wiki/ZenphotoPlugins.

    if you have an older version of wordpress (must be at least 2.0.x), you should consider using the 1.1 version available as well at http://www.zenphoto.org/trac/wiki/ZenphotoPlugins.
  • Thank you for your quick reply, thinkdreams.
    Now I put zenpress1.2.2 on wordpress2.1 and after I actived zenpress the buttons (which were below the Visual & Code button on write page in wordpress admin panel) disappeared.

    Here shows the 3 errors from firebug.

    invalid flag after regular expression
    [Break on this error] <b>Warning</b>: file_get_contents(/mnt/w0714/d20/s41/b0287e51/www/blogwp/wp-inc...

    tiny_mce_gzip.php (line 2872)
    realTinyMCE is not defined
    [Break on this error] tinyMCE = realTinyMCE;

    tiny_mce_gzip.php (line 43)
    realTinyMCE is not defined
    [Break on this error] tinyMCE = realTinyMCE;
  • I'm getting a blank pop-up box when I click on the ZP button (inside the rich-text editor). Currently running WP 2.0.7, and I've installed ZenPress version 1.1.1

    My ZenPhoto Base Path: http://domain.com/gallery
    My ZenPhoto Admin Path: http://domain.com/gallery/photos

    Using my FTP app, I've uploaded 3 folders (albums) that contain photos. These 3 folders were uploaded into the admin path----> http://domain.com/gallery/photos.

    Why am I getting a white screen? What am I doing wrong?
  • @yzhang: it seems like some TinyMCE components can't be loaded. Are you sure Wordpress is configured correctly? Maybe some other plugin is causing trouble?

    @jcb86: Your admin path should not be an URL, but a filesystem path. Something like /var/www/domain/gallery/zen.
    By the way, I doubt gallery/photos is your admin directory. Default admin directory is called "zen" in Zenphoto.
  • Thank you, Simbul.
    after I put the files under the tinymce fold into "wp-includes/js/tinymce/plugins" the buttons showed.
    And also, I tried zenpress on another server ,(just put everything under "wp-content/plugins" folder), zenpress works well.
    So different server may need different setup.
    *The two servers both had wordpress 2.o and zenpress1.22 on them.
    *The difference is the admin path: 1st one begins as /mnt/; the 2nd one begins as /services/
    ____________________________________________________________________________________________

    I hope these words may help others. I love zenphoto & zenpress.
  • Simbul - You're right. My admin path is /home/user_name/public_html/gallery/photos
    I was typing late @ night, and didn't proofread my message.

    I changed the folder name from "zen" to "photos" (via my FTP app), b/c someone wrote that you couldn't have the name "zen" in any part of your path structure if mod_rewrite was enabled. Mod_rewrite is enabled on my blog, so I changed the name of the "zen" directory to "photos."

    I have tried using both "zen" and "photos" as the admin directory. Both create a blank (white, totally empty) popup box, when I click on the ZP button.

    How do I get the popup box to display ZenPhoto options? I don't understand why I'm getting a white/blank popup box.
  • @yzhang: just a guess... maybe the first installation is Wordpress 2.0 and the second one is 2.1? As far as my test goes, ZenPress 1.2.2 shouldn't work on Wordpress 2.0.x.

    @jcb86: As far as I know the mod_rewrite/zen problem has been resolved long ago. You could try going back to the default path and see if something changes.
  • Simbul - Thanks, but the default path was what I tried FIRST.

    Then, when the pop-up screen was blank, I came to this forum, and started reading this thread. According to this thread, it was suggested that mod_rewrite could be the problem, and that you should rename anything called "zen" to something else. So, I changed "zen" to photos---inside the Admin path, and on the server.

    I'm still seeing the blank, white pop-up box (when I click on the ZP button). Any other suggestions?

    I don't understand what could be causing this.
  • Hey Simbul :-)
    I get this annoying TinyMCE error

    `Warning: file_get_contents(/data/www/gunnar.lundstrom.nu/http/wp-includes/js/tinymce/plugins/editor_plugin.js) [function.file-get-contents]: failed to open stream: No such file or directory in /data/www/gunnar.lundstrom.nu/http/wp-includes/js/tinymce/tiny_mce_gzip.php on line 178`

    If you move the contents of the tinymce included with the plugin to
    `wp-includes/js/tinymce/plugins/` it'll work again. I don't mind doing that (although I'd recommend putting it in the docs), but shouldn't it be in a `zenpress` directory in the plugins folder - like the other plugins?

    Wordpress 2.1, ZenPhoto CVS, ZenPress 1.2.2

    Edit: I should learn to spel sometime
  • @digits: Since ZenPress 1.2 you shouldn't need to put anything in the wp-includes folder anymore. Forgive me if my question is stupid, but are you sure you installed Wordpress 2.1?

    @jcb86: I don't understand either. With no error message, it is kinda hard to know what's going on. Do you think you can have a look at apache's error log?
  • I am sure, I just downloaded it the day before yesterday.
    If you want send me a mail, and you can get admin access on the blog to scout the errors - shell access can be given too if needed.
  • Simbul - Thanks, how would I access Apache's error log?

    I can send you FTP login details and WP access details, if that would help you troubleshoot the problem. I just want to get ZenPress working!

    P.S. Do I need to have ZenPhoto installed along with ZenPress? Could that be causing the problem? Right now, I only have ZenPress installed.
  • @jcb86: How could you even have an admin path if you didn't have Zenphoto installed? Anyway, ZenPress is meant to work together with Zenphoto and Wordpress, but it does not provide either: try installing Zenphoto and see if it works ;)

    @digits: I'm sorry, but I can't possibily manage to find the time to look into every single ZenPress not-working installation ;)
    From the look of the error you posted, it seems like TinyMCE is looking for a missing plugin where it shouldn't. Did you by any chance upgrade from an old Wordpress or ZenPress version?
  • No it's a clean install of both, well I had 1.0.7 before, but I deleted that (including the database) to update to SVN.
  • Thanks Simbul. Good news - ZenPress is now working. The reason the popup box was totally blank (when the ZP button was clicked) was because I installed ZenPress, without ZenPhoto. I figured that ZenPress was a stand-alone plugin developed for Wordpress.

    By the way, "Admin path" means absolutely nothing to me. I'm not a developer. I didn't realize that ZenPress depended on ZenPhoto being installed, too.

    Once I installed ZenPhoto, the problem resolved itself. Could you add a "ReadMe" to the ZenPress zip file that states that ZenPhoto must be installed too? That would be a huge help for us "clueless" non-developers. ;-)
  • trisweb Administrator
    @Simbul, don't worry, it actually is obvious to most people that ZenPress is a plugin for integrating Zenphoto and Wordpress. From your home page:

    "ZenPress is a plugin for WordPress. It is designed to provide an easy way to include Zenphoto images into your blog posts. ZenPress has been designed and tested on WordPress 2.1 and Zenphoto 1.0.6."

    Then further down:
    "Insert the URL of your Zenphoto gallery."

    It's pretty darn obvious that it requires zenphoto... and no, you don't need to be a developer to realize that, you just need to be able to read English...... PEBKAC ;-) You could have a little section at the top of the page about requirements though, that would help avoid... further confusion *chuckle*.

    @jcb86 - I suppose without it being stated explicitly that it's understandable that you missed the fact. :-)
This discussion has been closed.