Pages (2):    1 2
Administrator
Administrator
acrylian   23-11-2007, 16:20
#21

Right, getAlbumID() of course! getIDforAlbum() was a doubled function that we got rid of in 1.1. As I said it's been a while I made this...

Member
Member
teedog   23-11-2007, 20:09
#22

Thanks acrylian. Again, I'm just blown away by how far each of the zenphoto devs here go to help users. Don't have time to read through your function right now but will do later.

Here's a function I hacked up to be used in image.php (and album.php I think) which displays a dropdown menu of subalbums with the same parent when you are in a subalbum. That is, if Album1 has Sub1, Sub2, Sub3, and you are viewing Sub2/Image2, this function lists Sub1, Sub2, Sub3.

I'm a total noob so feedback is welcome.

`

Select Subalbum

Administrator
Administrator
acrylian   25-11-2007, 10:40
#23

Teedog:
I just did a quick test and have not really time to look into, but it shows no albums for me. Maybe just a typo while posting or so...

Member
Member
teedog   25-11-2007, 21:55
#24

Hmm I copied and pasted from my PHP file. Wonder if I messed something up when changing superficial text and variable names around. Anyway, not sure how adaptable/useful my function is to other people. It only outputs subalbums sharing the same parent in a dropdown menu. I can attach my file to Trac or something if you'd like.

Administrator
Administrator
acrylian   28-11-2007, 17:42
#25

Just wanted to tell: I found an error that prevented the display:
the "show" in the query needed to be escaped with backticks. Surely that happened when posting (the forum does these things...). It works exactly now as you said.
Maybe I can adapt this partly to the next print album menu version.

Pages (2):    1 2
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.