• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space

Expiration date for images

Avast

👽 Chevereto Freak
Hey guys,

tightwork/Bryan asked this question about 1 year ago (http://chevereto.com/community/threads/public-gallery-expiration-date-on-images.2349/)

Does someone know, how to realize it?

________

Could it be possible to write a counter function, which compares the expiration value with the timestamp of the uploaded image?
After comparing it, it could execute the following function to delete the database record and the image-files: must_delete_image_record().
EDIT:// wrong function , it only deletes the record if it can't find the image.

But soft-deleting without deleting the record in the database would be better, so no id will be in use twice.
 
there is the built in class function to remove image + record. Check the manage.class.php
 
Back
Top