![]() |
|
Integrating ZenPhoto in Wordpress - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Integrating ZenPhoto in Wordpress (/thread-503.html) |
Integrating ZenPhoto in Wordpress - spellmank - 2006-05-17 Hi, What is the best method to integrate ZenPhoto within WordPress? I've looked into ZenPress (http://simbul.bzaar.net/zenpress/), but it appears that it only allows for linking to one's separate ZenPhoto site. I like the way A day in the life... site (http://www.chilifrei.net) has integrated ZenPhoto in such a way that it looks like the rest of the site. Any assistance would be greatly appreciated. Thanks, Integrating ZenPhoto in Wordpress - Chilifrei64 - 2006-05-17 Put the following information in your zproot/index.php / Start Wordpress /
A couple of things to look for if you are calling your wordpress The other thing that I did because of conflicting css styles was I removed the zenphoto css file from the templates and merged it into my wordpress theme css file. This made integrating much easier. PS.. I wasnt trying to be a jerk on my board.. sorry if I came across that way, I thought you were asking questions about zenpress which I dont know much about other than I have it installed and it works for me. Integrating ZenPhoto in Wordpress - spellmank - 2006-05-17 I didn't think you were being a jerk at all. Sorry that you thought I thought that. : -) Thanks for the instructions above. I'll give them a try. spellmank Integrating ZenPhoto in Wordpress - spellmank - 2006-05-18 I hate to appear dim, but I'm not finding require_once('zen/template-functions.php'); or require(..wp-blog-header.php) in any of my theme/default files or zen/ files for that matter. Not sure how to edit those theme/default files if I can't find the "calls" you mentioned above. I'm very new to PHP so some I am a bit lost. However, I was able to edit the zproot/index.php and the image.php files successfully. I'm holding off on the css edits until I figure out how to edit the ZP templates. spellmank Integrating ZenPhoto in Wordpress - Chilifrei64 - 2006-05-18 All files that you edit are going to be zenphoto files. the require_once('zen/template-functions.php'); is located in your zenphoto root This is the file(really the only file) that you need to edit. NOT the index.php in your themes directory. Integrating ZenPhoto in Wordpress - spellmank - 2006-05-18 I'm getting this fatal error: Fatal error: Cannot redeclare is_valid_email() (previously declared in /var/www/vhosts/karaspellman.com/httpdocs/wordpress/zenphoto/zen/functions.php:88) in /var/www/vhosts/karaspellman.com/httpdocs/wordpress/wp-content/plugins/email/email.php on line 270 Any thoughts? Integrating ZenPhoto in Wordpress - Chilifrei64 - 2006-05-18 Did you do this fix?
Integrating ZenPhoto in Wordpress - spellmank - 2006-05-18 I had already done that. I replaced iseet($error) which looked like this (isset($error)) with this ($FIXME). Integrating ZenPhoto in Wordpress - Chilifrei64 - 2006-05-18 copy and paste your zproot/index.php into here so I can see.. also, do you have a link we can look at? Integrating ZenPhoto in Wordpress - trisweb - 2006-05-18 It's a conflict in the function name since I copied that function from WP ;-) Just rename it and its one use in Zenphoto and it should work. Sorry about that, how bout if I rename the function for the next release? Integrating ZenPhoto in Wordpress - spellmank - 2006-05-19 trisweb, Ahhh, so I shoul rename isset($error) something like $Oops? spellmank Integrating ZenPhoto in Wordpress - spellmank - 2006-05-19 Quote: Link: http://www.karaspellman.com/wordpress/zenphoto/ Integrating ZenPhoto in Wordpress - Chilifrei64 - 2006-05-19 I am sorry, I made a grammitical error.. dont put the code above into your index.php.. replace the old code with the code above. you should only have your second part.. it looks as if you have both the original code and the new code live and between php brackets? your zproot/index.php should look like this `` Integrating ZenPhoto in Wordpress - spellmank - 2006-05-19 Hi, I'm still getting that email error after making the changes to the index.php file above. Here is my code for the image.php from the default theme. Again I had changed isset($error) to ($FIXME). Should it be just $FIXME instead of ($FIXME)?
Integrating ZenPhoto in Wordpress - spellmank - 2006-05-19 Here is that email error again: Fatal error: Cannot redeclare is_valid_email() (previously declared in /var/www/vhosts/karaspellman.com/httpdocs/wordpress/wp-content/plugins/email/email.php:270) in /var/www/vhosts/karaspellman.com/httpdocs/wordpress/zenphoto/zen/functions.php on line 88 I took a look at line 88 in the ZenPhoto functions.php and it is this: // Determines if the input is an e-mail address. Stolen from WordPress, then fixed. I also looked at line 270 from email.php in WordPress: Function: Check Valid E-Mail Addressfunction is_valid_email($email) { Integrating ZenPhoto in Wordpress - trisweb - 2006-05-20 I told you above, you have to rename is_valid_email in zenphoto. It will not work without doing that. Just replace the string "is_valid_email" anywhere it's found in ZP code to "is_valid_email_zp" It's changed in the latest SVN if you just want to use that... Integrating ZenPhoto in Wordpress - spellmank - 2006-05-24 Sorry, trisweb, I'm new to PHP so I don't always follow what has been said above. When you said to rename a function I wasn't sure which one. I just needed more specifics. Thanks again for your help! Integrating ZenPhoto in Wordpress - ruzee - 2006-06-12 Here's another way of doing it (including a nice howto): Integrating ZenPhoto in Wordpress - webdev - 2006-07-13 thnx ruzee ! Integrating ZenPhoto in Wordpress - ny888 - 2006-07-20 I'm so close to getting this all to work I can taste it but need some clarification - I've modified index.php so now it displays with my header, sidebar, and footer. Only thing is that the zp content is not fitting inside of the blog alongside the sidebar. Instead, it's displaying below the sidebar and is taking up the width of the page. I must be missing edits ??? in index.php, album.php and image.php ?? |