Hi,
I know this has been discussed before, but I can't get this working...
I would like to use ZenPhoto 1.2.2 as a plugin, I have created a php file with this code:
When I open this php file on my server I get this error message:
Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w006b63d/v2/test.php:9) in /www/htdocs/w006b63d/v2/zenphoto/zp-core/functions.php on line 1894
What does it mean?
I have read now, I have to change nearly all of the variables, the code in my new php file looks like this:
or replace zenphoto with the name of the folder in albums?
require_once(WEBPATH . "/" . zenphoto . "/template-functions.php");
?>
doesn't work, too
I still get the same error.
Zenphoto is installed in zenphoto.
it's gone.
Maybe, you can just tell me, what the correct code is?
To use the print-album plugin, I thought I have to enable the plugin in the admin panel/plugins + write down the "require_once" part at the beginning of my php file.
I link to the print_album_menu.php, not not the template-functions.php like it's written in the first post, is this correct or not?
The way how to link to the php file with
"zenphoto/zp-core/plugins/print_album_menu.php"
or
"define('ZENFOLDER', 'zp-core'); ... and so on"
is the same I guess, or not?
The code in the example is the basic recipe for using zenphoto from outside the album. It establishes the zenphoto environment. In addition to establishing the environment you need to load any plugins you wish to use.
See http://www.zenphoto.org/2008/01/hacks/#zenphoto-as-plugin
Sorry, but this doesn't help me... maybe you can see in one of my previous posts, that I already know this link (zenphoto-as-plugin).
I have seen now, someone else has the same problem, at this point excuse me, for opening another thread - I have used the search, but I didn't noticed this thread:
http://www.zenphoto.org/support/topic.php?id=4742#post-28064
For me it's the same, I'm not using thickbox, but Highslide JS, which has the same typical lightbox overlay background effect, which looks stupid inside an iframe.
The other thread from Jahan77 didn't come up with a real solution, it ended up with to look in a album.php from a theme, but this can't be the answer to his second last post.
How can I contact/send pm's to other members, like Jahan77?
I have found now function in the forum for it...
I want to use zenphoto, but not on an extra page. I want to integrate the gallery in my existing website, in a div (id="content").
I don't use Wordpress (not yet), for Wordpress there are several plugins to integrate zenphoto in an existing website/blog, for static html pages there are no plugins.
I've read "include" for zenphoto doesn't work, to use Ajax for this should have pro and cons, so... I think I need to use iFrames, which seems to be outdated and what you read is, not to use frames for websites, but I don't see any other solution.
Why don't you just make your theme look like your site. Your visitors will not notice the difference..
There is a plugin called Zenpage to run a complete site with Zenphoto: http://zenpage.maltem.de