Member
Member
johndpar   2009-11-05, 23:48
#1

Zenphoto is just what I need, and I've been customising my own theme (based on zenpage default) and some of the code to tailor it to exactly meet my requirements. I'm quite experienced with PHP.

I've created a MyGallery page for logged in users and I would like to present a list of the albums that are private to that user, in the same format as the gallery page.

getManagedAlbumList() gives me a list of those album names but I guess I really need an array of the album objects.

Any hints/tips/pointers?

Thanks

John

Member
Member
sbillard   2009-11-06, 01:44
#2

Instantiate an album object for each name.
foreach ($albumlist as $foldername) { $album = new Album($_zp_gallery,$foldername); do whatever you wish with the album here }

Member
Member
johndpar   2009-11-06, 10:31
#3

Many thanks. That's obvious now that I think how objects work in PHP.

I'll be sure to submit my site for the showcase when it is ready.

Thank you again.

Regards

John

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