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.
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:
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.