Jump to content

Recommended Posts

Hi, I created a simple user gallery that allows anybody to upload photos to it. I now want all uploaded photos sent to a queue to await for approval by me. When the 'approved' checkbox is clicked for a particular photo (or multiple photos), the photos are then published to the public gallery.

 

I need some advice on how to approach this. I'm not asking for a complete solution; I just need something to go by in my research and I'll work to figure it all out.

 

Thank you.

Link to comment
https://forums.phpfreaks.com/topic/161834-user-gallery-with-queue-for-approval/
Share on other sites

You should have a field in your database called something along the lines of, "approved".  The values should be either '0', waiting for approval, or '1', for approved.  That way, when you display the gallery you can include this condition in your query to only display the photos that have been approved.

 

As for listing the queued photos, you can do the opposite.  You can list all of the photos in the queue with a '0' for the "approved" column along with a corresponding checkbox.  When you submit this page it should iterate through all of the checked photos and update the database to have these photos approved (1).

 

Do you have any of this page setup yet?

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.