I am currently trying to create an image loop for a particular album using the loop with no success.
I am making this on the index page of the theme I am creating. I believe that the function makeAlbumCurrent is setting to define the album for the images.
Thank you acrylian. But i am getting the error "Bad gallery in instantiation of album slideshow"
The code above I took from the Object Model Guide, but I found in the forums:
Seams to work!
Which is the correct code?
But i cannot pass the Loop with this??
Here is my code:
$_zp_gallery is a standard global object variable that contains the gallery object on themes so you don't need to create it. "$galleryobject" did not work because it does not contain the gallery object. You would need to create it first.
makeAlbumCurrent() requires the album OBJECT, not the name. Pass the object you just setup with $albumobject.
Thank you acrylian, looks like i need to brush up on my object skills in php!
For the attention of other forum uses (as I know i was searching around for this code for a while) this is how i selected a particular album:
I could then run the while loop to list the images in a particular album which enable me to use nivo slider from a zenphoto album.
I did suspect that, but it works better with it in. If I don't have that line in I get this error message:
Notice: Bad gallery in instantiation of album slideshow. in C:\Users\Tom\My Dreamweaver\Project Folder\Zen Photo Trial\www\zp-core\class-album.php on line 48