Member
Member
Phoonix   2009-04-01, 12:10
#1

I have as site that uses zenphoto as photo-album. On my frontpage of my site (not the album) do i want a random photo from a certain album from zenphoto.
I found this code on the site but I have no idea how to implement this:

`@readfile(’http://www.ksaizegem.be/zenphoto/zp-core/random.php?

num=9&height=50&width=50&class=one-image’)`

Can you help me with this?

Member
Member
flu   2009-04-01, 13:34
#2

I don't know if it still works with the new release (as I stopped using this random photo script for months) but here is the way I used it (which is not necessarily the best way to proceed, maybe there is a new function in ZP to do that) :

1.First, you have to create a file called random.php in your zp-core directory containing something like that :
`

Member
Member
Phoonix   2009-04-01, 16:15
#3

Thank you, your script works fine for me.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.