![]() |
|
K2 for Wordpress Integrated "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: K2 for Wordpress Integrated "Theme" (/thread-148.html) Pages:
1
2
|
K2 for Wordpress Integrated "Theme" - dryan - 17-11-2005 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 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. K2 for Wordpress Integrated "Theme" - kennysnipes - 21-11-2005 I get this error when applying the K2 theme. MySQL Query ( SELECT *, (date + 0) AS date FROM albums WHERE I'm stuck. K2 for Wordpress Integrated "Theme" - dryan - 22-11-2005 what site is this on, maybe i can hhelp K2 for Wordpress Integrated "Theme" - kennysnipes - 22-11-2005 dryan, thanks for the offer to help. I did manage to get your theme to work with the help from this site http://www.noscope.com/journal/2005/09/zenphoto-08-released#comment-4569 K2 for Wordpress Integrated "Theme" - dryan - 25-11-2005 i'm not sure how a wordpress page would work since it would have a single address but zenphoto uses the unique url's to determine what photo you're looking for. K2 for Wordpress Integrated "Theme" - dryan - 03-12-2005 I've updated this theme to use the get_header() and get_footer() functions so any changes made to either one in the WordPress theme will be reflected. Also, took out my gallery description which I hadn't noticed I'd left in the public version. Finally, the version as downloaded makes a call to the EXIF function I wrote. There are instructions in the readme.txt for adding this function to zenphoto or removing it from the theme, your choice. Same link as above applies. K2 for Wordpress Integrated "Theme" - Ilione - 03-12-2005 Hi there, this is a fantastic thing because I just started using k2 and I've been watching zenphoto for ages! 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 K2 for Wordpress Integrated "Theme" - qtrc - 03-12-2005 dryan 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? K2 for Wordpress Integrated "Theme" - Ilione - 03-12-2005 Well I sorted out my problem, which may have been yours qtrc... 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 :o/ x K2 for Wordpress Integrated "Theme" - Ilione - 03-12-2005 Oh you seem to have sorted yours! Help? LOL x K2 for Wordpress Integrated "Theme" - dryan - 04-12-2005 sorry i didn't make it more clear but this is a theme for [i]zenphoto[/i] not wordpress. it goes in the zenphoto themes folder. then you activate it under the zenphoto themes admin. 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/ K2 for Wordpress Integrated "Theme" - dryan - 04-12-2005 By the way, it seems that you both my be using the outdated version of the theme, please redownload it. There's a readme included now as well. 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. K2 for Wordpress Integrated "Theme" - Ilione - 04-12-2005 Well that explains where I've been going wrong lol Managed to rectify immediately, but now having the same problem that kennysnipes had! "MySQL Query ( SELECT *, (date + 0) AS date FROM albums WHERE Do I need to manually add this table? :o) 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 :o/ x K2 for Wordpress Integrated "Theme" - qtrc - 09-12-2005 dryan, 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. K2 for Wordpress Integrated "Theme" - spacewalk - 03-01-2006 dryan: I get the following 3 errors when I try to use your zenphoto K2 theme (zenphoto is installed at spacewalk.com/zenphoto). Any thoughts? Thanks. 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 K2 for Wordpress Integrated "Theme" - qtrc - 03-01-2006 spacewalk: You need to edit the path of the header to your zenphote install. As you can see: 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. K2 for Wordpress Integrated "Theme" - spacewalk - 04-01-2006 qtrc: Thanks. Editing the path in header.php got rid of the first 2 errors. That leaves me with the MySQL error below (same one that Ilione reported above). You'll see a db named "ralph_wordpress" referenced in this error. That's the name of my WP db, but zenphoto uses an entirely different db called "ralph_zenphoto" -- which of course seems related to the error. Where is the K2 zenphoto theme getting the db name from? 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.
K2 for Wordpress Integrated "Theme" - spacewalk - 04-01-2006 Partly answering my own question: The problem is that the K2 theme requires WP's wp-blog-header.php file, which in turn requires wp-config.php, and that's where the db is being set to the WordPress db. 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? K2 for Wordpress Integrated "Theme" - Ilione - 09-01-2006 I think I fixed mine in the zen config by setting the db to zp and making a zp db -- then deleting the _wp in the speech marks of this line: $conf['mysql_prefix'] = " "; I can't honestly remember now though :o/ 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 :o) I'm also awaiting the integration stuff with excitement! x K2 for Wordpress Integrated "Theme" - genosypheus - 09-01-2006 looks very promising, but does this zp theme works with K2 beta 2 r157 on WP 2.0 ? |