How to automatically delete pics(or albuns) with date. How to automatically delete pics(or albuns) with date.
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

How to automatically delete pics(or albuns) with date.

Started by evildance, June 08, 2005, 10:43:16 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

evildance

How to automatically delete pics(or albuns) with date.
Ex: 7 days later automatically delete.
Please teach me how to do.
Thanks!

Abbas Ali

You will have to create a cron script for this which automatically gets executed once daily. This script will search for the pics that are older than 7 days and then delete them. It is not an easy job to create such a script and will require certain skills. You can ask if anybody is willing to do so for you.
Chief Geek at Ranium Systems

Joachim Müller

on most shared/virtual host (i.e. when webhosted) you're not allowed to run cron jobs anyway. There could be another method of triggering the delete script, which is on access over http: you would have to add some if/then switch to a coppermine page that performs the check if the auto-delete script has been run on this day already; if not, execute it. However, you would still have to come up with this code on your own - coppermine doesn't come with this sort of script out-of-the-box.

Nibbler

There are functions in delete.php that can handle pic and album deletions cleanly. You'll just need a way to trigger the update as described above and select the appropriate pics based on their ctime.