Random Photos in Media RSS

Hi,

I'm just putting the final touches onto my first Zenphoto site and I have come up with an idea that I could use some help implementing. I'm fine with coding but a bit of Zenphoto guidance would be appreciated.

I'm looking to use a Media rss stream that will load a random selection of images when it is called. The idea is that I can use this to power my WiFi digital photo frame and provide the family with a fresh set of images every day.

Can anyone suggest ideas for the best way to implement this type of functionality?

Thanks!

Comments

  • acrylian Administrator, Developer
    Zenphoto already has rss feeds that support the media rss extension. However, it does not support random images.

    So you will have to look at the exisiting rss feed and modify it to do that. You will have to code your own plugin for this. You should get familiar wiht Zenphoto's object model, you find a tutorial on the user guide.
  • Thanks for the info acrylian. I suspected it would go that route but as with all new systems, it is worth asking the question first.
  • acrylian Administrator, Developer
    I referred to a plugin btw because the urls of the three types of rss feeds we have (gallery images/albums, articles (Zenpage CMS plugin ) and comments) are built in. So you can't just add another one to /zp-core/rss. The core stuff naturally should not be modified.

    Edit: There are already functions for random photos. Take a look at the functions documentation as well.
  • Excellent... That's really useful! Thanks!

    watch this space... well one in the plugins forum anyhow!
  • acrylian Administrator, Developer
    All right...;-) Then best read the http://www.zenphoto.org/2009/11/general-contributor-guidelines/ as well!
Sign In or Register to comment.