source
http://blog.dukechina.org/zp.tgz //my code is poorly commented
live demo
http://blog.dukechina.org/zp/
I modified zp 1.0 to support sub-catigories.
if you have any question contact me by email or leave a message on my website
http://blog.dukechina.org/
I also add a slideshow function, see demo
http://blog.dukechina.org/gallery/photography/dukefall/slideshow
ajax.js was modified for better view.
@WeiChen: Welcome to the Zenphoto + Wordpress community! Truly great feaures you've implemented to zenphoto, especially the slideshow and pop-out comment. Looks smooth, both in FF 1.5 and IE 6.0.
A quick suggestion: Lower the comment pop-out such that it won't block the photo.
I'll be following your contributions, God bless!
fungifred: I agree with you that the gallery should be small and flexible. That's why I like zenphoto. However, when I realize it does not support sub-catigories, and waited several days for the new release, finally, I decided to write my own gallery. What you see at http://blog.dukechina.org/gallery is actually written all by myself. But about 10% of the code and the default theme are from ZP. It seems the zp developers are not interested in implementing sub-cats, while many users are expecting this feature, so I spent several hours yesterday to implement this feature to zp. But still there's a lot to do to optimize the code and structure of zp.
I like the popup commenting, because most people do not comment, and it is a waste of space to show the comment form for each photo. and It is ajaxy. I don't know why it did not work for you. As for the slide show, some of my friends are crazy about it, and it is just my theme, and do not need any support in zp's kernel.
I dont think there is much need for you being so negative towards the developers, they have said they are working on it. They have families and lives, so needless to say, they cant work on Zenphoto all the time.
Your contribution is appreciated but your attitude is not.
Yes, it is possible.
download the slideshow code here,
http://blog.dukechina.org/slide.tgz
extract it to your theme folder and add
/////////////
////////////
in the beginning of your album.php
then the link to your slidesshow is
http://xx.xxx.xxx/zp/index.php?album=others&slideshow
that is the link of your album plus "&slideshow"
Hello WeiChen
Is it possible to only use sub-catigories, and not slide show?
thank
I can't see image... :
Fatal error: Call to a member function on a non-object in ....classes.php on line 761
any suggestion?
thank
Solution of Wei Chen :
just change this line in index.php
include(???$themepath/$theme/slideshow.php???);
to
include(???$themepath/$theme/image.php???);
picus:A hacked version of zp add the sub-cats can be find here:
http://blog.dukechina.org/zp.tgz
It works, but still a lot work to do. you can try out.
It works wonderfully:
http://www.rockpaperpixels.com/zenphoto/
Here are a couple suggestions for future versions/releases. I am working on these now but I'm an admitted php newb.
Add functionality to the admin page so it understands sub folders. As it stands you can not select the sub folders unless you manually edit the url when you're editting an album.
Descriptions do not seem to work in sub-categories. It would be great to have that abilty.
Otherwise it looks awesome. Thanks so much!