Member
Member
gwmbox   2010-12-09, 04:44
#1
Does anyone know if there is a way I can retrieve the 'ID' or 'name' of the 'top' album ONLY to be used on the image.php page?, so for example if I had something like

AlbumOne
> SubAlbumOneA
> SubAlbumOneB
> > SubSubAlbumOneBA
> > > ImageOne < so I want to get the ID of AlbumOne
> > > ImageTwo < so I want to get the ID of AlbumOne
> > SubSubAlbumOneBB

AlbumTwo
> SubAlbumTwoA
> > SubSubAlbumTwoAA
> > SubSubAlbumTwoAB
> > > ImageThree < so I want to get the ID of AlbumTwo
> SubAlbumTwoB

AlbumThree
> SubAlbumThreeA
> SubAlbumThreeB
> > ImageFour < so I want to get the ID of AlbumThree
> SubAlbumThreeC
> > SubSubAlbumThreeCA
> > SubSubAlbumThreeCB

Thanks for your help

GW
Member
Member
sbillard   2010-12-09, 05:49
#2
`
$album = getUrAlbum($_zp_current_album);
$id = $abum->getID();
`
Member
Member
gwmbox   2010-12-09, 08:45
#3
Thanks, I have not tried it yet but it would appear that will give me the album ID of the immediate parent for the image? I was looking for the ID for the images TOP parent Album.

Thanks

GW
Member
Member
sbillard   2010-12-09, 18:36
#4
Well, you asked for the TOP parent. Maybe you should try this instead of speculating.
Member
Member
gwmbox   2010-12-10, 01:59
#5
Sorry, my apologies, you are correct and again I do apologise for my comment Smile

Thanks

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