Are there any plugins for Zenphoto that replicate the 'photostream' view of Flickr? I've got some custom code on one of my sites which does this, by pulling images straight out of the database. If there isn't a plugin already out there, then I might as well clean up my code into a plugin for others to use.
Comments
Generally we would recommend to use the object model instead of the database directly for such special stuff.
For the Zenphoto database prefix there is a function called, well, `prefix('')`.
<MODERATOR NOTE: Content removed as we don't like unrequested ads here>
You can download it here:
http://code.google.com/p/wongm-zenphoto-plugins/
And here is a demo:
http://zenphoto.wongm.com/page/photostream
The number of images per page can be customised to fit your theme, you can also sort images by date (time images originally taken) or ID (time images uploaded).
It ships with a theme file that matches the default Zenphoto theme, it also includes a set of template functions for use with a theme of your choosing.
From a coding perspective, I have created my own classes that inherit from the standard Zenphoto Album and Image classes, resulting in many of the functions from template-functions.php to still work.
Just as a note, it would be possible to do a kind of photostream using the Zenpage CombiNews mode as well. But you would have to skip using news articles then. Maybe I should add a mode or parameter to only use images on that, too.