zenphoto 0.9
September 27th 2005
Zenphoto 0.9 fixes a lot of stuff. From the changelog:
- Removed web_path and server_path config variables. They are now automatically deduced (and there was much rejoicing).
- Added theme functions:
getPrevImageThumb()andgetNextImageThumb()– return the path to the thumbnail of the previous or next image relative to the current image. - Fixed bugs with using next_image() (for iterating through all album images) on an image page. You should now be able to use any loop anywhere without affecting the state.
- [Bug 005102] Images smaller than the standard image size will not be sized up anymore.
- [Bug 005125] AJAX-editing no longer strips HTML from titles/descriptions.
- [Bug 005086] Using zenphoto without mod_rewrite should work fine now.
Go grab it at zenphoto.org.








you are a genius my friend. i can’t wait to update!
Genius indeed. Great job!
I upgraded from 0.8 and it’s working great! Thanks!
Beautiful stuff, Tristan.
Eventually, I’d like to do a few changes to the default theme. Specifically, I think it’s a good idea to include the next thumbnail and the previous thumbnail IN the next/prev buttons. Also, there’s just something about the header / breadcrumb combination that doesn’t have enough space.
Perhaps for the big 1.0?
By the way, my friend on IIS is still having a few problems with his ZP .9 installation. He’s getting this error:
Notice: Undefined index: SCRIPT_FILENAME in [url]zenconfig.php on line 86
and later on
Notice: Undefined index: SCRIPT_FILENAME in [url]zenconfig.php on line 90
Error: The 'albums' directory cannot be found or is not readable.
I just noticed some things.
On IIS, the variable called
$_SERVER['SCRIPT_FILENAME']doesn’t exist.The closest match is
_SERVER["SCRIPT_NAME"], which returns the filename with a preceeding slash, for instance/phpinfo.php.Hmmm… that’s a hard one. I gotta have the path somehow. If you could look on IIS for whatever variable has it, that’d be great.
Until then you can hardcode the path at the bottom of config.php to make it work.
Im allso seeing some weird behavoir.
Everything works well up to, I have to enter my username/password in the setup located at:
http://foto.simz.dk/zen/setup.php
I enter the data and suddenly I get a 404 error at:
http://foto.simz.dk/cgi-system/zen/setup.php
Im running PHP-CHI over at dreamhost. Expect that to be the problem. $_SERVER[‘SCRIPT_NAME’] dosen’t return the right variable.
Yep, you’re right. Simon, if you could send me a dump of a phpinfo() that would be most helpful. Send it to trisweb at this domain. Thanks.
Mail shipped.
I am also on Dreamhost and was having the exact same “cgi-system” issue as Simon. Running as PHP-CGI.
I just fixed my problem and it works like a charm.
In .htaccess I set:
RewriteBase /home/username/photos.pengins.net
My ZenPhoto install is actually in photos.pengins.net/zen and I had to leave off both the /zen and the trailing slash.
In my Dreamhost control panel, I set the subdomain that I was running Zen on to run as PHP5.
Once I did that, I went to setup.php and happily saw:
database connected
We’re all set to create the database tables: zen_photos_albums, zen_photos_images, and zen_photos_comments.
Go!
Maybe this will work for you.
Oh yea, and after I got it installed, I had to change
RewriteBase /home/username/photos.pengins.net
to
RewriteBase /zen
and then everything worked just fine.
Yeah, that .htaccess stuff can be a pickle sometimes. Just have to set it to the relative path from the base domain.
From Simon’s email I think I have a better way to get the server path variable that should fix this weird php-cgi stuff (which I’ve never even heard of!). I’ll get a bugfix release out soon to address that.
tristan, i thought you might be interested to see this…
http://www.maxkiesler.com/index.php/weblog/comments/147/
Timothy – those are very interesting.
It’s also interesting to note that anyone can make those kinds of interfaces with Zenphoto. I believe it has a very robust backend, and the theme engine really is capable of anything you want to use it for. Not to mention you can switch back and forth between that and a standard interface, or even provide a simpler and more accessible interface for less abled users.
Frankly, they’re hyping the buzzwords. I mean, who puts a “bookmark this page on del.icio.us” link on a web site? That’s just arrogant man.
Personally I believe AJAX needs to be used with more discretion. The browser does a great job at loading new pages and running the navigation like users know, and throwing all that away is just ignorant. AJAX is a great technology when it’s used right, but I see it as nothing more than a pretty tech demo when used exclusively.
i agree whole-heartedly and was merely pointing out their version so you’d see just how much better yours is… i know i noticed the difference.
Just came across ZenPhoto and I love it. I currently use coppermine and am going to make the switch to zen very soon.
I made a modification to the thumbnail script so that sharper thumbnails are created. You can see an example at http://www.imalm.com/zp/house/
Please email me so that we can get this enhancement into the code.
Hi, I was looking for something nice and clean just like ZenPhoto, but need support for different languages.
So I added a simple way to translate the strings into different languages and created a german translation. Drop me a mail if you are interested ;o)
Currently working on setting up Zenphoto and wanted to report that the way you resolve paths does not work on a CGI-PHP based host like dreamhost. I can tweak the code a bit – and probably will – ‘cause I want this thing to work.
Robb – I am aware of that bug. Hopefully will be fixed for 1.0. Path resolution will definitely be improved at the very least. Thanks for testing!
Any way that some sort of financial contribution would speed up the development process?
Ooooh… I’m sure it wouldn’t hurt…
Is there a donation system already in place?
Hello Tristan,
Thanks for your Zenphoto that I recently discovered. As a contribution, for your next version, I’ve made a french translation you can see here: http://entrevoisins.free.fr/zenphoto/
I’ve also translated the admin. I can send you all the files in french and I can translate every new stable version as well.
All the best and congratulations for this beautiful stuff!
Yann