Hi,
I have just started experimenting with zenphoto locally on Mac OS X using the MAMP environment. I have set-up a gallery easily and have now run into problems with the super gallery. I have the first gallery set-up using the default 'super gallery' theme, in the root of that gallery I have a folder with another installation of zenphoto using the normal default theme, which works fine if I access it directly but nothing appears on the main page of the 'super gallery'. Both are using separate databases and thus separate admins.
I have noticed when looking at the code generated for the main 'super gallery' index.php that the html is not being completed I must be doing something wrong but cannot figure out what. Or is it MAMP?
The HTML is below.
Thanks
Steve
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/2002/REC-xhtml1-20020801/DTD/xhtml1-transitional.dtd">
<html xmlns="
http://www.w3.org/1999/xhtml">
<head>
<title>Test Photo Gallery</title>
<link rel="stylesheet" href="/zenphoto/themes/default supergallery/styles/dark.css" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="Gallery RSS" href="
http://localhost:8888/zenphoto/rss.php" />
<script type="text/javascript" src="/zenphoto/zp-core/js/scripts-common.js"></script>
</head>
<body>
<div id="main">
<div id="gallerytitle">
<h2>Test Photo Gallery</h2>
</div>
<div id="padbox">
<div id="albums">
<div class="album">
<div class="thumb">
----------
I seem to have a problem posting the above HTMl - sorry
Comments
I have tried using the same database with a different prefix for the 'sub gallery' but that gave me other problems so I thought simpler to use 2 separate ones. The result however was the same nothing showing up on the main page of the 'super gallery'.
On the super gallery main page I get the following error:
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/themes/default supergallery/index.php:6) in /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/zp-core/functions-image.php on line 25
Both the galleries use separate databases and the 'sub gallery' can be viewed fine at http://www.in2image.net/test/zenphoto/gallery2/
Any ideas?
Steve
Oh yes if I change the 'super gallery' theme back to default it works fine.
Thanks
Thanks for responding. Just tried the 'effervescence' super gallery theme, my online test gallery still gets this error:
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/themes/effervescence_plus supergallery/customfunctions.php:94) in /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/zp-core/functions-image.php on line 25
My local install using 'effervescence' super gallery theme shows no links to the 'sub gallery' as with the default 'super gallery' theme.
By the way, I really love zenphoto, I have been looking for something like this for a while now, I have tried most of the others:-(
I love the clear layout of the admin, and the super gallery is just what I have been looking for! Hence my eagerness to get it working.
Warning: putenv() [function.putenv]: Safe Mode warning: Cannot set environment variable 'LANG' - it's not in the allowed list in /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/zp-core/classes.php on line 319
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/zp-core/classes.php:319) in /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/index.php on line 22
Warning: Cannot modify header information - headers already sent by (output started at /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/zp-core/classes.php:319) in /mounted-storage/home11/sub002/sc16868-CUDJ/in2image.net/test/zenphoto/zp-core/functions.php on line 1568
I don't know what safe mode gid is. Sorry.
New question: Is there or will there be a way to choose which thumbnail is displayed for a 'sub gallery' on the 'super gallery' main page? Am I right that at the moment it will display the first image in the first album of the 'sub gallery' ?
There is another approach you can take if mod_rewrite works on your site. Rather than use the supergallery theme, you can use a regular theme. What you have to do to make this work is create a folder for each subgallery in the main zenphoto albums folder. Give it the same name as the folder for the subgallery. Then put the image you want for a thumbnail in that folder. You would also have to edit these albums to display any titles or descriptions you wanted for the subgalleries.
Another advantage of this approach is that you can mix regular albums with supergallery albums. The only drawback is that it requires mod_rewrite.