ZenphotoCMS Forum
Integration into my website? - 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: Integration into my website? (/thread-236.html)



Integration into my website? - tochiro - 2006-01-19

Hello,

And thank you for this software.

I have a website with specific headers and footers. Is it possible to integrate the gallery between my header and footers?

Cheers




Integration into my website? - Chilifrei64 - 2006-01-19

for your zenphoto index

Call your header

call zenphoto
require_once("zen/template-functions.php");
$themepath = 'themes';
$theme = $_zp_gallery->getCurrentTheme();
$_zp_themeroot = WEBPATH . "/$themepath/$theme";
if (in_context(ZP_IMAGE)) {
include("$themepath/$theme/image.php");
} else if (in_context(ZP_ALBUM)) {
include("$themepath/$theme/album.php");
} else if (in_context(ZP_INDEX)) {
include("$themepath/$theme/index.php");
}

Call your footer

Really you should just have to follow the hack on noscope.com

http://www.noscope.com/journal/2005/09/zenphoto-08-released




Integration into my website? - tochiro - 2006-01-19

Thank you! This is working.

But I have other problems just after installation.

WHen I try to upload a photo, here is the message I get:
Notice: Undefined variable: title in c:\documents and settings...
2006\zenphoto\zen\classes.php on line 377

Notice: Undefined variable: thumb in c:\documents and settings...
2006\zenphoto\zen\classes.php on line 516

Warning: Cannot modify header information - headers already sent by (output started at c:\documents and settings...2006\zenphoto\zen\classes.php:377) in c:\documents and settings...2006\zenphoto\zen\admin.php on line 58

I am working locally using EasyPhp




Integration into my website? - Chilifrei64 - 2006-01-19

do you get this message after or before integrating it into your site.. ?




Integration into my website? - tochiro - 2006-01-20

After and before.




Integration into my website? - tochiro - 2006-01-20

I tried the installation on my server (not locahost). I did as required but got the following error when trying to see my gallery:

Warning: main(classes.php): failed to open stream: No such file or directory in /home/.../zenphoto/zen/template-functions.php on line 7

Fatal error: main(): Failed opening required 'classes.php' (include_path='') in /home/.../zenphoto/zen/template-functions.php on line 7

So I think I will stop my attempts now and will try another software. But which???




Integration into my website? - sturmgas - 2006-01-30

This is exactly the same error on my screen. At the moment i am not integrating anything just try to install it. Could get into the admin create an album after that i want to view it and get that error as above. Probably a path-error but where?