|
|
Joined: Jul 2001
Posts: 442
Enthusiast
|
Enthusiast
Joined: Jul 2001
Posts: 442 |
How do I remove all posts from a forum that are older than 30 days?
Last edited by Dave_L; 06/14/2002 11:46 AM.
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
I'm not sure that would be easy to do with a MySQL query, since you'd have to deal with deleting posts that have replies, and there may be multiple tables that have to be updated.
Why not just edit the forum settings to expire posts after 30 days?
|
|
|
|
Joined: May 1999
Posts: 241
Coder
|
Coder
Joined: May 1999
Posts: 241 |
and make sure your cron is configured to run the doexpire script... 
|
|
|
|
Joined: Apr 2002
Posts: 1,768
Addict
|
Addict
Joined: Apr 2002
Posts: 1,768 |
Good point. I was thinking that "Delete Thread" did this, but I was mistaken. The message that "Delete Thread" displays is misleading, and implies that all expired threads are deleted.
|
|
|
Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.
Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
|
|
Posts: 87
Joined: December 2001
|
|
Forums63
Topics37,575
Posts293,931
Members13,824
|
Most Online6,139 Sep 21st, 2024
|
|
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
|
|
|
|
|