ZenphotoCMS Forum
Zenphoto into Wordpress theme - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Zenphoto into Wordpress theme (/thread-2961.html)



Zenphoto into Wordpress theme - fogpuddle - 25-05-2008

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




Zenphoto into Wordpress theme - bpetruzzo - 09-07-2008

I'm having the same problem.




Zenphoto into Wordpress theme - acrylian - 09-07-2008

Maybe try this one: http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin




Zenphoto into Wordpress theme - bpetruzzo - 09-07-2008

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.




Zenphoto into Wordpress theme - acrylian - 09-07-2008

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.




Zenphoto into Wordpress theme - bpetruzzo - 09-07-2008

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.




Zenphoto into Wordpress theme - bpetruzzo - 09-07-2008

Actually, now that I go back and reread the very first post here, my problem is actually identical to fogpuddle's.




Zenphoto into Wordpress theme - BertSimons - 10-07-2008

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...

`

">

`




Zenphoto into Wordpress theme - bpetruzzo - 10-07-2008

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! :)




Zenphoto into Wordpress theme - cox - 03-08-2008

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/




Zenphoto into Wordpress theme - Bilder-Freak - 27-08-2008

Doesnt work for me either with ie7 - anyone has a fix?




Zenphoto into Wordpress theme - Michael - 02-12-2008

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?




Zenphoto into Wordpress theme - acrylian - 02-12-2008

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.




Zenphoto into Wordpress theme - Michael - 04-12-2008

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.




Zenphoto into Wordpress theme - acrylian - 04-12-2008

Alright, if something is unclear on the tutorial (I hope not..:-)), just ask again.