Hello again,
Ok, here's what I'm after: I'm letting users upload images and Zenphoto is showing them fine. But I want to be able to review them before the images are seen in the gallery. I added a new field "status" to the images table, which is 0 at default. When I approve the image, I set the "status" to 1. And what I want is to display only images that have "status" set to 1.
The only SELECT query for the database which I found was in the classes.php using the entry variable. I tried to add my check here but it didn't work. If someone could tell me how I can manage to pull this off, I would be really greateful.
Comments
After that, just add a check to the Album->getImages() method ...
`foreach ($files as $file) {
$image = new Image($this, $file);
if ($image->status != 0) {
$images[] = new Image($this, $file);
}
}`
Bingo. That should do it.
Ah, I'm so happy (for a while), thanks a million!