Help selecting just one album

Atwookie

Joined: 2003-11-26
Posts: 7
Posted: Wed, 2003-11-26 07:31

Hi, I'm using the stand alone version of the Random block script, but I only want it to choose from one album. I attempted to hardcode this into the program... but I had no success.

So if anybody could help me, or can find where this was previously discussed, I would be very grateful.

Chris

 
Atwookie

Joined: 2003-11-26
Posts: 7
Posted: Wed, 2003-11-26 17:30

Nevermind, I got it. I searched for about 2 hours last night trying to find a post, and then after 10 minutes this morning... lo and behold there it was.

However, I did modify it to make it more efficient (One long if statement with && for each album, rather than like 7 if statements).

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Wed, 2003-11-26 17:33

Also have a look at this thread new version of gallery random block for postnuke

 
Warren
Warren's picture

Joined: 2002-07-24
Posts: 794
Posted: Wed, 2003-11-26 21:00

and... depending on what block you are using... the Joerg block (for PostNuke) does let you narrow it to just one album as you requested. I was thinking of the opposite: excluding one album, which my post above is to address more of. Then again... you probably are not using nuke.

 
Barracuda_2004
Barracuda_2004's picture

Joined: 2003-12-09
Posts: 27
Posted: Thu, 2003-12-11 18:33

Atwookie,
what did you change in the code? Would you mind posting your php script?

I am very interested in showing a random picture for each album 'preview'

Thanks,

Moritz