|
|
|
|
Joined: Aug 2002
Posts: 6
Lurker
|
|
Lurker
Joined: Aug 2002
Posts: 6 |
I need to drastically prune my forums, but want to preserve the posts. They do not have to be accessible via a database. A flat text file (or files) will do.
Any recommendations? Does software exist to do this or am I going to have to create it?
Chuck
|
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
well first off backup your database that way you have a copy of it I recommend using phpMyAdmin for that secondly there is no real easy way to "prune" you can set up a sql query to delete old threads say past a Unix Time since they are stored in Unix Time but you would have to delete all polls, all posts, and hope no threads newer link to them. it's not an easy task.
|
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
|
Addict
Joined: Aug 2000
Posts: 1,609 |
I made a copy of doexpire and changed it so that it moves all threads that have been inactive for over a year into an Archive forum. I have it run every night and it keeps things fresh and clean.  Would this be something that you're looking for?
|
|
|
|
|
Joined: Aug 2002
Posts: 6
Lurker
|
|
Lurker
Joined: Aug 2002
Posts: 6 |
If I understand what you are saying, the expired threads are moved to an archive forum, in a separate set of database tables. Is this correct? Or are they just moved to an archive forum in the same set of database tables. The former would be useful. The latter would not (in this case.)
Does the UBBThread license permit the creation of two separate set of forums?
Chuck
|
|
|
|
|
Joined: Oct 2003
Posts: 2,305
Old Hand
|
|
Old Hand
Joined: Oct 2003
Posts: 2,305 |
One for Production and One for Testing Yes
|
|
|
|
|
Joined: Feb 2002
Posts: 295
Member
|
|
Member
Joined: Feb 2002
Posts: 295 |
Hi,
"Would this be something that you're looking for?" I certainly wouldn't mind a copy of that.
Sanuk!
|
|
|
|
|
Joined: Aug 2000
Posts: 1,609
Addict
|
|
Addict
Joined: Aug 2000
Posts: 1,609 |
|
|
|
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: 1,156
Joined: July 2001
|
|
|
Forums63
Topics37,583
Posts293,957
Members13,826
| |
Most Online151,614 Nov 14th, 2025
|
|
Currently Online 4639
Topics Created 0
Posts Made 0
Users Online 0
Birthdays 24
|
|
|
|
|
|