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
Posts: 7
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).
Posts: 794
Also have a look at this thread new version of gallery random block for postnuke
Posts: 794
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.
Posts: 27
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