Random block to pull from directory other than default?

graystarr

Joined: 2003-02-06
Posts: 7
Posted: Thu, 2003-02-06 15:30

Hello,

I have gallery installed and works like a champ! I also have working the random picture block. What I would like is to use the random picture block for pictures that are not in my gallery. For example, I have a NFL team fan page. Currently my gallery random block pulls pics from uploaded pictures in my albums directory. I am trying to implement a cheerleader of the day and use the random block to do this. obviously ihave a directory already that has a bunch of cheerleader pics in it but its not on the gallery.
Can this be done? if so, your help would be much appreciated!

<!-- BBCode Start --><A HREF="http://65.103.253.148" TARGET="_blank">Utahraiderfans.com</A><!-- BBCode End -->

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Fri, 2003-02-07 10:48

Okay... off the top of my head:

Why not add the cheerleader photos to a new album in your gallery and then hide the album (presuming you don't want those photos in the gallery). This way they'll show up in the random block, but not in the gallery itself.

Otherwise, create a separate gallery for the cheerleader photos and use the random block for that.

If you don't want to put the photos in a Gallery format, then you're best off writing new code. You can also probably play about with the random-block code as a base concept. I'm sure there are already PHP scripts available on the web which will select a random photo from a directory, completely independent of Gallery. Check Google!

-Beckett (

)