This is less a theme in it's own right that a way to make zenphoto skin itself to
WordPress using the
K2 theme. If you wanted to make it work with a different Wordpress theme, just edit the header and footer files to match the theme's leaving the lines just above the </head> tag that deal with zenphoto (should be pretty easy to spot: 1 css link, 1 php function, 1 javascript) intact.
This will work with K2 custom styles as well (although you may need to tweak the zen.css to make it a perfect fit).
download it at
my development site and see it at
my gallery.
Comments
MySQL Query ( SELECT *, (date + 0) AS date FROM albums WHERE `folder`='carshow' LIMIT 1; ) Failed. Error: Table 'wordpressdb.albums' doesn't exist
I'm stuck.
I edited my index file and it worked. Although I switched back to the default ZP theme becuase I'm looking for an easier way to intergrate my album into wordpress. For example a plugin of somesort that would allow ZP to intergrate into a wordpress page.
I have a really thick question though... Install wise there were no instructions (I didn't see any?) so I'm wondering if I'm just supposed to upload the files into the k2 dir?
I did this anyway.. and it's all screwy
I would love if you could have a look if you get chance at www.funkypink.com
I used the original k2 header.php for 5 minutes and got past that error only to receieve another so figured I'm going badly wrong somewhere lol
help appreciated
Ilione
x
do you have any documentation on how to install? I'm getting errors, check it out.
www.richardcastellanos.com/pictures/
Do I need mod_rewrite for this work?
The header.php in k2 dir needs to be changed from photography/zen/ to your own zenphoto directory! So my own silly fault for not looking a the code I guess
I have anothe problem now though... lol
"Error: The 'albums' directory cannot be found or is not readable."
my zenphoto is working great! Just wish this thing would combine /
x
x
qtrc, you don't have anything installed at /pictures. i went to /zenphoto and found a sample gallery, but it doesn't appear to be using my theme. i have not tested it without modrewrite, but off hand i can't think of any code in there that should need it (the actually stuff that loads the photos is the same as the default theme).
Ilione, your problem is that you installed it in the wrong place. You'll need to reinstall K2 (the WordPress theme) back into /wp-content/themes/ and then put my theme into /zenphoto/themes/
One thing I didn't mention there (which I will add) is to get a tab to automatically show up in the menu, make a new page in wordpress. Make it's page-slug the same as the folder you've installed ZenPhoto. For example, on my site I installed ZenPhoto into a directory (folder, whichever) named "photography" so I made a page titled Photography which has the page-slug "photography". This gives you the tab in the menu. THIS DOES REQUIRE MODREWRITE though. If you're not using it, you will need to manually add a link. Email me for that one.
Managed to rectify immediately, but now having the same problem that kennysnipes had!
"MySQL Query ( SELECT *, (date + 0) AS date FROM albums WHERE `folder`='nrm-2004' LIMIT 1; ) Failed. Error: Table 'funks_wp.albums' doesn't exist"
Do I need to manually add this table? ) I'm having to shout at my host because phpmyadmin has disappeared lol
I did use the new version of your theme but the readme only mentioned the xif stuff. (Which by the way is another great addition!) Sadly, when I pasted the xif code into my template-functions.php it seems to cause a parse error?
I'm such a pain, I know /
x
I got your theme to work on my blog. You did a great job!!!
One question, how do I go about changing the album page? I want to seperate the photos just a bit.
Warning: main(../photography/zen/Sajax.php): failed to open stream: No such file or directory in /usr/www/users/ralph/spacewalk/zenphoto/themes/k2/header.php on line 12
Warning: main(): Failed opening '../photography/zen/Sajax.php' for inclusion (include_path='.:/usr/local/lib/php:.:.:.:.') in /usr/www/users/ralph/spacewalk/zenphoto/themes/k2/header.php on line 12
MySQL Query ( SELECT *, (date + 0) AS date FROM albums WHERE `folder`='mit-stata-center' LIMIT 1; ) Failed. Error: Table 'ralph_wordpress.albums' doesn't exist
Warning: main(../photography/zen/Sajax.php):
is pointing to photography directory. And you installed it in zenphoto so edit the line to:
/zenphoto/zen/Sajax.php
I hope that made sense. If not post again and I will give you instructions on what I did to get it working.
Also, "mit_stata_center" is the correct name of the only zenphoto album I have defined (so far) in this test installation of zp. So the K2 theme is getting that OK from zp, but is assuming (apparently) that zp uses the same db as WP. If I use the default zp theme, zp works. So I can't imagine why the K2 theme would be having this MySQL error, since I see no SQL queries defined in any of the K2 theme files themselves.
`MySQL Query ( SELECT *, (date + 0) AS date FROM albums WHERE `folder`='mit-stata-center' LIMIT 1; ) Failed. Error: Table 'ralph_wordpress.albums' doesn't exist`
So, this K2 theme probably works fine if you're putting your zenphoto tables into the WP db. But it doesn't work if you're using a separate db file for zenphoto.
Is there an obvious way to fix the K2 zp theme code, or do I have to use the WP db for my zp tables?
Beyond this, are there any other elegant ways to integrate zp and WP? I notice that the zp developers anticipate LOTS of WP integration. But is that going to happen anytime soon?
I can't honestly remember now though /
You can see I got it working on http://www.funkypink.org/visual/ though, as now my http://www.funkypink.com site has zenphoto standalone with a mere menu link to it )
I'm also awaiting the integration stuff with excitement!
x
I dl'd the code and read the readme, and I'm still a little confused. Will it pick-up the style that I'm currently using (fork)? Or, is there much more that I need to do?
Regards,
Chris
`
Warning: Cannot modify header information - headers already sent by (output started at /home2/horseboy/public_html/wp-content/themes/k2/header.php:6) in /home2/horseboy/public_html/photos/zen/template-functions.php on line 67`
`Warning: Cannot modify header information - headers already sent by (output started at /home2/horseboy/public_html/wp-content/themes/k2/header.php:6) in /home2/horseboy/public_html/photos/zen/template-functions.php on line 75`
Warning: main(../photography/zen/Sajax.php): failed to open stream: No such file or directory in /home/rdiaz/public_html/zenphoto/themes/k2/header.php on line 12
Warning: main(../photography/zen/Sajax.php): failed to open stream: No such file or directory in /home/rdiaz/public_html/zenphoto/themes/k2/header.php on line 12
Warning: main(): Failed opening '../photography/zen/Sajax.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/rdiaz/public_html/zenphoto/themes/k2/header.php on line 12
I don't have a /photography/ directory where can i change this setting?
Just a note of caution, I had trouble running wordpress 2.0 and zenphoto 1.0beta, I think wordpress changed somethings under the hood.
-richard
I've got it working on the latest svn of wordpress (2.1 alpha 1) and k2 (r171).
---
One thing I didn't mention there (which I will add) is to get a tab to automatically show up in the menu, make a new page in wordpress. Make it's page-slug the same as the folder you've installed ZenPhoto.
---
But I'm having a bit of trouble. I'm new to WP as well as ZP, but I can't seem to find a 'page-slug' anywhere. Is it something relatively obvious that I'm missing?
See a demo at www.cjsimmons.net/gallery
This is the code I have for the first 2 entries for the nav bar.
EDIT: I think some stuff was chopped out... Sorry.
<li class="<?php if (((is_home()) && !(is_paged()) && !(strstr($_SERVER['PHP_SELF'], '/gallery'))) or (is_archive()) or (is_single()) or (is_paged()) or (is_search())) { ?>current_page_item<?php } else { ?>page_item<?php } ?>">">Blog
<li class="<?php if (strstr($_SERVER['PHP_SELF'], '/gallery')) { ?>current_page_item<?php } else { ?>page_item<?php } ?>">Gallery
The first bit is the the tab called blog, and the second bit is for a tab called gallery.
I hope that I have explained it properly...
EDIT: I think some stuff was hidden. Hmm.
Thats what I get for not reading the thread entirely or using my brain! Simple enough got everything sorted out. Currently using K2 Reloaded v167 and it looks sweet. Just created a new page (pointing to the ZP internal page) which created a new header tab and viola!