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:
<?php
define('ZENFOLDER', 'zp-core');
define('WEBPATH', 'zenphoto');
require_once(WEBPATH . "/" . ZENFOLDER . "/template-functions.php");
?>
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?
Comments
<?php
define('zenphoto', 'zp-core');
define('WEBPATH', 'zenphoto');
require_once(WEBPATH . "/" . zenphoto . "/template-functions.php");
?>
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.
The randon image function is nice, but how do I display the albums from the gallery instead?
Would you be so nice, to post the code here?
my code looks like this:
<?php
require_once("zenphoto/zp-core/plugins/print_album_menu.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Unbenanntes Dokument</title>
</head>
<body>
<?php
printAlbumMenu("list","count","album_menu","album_menu_active","album_menu_sub","album_menu_sub_active");
?>
</body>
</html>
I get this error:
Fatal error: Call to undefined function rewrite_path() in /www/htdocs/w006b63d/v2/zenphoto/zp-core/plugins/print_album_menu.php on line 163
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?
See http://www.zenphoto.org/2008/01/hacks/#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 just can see:
Member since + Occupation and the last posts.
But anyway, can you help me to integrate zenphoto in my site as a plugin to show the albums with thumbs?
With the print_album_menue plugin I can just display links (as a list or drop down menu) to the gallery/gallery albums, but I can't display the gallery like a "mirror" of the zenphoto index.php (with the current theme, thumbs and so on)?
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.
There is a plugin called Zenpage to run a complete site with Zenphoto: http://zenpage.maltem.de