http://www.trisweb.com/photoshttp://www.trisweb.com/photos/index.php?album=Europe+2006The theme is an updated testing theme, hastily made. I'll be porting the default theme as well for the 1.1 release eventually.
SUB-ALBUMS ARE NOT COMPLETE YET. The administration interface is in the works, and simply
does not work yet. mod_rewrite, sorting of subalbums and their images, and and much more needs to be done.
In the meantime, there will be a 1.0.4 release early next week (ran out of time this week) for the bugfixes and improvements made in the last 6 months (so sorry).
Here's a secret...For those of you anxious to get the jump, the 1.0.4 release will actually be from the sub-albums branch, and I'll make the sub-albums theme available. The limitations are, of course, no mod_rewrite, no administration, no paging of SA's, and no sorting of SA's or their images. But it's fun to play with and works exactly like before apart from that.
Comments
I am one of those anxious people... do you expect many other significant changes with the code for 1.0.4 between now and the release.. I may just port my main gallery over this weekend?
(dammit, i gotta learn how to use svn)
http://dh.trisweb.com/websvn/dl.php?repname=zenphoto&path=/trunk/&rev=0&isdir=1
You guys know the drill for the install. DB has been updated, so run upgrade.php. Shouldn't change much before the release.
Edit 12/6/06: Updated the download URL above for the move to /trunk
The reason why I ask is because when I load it up, it'll read the first image in my SA on the main page (index.php) but then when I click on it, there isn't any kind of indication that it reads the SA in there, it's as if it were an empty gallery.
Is that what you mean by paging of SA's?
http://www.thinkdreams.com/zensub
I like the fact that you can have pictures in a "root" album, and then addtional subalbums underneath that.
Now to port my theme over and see if I can break it. (Evil Laugh...)
Tristan- Let me know if you need me to experiment with anything specific, otherwise, I'll see what breaks, and let you know.
I also just finished porting my theme to support subalbums and really it was very easy, you only need to edit the album.php
Ill let you know if I come across anything else.. but until then.. congrats on another fine piece of work.. (I know it is early and 1.0.4 still hasnt been released.. but I just couldnt wait any longer)
http://www.chilifrei.net/zp
On any gallery page, I get about 25 lines of:
`
Warning: Invalid argument supplied for foreach() in /path/to/zenphoto/gallery/zen/kses.php on line 429
`
followed by:
`
Warning: Cannot modify header information - headers already sent by (output started at /path/to/zenphoto/gallery/zen/kses.php:429) in /path/to/zenphoto/gallery/index.php on line 9
`
Where /path/to/zenphoto/gallery is the path to my gallery on my webserver.
This also occurs under the theme management page. Something in my database not right, or did something not upload properly?
The items I'm still working on:
1. Look and Feel (obviously this takes time so mind the "gaps" and silly CSS)
2. RSS Feeds (I removed them due to overwhelming the server when someone clicks on the album rss feeds - I think something with the code and subalbums). This is real low priority for me since it was hacky to begin with, and eventually Tris plans on it in the code.
3. Hit count and Most popular have been removed for now, as they are making calls to getImageID() and I'm not sure why they are failing, but I suspect the Persistent Object changes.
Otherwise, even without mod_rewrite it's going well. Hopefully I can port my non-dev side over soon. Definitely a noticable speed improvement from 1.0.3 and I like the subalbums capability. It definitely makes organization of albums a lot better.
Either merge your old zp-config.php into the new one, or just manually copy the new config lines into your old one. There are two or three or four I think, I forgot which.
@thinkdreams -- Looks great! About the RSS feeds and other hacks, it's probably the new way images/albums are stored in their arrays -- they used to be objects already, but now they're just file and folder names (strings). That's where most of the speed improvement comes from. If you want an actual object from those names, you have to call `new Image($album, $filename)` or `new Album($foldername)` and then continue as normal.
Edit -- Check the other thread you posted, but it's actually now Image->id instead of Image->getImageId() which has been removed. Sorry about that
FYI To all: the subalbums branch (at `/branches/subalbums`) has been moved to `/trunk`! 1.0.4 will be released very soon from there for all the improvements made so far, and the subalbums infrastructure in there will not affect the current single-level themes.
I've edited the link to the tarball above, but here it is again if you still want to play with it.
http://dh.trisweb.com/websvn/dl.php?repname=zenphoto&path=/trunk/&rev=0&isdir=1
Remember this is DEVELOPMENT TESTING CODE and no promises of stability or security can be made.
Thanks Tristan. I'll make sure to check it out.
During my perusal of the subalbums functionality, how does it assign a default image thumb to the root album? I've looked in the DB, and even added an entry in the album's thumb field for a new thumb, but there was no change on the thumbnail chosen. I'm just curious.
$_zp_current_image->id to replace getImageID()
As a suggestion, you might want to comment on that function in the code, it's still in the template-functions.php file so that people know to use something else from now on. (Unless you are already way ahead of me on that....)
In case anyone is checking, I removed my testing DB altogether and ported everything to my main gallery. A little DB work, and I have most of my comments back on (I only had two so it wasn't a great deal of work)
It's at: Thinkdreams Zenphoto. Some things still may look a bit funny, but all in all it's nice.
Re: default thumbnails -- it's all in the method `Album::getAlbumThumbImage()` Currently it looks for the first image in the directory, and if none is found, it keeps recursing sub-albums until it finds one. Nothing is stored yet for sub-albums, or overridable for that matter. That's to come with the official release 1.1.
(Sorry, I'm just excited seeing the daily activity on here again.)
You "beta testers" noticing any other bugs?
We should have an IRC channel...
As for bugs, I noticed that sorting sub-albums are not yet available. Is this how it should be or did you just forget about it?
Thanks Tristan!
Uploading the release in a few minutes...