Zenphoto into Wordpress theme

Hello,

I have an issue where I'm trying to integrate all the functionality of zenphoto into a wordpress theme so my blog stays consistent throughout. I'm following the steps found at http://www.ruzee.com/blog/2006/06/integrating-zenphoto-into-wordpress/ . I followed this step-by-step process about a year ago and got it to work without a problem. Since then, I moved the directory of my blog and upgraded both Wordpress and Zenphoto. Now, I'm getting the following errors:

Warning: Division by zero in /homepages/6/d200897276/htdocs/blog/personal/zenphoto/themes/default/index.php on line 3

Warning: Division by zero in /homepages/6/d200897276/htdocs/blog/personal/zenphoto/themes/default/index.php on line 3

Warning: Division by zero in /homepages/6/d200897276/htdocs/blog/personal/zenphoto/themes/default/index.php on line 3

Warning: main(0php�) [function.main]: failed to open stream: No such file or directory in /homepages/6/d200897276/htdocs/blog/personal/zenphoto/themes/default/index.php on line 3

Fatal error: main() [function.require]: Failed opening required '0php�' (include_path='.:/usr/lib/php') in /homepages/6/d200897276/htdocs/blog/personal/zenphoto/themes/default/index.php on line 3

Has anybody ran into this problem? I'd appreciate any feedback to help solve this issue.

Thanks

Comments

  • I'm having the same problem.
  • I've tried that one as well, to pull up ZenPhoto in wordpress, but that kicks a zenphoto database error at me that seems to be caused by running in the wordpress environment. I posted a topic about it here:

    http://www.zenphoto.org/support/topic.php?id=3405&replies=3

    I'm actually blown away by how difficult this integration thing is proving to be. On one hand you've got one of the best photo gallerys available and on the other hand you've got arguably the best blog software available and they just really don't want to play nice.

    Looking through the ZP plugins for wordpress, none few with integration capability work.

    I'm thinking it's got to be recent changes or something. I just don't know how far back it goes. I tried rolling back to the 1.1.4 version of ZP without any luck there, either. Although, truthfully, being a relative novice in the php environment doesn't help either.
  • acrylian Administrator, Developer
    The easiest and most hassle free solution is always to make a zenphoto theme that looks like your wordpress theme and include the wordpress header into that. This is the way how we do it on the zenphoto site.
  • Yeah that's what I'm gathering from searching google and various forums. The trouble is the methods most commonly used don't seem to be working.

    When using the hack to include wordpress headers and sidebars and such into my Zenphoto theme I get a similar error to what's listed above: "Warning: Division by zero in..." That's following Ruzee's method step by step.
  • Actually, now that I go back and reread the very first post here, my problem is actually identical to fogpuddle's.
  • Hi, I am just making an new website for somebody based on zenphoto 1.1.7 and wordpress 2.5.1..
    I works just fine (based on ruzeeÅ› method also).. see www.waer.nl/zenphoto

    this is a stripped version of the index.php, maybe of some use...

    `<?php // add the zen css to the wordpress header<br />
    require($_SERVER['DOCUMENT_ROOT'].'/wordpress/wp-blog-header.php');

    function addcss() {

    global $_zp_themeroot;

    echo '';

    }

    add_action('wp_head', 'addcss');

    ?>

    <?php get_header(); // adds the wordpress header ?>

    <?php if (!defined('WEBPATH')) die(); $firstPageImages = normalizeColumns('2', '6');?>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">



    <?php zenJavascript(); ?>

    <?php printGalleryTitle(); ?>





    <?php get_sidebar(); // adds the wordpress sidebar ?>

    <?php printAdminToolbox(); ?>`
  • Oh my gosh... BertSimons... If we weren't divided by a vast ocean of cyberspace, you'd be in danger of a big awkward kiss, that I'd later have to pretend never happened.

    It worked great!!

    Thank you so much for taking the time to post that! Now, I'm off to tinker with things until I get them to work! :)
  • cox Member
    BerstSimons your solutioned worked awesome in both firefox and opera on a Mac and Windows but then l I tested it in IE7 and I get 404 errors when I use this method. Have you got any idea why this happens?

    www.elketilborghs.com/pictures/
  • Doesnt work for me either with ie7 - anyone has a fix?
  • I tried cobbling together the example used above on how to make a zenphoto theme that looks like my wordpress theme but I wound up with a blank page. I have to warn that I am a novice when it comes to design and coding so is there a reliable tutorial or explanation on how to accomplish this task?
  • acrylian Administrator, Developer
    We have a theming tutorial on our site's user guide section. But probably you would have to learn a few general things about HTML and PHP first. That is of course not teached with the tutorial since there are much better sources for the basics.
  • Thanks acrylian. I will check that tutorial out first. It's not that I'm clueless but will probably have to refer to a few basics before it's over and done with.
  • acrylian Administrator, Developer
    Alright, if something is unclear on the tutorial (I hope not..:-)), just ask again.
Sign In or Register to comment.