Hello,
I liked the idea, but there is one conceptual "error" about your mod.
It runs every 30 days (23:00 of day 1) and deletes ALL soft deleted posts. This means that if I soft deleted a message on the 30th of the month, it will be deleted on the following day, i.e. just 1 day after being soft deleted.
I believe that the best way to run this script would be to run it every day and delete all soft deleted posts that are older than 30 days or any other configurable timeframe.
So all soft deleted posts would be available on our forums for 30 days.
I changed the code and attached it to this thread if you want this script to behave the way I describe. Besides replacing deletsoftpost.php you need to change the schedule job to run every day instead of running every 1st of the month.
Enjoy!
Cheers,
Gabriel.
|