Selective Albums on Random Photo Block

overcode

Joined: 2002-12-21
Posts: 1
Posted: Wed, 2003-08-06 18:35

Hello all,

I came across this code to selectively prevent an album from showing up in the random block.

$name = $tmpAlbum->fields["name"];
if ($name != "do_not_show_album") {
if ($numPhotos > 0) {
$cache[$name] = $numPhotos;
}
}
}
}
}
?>

This is what I would like to know:
Is there a way to prevent "hidden" albums OR photos from showing in the random block? This way, if a gallery admin does not want an album or photo showing up in the random photo block, all he/she has to do is hide the photo or album.

Thanks for the help