27 thoughts on “ZenPhoto 0.8 Released!”

  1. Jonas Rabbe says:

    I just noticed, the colors in the default theme are practically the same I use on my page. You ripoff… Or something… I guess I’ll have to install a GD enabled PHP on our web server, bugs me to hell that it isn’t already. Can’t wait to play with it, of course that should probably be a comment on Tristan’s page. I think I’ll just stop ranting now.

  2. Joen says:

    Well, they are pretty widely used colors. Light pastels…

    But yes, you need GD. Although, I fear it requires you recompile the entire apache core…

  3. Jonas Rabbe says:

    Nah, I can just install a new PHPcompiled with GD support. I’m using PHP as an Apache module, so it’s pretty easy to exchange it. I also have to install the needed libraries, however, I think it’s libjpeg and libpng. I’m not worried, I even think there are installations available precompiled with both the PHP module and libraries.

  4. Thom says:

    W00t! I’m just starting on my new site, and was worried I wouldn’t get to try ZenPhoto before I moved my bog over. Hopefully I can give this a spin tonight.

  5. Joen says:

    I just upgraded my 0.6 version and it was a breeze. My wallpaper section is powered by ZP and it works great. There was a single quirk when working with WordPress, and it’s been fixed. So it’s beautiful.

  6. amory says:

    Joen, did you integrate WP and ZP with regards to using functions or creating mirroring users between the two?

  7. Joen says:

    Well, my primary reason for integrating the two was to keep things simpler for myself. Basically I have a whole theme in place, with header footer sidebar and styling. Having to do extra work exclusively for zenphoto is more work than I want. By combining the two, I can use most elements from my WordPress theme directly for the zenphoto gallery.

    I have not yet combined the users (i.e. user cookies etc.), but it should be quite simple.

  8. amory says:

    I have not yet combined the users (i.e. user cookies etc.), but it should be quite simple.

    Would it be as simple as looking at the various other WP-xyz integrations for an example of to accomplish combined user cookies? (Such as the PHPBB etc..)

    If you are willing to take it on within the next week or two, let me know, otherwise I will try to put something together – mainly for the upcoming release of EventPress.

  9. Joen says:

    Well basically I’m not using end user login, so I imagine it’s just a matter of reading WordPress cookie info for Name Email and Website.

    Since the ZP comment section is very similar to the WordPress comment section, I figure it’s only a matter of taking the right bits from comments.php to image.php.

    I won’t have time to try it out the next few days, so feel free to do it for EventPress if you can.

  10. Tristan says:

    I can take a look at simply using the same cookie for the two. I think it’s just a matter of changing the name of it, and making sure I parse it in the same way, which should be easy just by looking at the WP code.

  11. amory says:

    Thanks for the response Tristan. I found the WP-PHPBB integration plugin that does a user id/password check and updates each database if there are any inconsistencies. I may be able to use this to do something similar, but working with the cookie would be an easier solution.

    Everything else so far is running quite awesomely though! Thanks for your work on this project.

  12. Nik says:

    ZenPhoto looks awesome… I have never been a big fan of Flickr, and this new ZenPhoto looks like it covers it all and more! Perfect design, with all the functionality everyone’s been looking for it seems.

    I haven’t a clue how you built it, but nice work Tristan, Joen and everyone involved!

  13. Joen says:

    It not only looks awesome, it IS awesome.

    That said, I’m on an Apache server, and I tried helping my friend set it up on an IIS the other day. That’s where it shows it’s relative immaturity. Then again, for an 0.8 version, it’s quite impressive just how well it works for me.

  14. andper says:


    zenphoto is very nice and so is your journal, Joen.

    I’m a bit interested (probably not the only one) in how you integrated ZP with WP so flawlessly. Any chance of giving a tip or two to the audience? 🙂

    Is the basic principle adding the WP header and/or sidebar to ZP’s index.php file? How dou you make WP functions accessible to ZP? Via ‘wp-blog-header.php’ maybe?

    I could also start a topic in zenphoto’s support forums, but I figured I’d rather first ask you directly, if I may. 🙂

    Thank you very much for the help.

  15. Joen says:



    I plan on writing a tutorial on combining the two, but not until ZP reaches 1.0. There’s still a conflict with the commenting section that I had to hack my way out of.

    But basically you’ve got it pretty much right. You start WordPress, then you start zenphoto. There are no overlapping functions (except for the comment problem I mentioned earlier), so that means you can get access to the WP sidebar and header, etc.

  16. Chris says:

    As far as WP integration, is the zenphoto folder within WP or outside of? I would appreciate any pointers.

  17. Joen says:

    Well, it’s not that I want to keep secrets, it’s more a matter of zp still being beta, and major aspects of my integration would be considered a hack.

    That said, here are some pointers.

    1. Install ZP in a folder

    2. In the index.php file in the newly created ZP folder, start WP, then ZP:

    /* Start WordPress */
    define('WP_USE_THEMES', false);
    /* Start zenphoto */
    $themepath = 'themes';
    $theme = $_zp_gallery->getCurrentTheme();
    $_zp_themeroot = WEBPATH . "/$themepath/$theme";
    if (in_context(ZP_IMAGE)) {
    } else if (in_context(ZP_ALBUM)) {
    } else if (in_context(ZP_INDEX)) {

    3. Tweak your zenphoto templates (not your wp templates) to fit your wp style. You can now use functions such as get_header and get_sidebar.

    4. Work around a conflict with comments by opening the ZP template image.php and replacing isset($error) with $FIXME.

    It’s ugly, but you asked for it 🙂

    So to answer your question: it doesn’t matter where your zp folder is.

  18. Jonas Rabbe says:

    I love how everything in ZenPhoto is built in an object-oriented fashion. In my mind it makes it easier to understand than just a bunch of functions spread out all over the place. I hope I’ll have some time this weekend to play with it (most likely not).

  19. Tristan says:

    Thanks Jonas! One of the things I hated about photostack was that it used the object model completely wrong – the objects were a “Photostack” and an “Organize”, so of course the same thing could have been represented with plain old functions more efficiently.

    The actual objects in a photo album are the gallery, the albums, and the images, so that’s what I used for zenphoto. You might also notice the skeleton for a “group” class in there for later.

    This is one of the reasons I didn’t just add functionality to photostack. It’s hard to go off another programmer’s work with a different philosophy… 😉

    Anyway, that’s a little background programming info. I tried to design it well and I think it worked. 🙂

  20. david says:

    Yes please release a tutorial of WP integration when Zenphoto reaches 1.0 for I would love to do so.

  21. Janantha says:

    please let me know what the following problem is ive done what Joen stated..i can see my album but that below the blogheader!..please let me knw thanks

    WordPress database error: [Table ‘myphotodatabase’ doesn’t exist]

    SELECT option_value FROM wp_options WHERE option_name = ‘blogname’ LIMIT 1

  22. Chilifrei64 says:

    regarding the wordpress integration with zenphoto

    WordPress 1.52 and zenphoto .9 works using your method

    WordPress 2 and zenphoto .9 works using your method

    WordPress 2 and zenphoto 1.0b does not work using your method…. After you post your comment you just get a blank page. refreshing double your comment and clicking on another link then navigating back to the page that you commented on shows the comment posted.

    Basically the page isnt refreshing like it used to.

    any ideas why..

  23. Chilifrei64 says:

    scratch that… one thing different is in my index.php for zenphoto is I am calling getheader(); and getsidebar(); for wordpress.

    If I move


    before getheader(); and before getsidebar(); and put it right after


    like you have it, it does infact work.

    Sorry for the spam

  24. Joen says:

    Thanks, Chilifrei for the update. Now if I encounter the same problem, I’ll know what to do about it 🙂

    In any case, the early tutorial on this page was just a hack. I hope to write a better integration tutorial soonish.

  25. Nik says:

    Hi All,

    This is a bit of a long shot, and apologies Joen for using your blog to potentially try and get some tech support on zenPhoto, but I figured this is where the experience users would be! 🙂

    Anyway, does anyone know if there is a fix yet for the intermittent problem of thumbnails not appearing (showing text links instead), and also images returning “This image does not exist” – even though it does.

    Who knows, maybe even Tristan might read this? 🙂

    I’ve tried clearing cache and have found similar reports on the zenPhoto forums, but haven’t yet found any solutions.

    Thanks, Nik

  26. Joen says:

    I remember having a similar problem, Nik… but I think it had something to do with my installation / server paths. Try and clicking properties for the images generated, then showing the images only… the 404 aspect came clear for me there and if i remember correctly, helped me work out the correct server paths.

    Good luck.

Comments are closed.