![]() |
Here is a simple script that I just hacked up that will delete all private messages older than 60 days old. Just copy the code to a new file, put in your forum root directory, and run it.
PHP Code:
|
What do you mean put in "a" file? a php file? Another question, are you saying I would have to run this file everytime I wanted it to delete the messages or do I just have to run it once? If so is there a way to get it to automatically do this instead of needing to be manually ran?
Thanks for any info you can provide. :tu: |
It would need to be executed...every time it would delete ALL PMs (for all users) older than 60 days. If you wanted it run regularly without your intervention, you'd need to ask your webhost about setting up a crontab.
|
What version is this for?
|
It's simple enough that I think it'll work for any version that supports the PM system.
|
TY!! TWT :)
|
Can we get something like this that does it automatically?
|
Lubi, just create a cron job for the script.
Amy |
Which numbers would I change if I wanted a figure other than 60 days? Say 6 months? (180 days)
|
anyone have any idea on which number to change? The last 60?
|
All times are GMT. The time now is 02:51 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|