Member
Member
tochiro   2006-01-19, 15:55
#1

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

Member
Member
Chilifrei64   2006-01-19, 16:07
#2

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

Member
Member
tochiro   2006-01-19, 16:25
#3

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

Member
Member
Chilifrei64   2006-01-19, 23:36
#4

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

Member
Member
tochiro   2006-01-20, 08:12
#5

After and before.

Member
Member
tochiro   2006-01-20, 17:37
#6

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???

Member
Member
sturmgas   2006-01-30, 16:41
#7

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?

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.