Previous Thread
Next Thread
Print Thread
Rate Thread
#213332 02/05/2002 4:02 PM
Joined: Jan 2002
Posts: 218
Enthusiast
Enthusiast
Offline
Joined: Jan 2002
Posts: 218
I'm in need of a daily process that will "archive" posts older than one week from my database and move them to a separate database or possibly delete them alltogether.

If I move them to a second database, I could possibly write some PHP code that will allow queries to be executed on that database; however, I'm not sure I'm interested in that. []https://www.ubbdev.com/threads/php/images/icons/laugh.gif[/]

I'm more interested in just deleting posts where the last posted on date has exceeded one week or some other period of time.

If anyone can help me out with this, I'd greatly appreciate it.

Sponsored Links
Joined: Apr 2001
Posts: 27
Journeyman
Journeyman
Offline
Joined: Apr 2001
Posts: 27
Admin -> Edit or delete a board -> select board -> Change this board -> Set value in: Expire threads after how many days (0 - Never Expire)
(in V5.4.1)

Make sure that you have installed the cron-scripts.

Joined: Jan 2002
Posts: 218
Enthusiast
Enthusiast
Offline
Joined: Jan 2002
Posts: 218
Okay, the question I have on that is, what date is the expiration based on?

Is it based on the original creation date, or is it based on the last posted on date?

I don't want to expire threads that are still active. I only wish to expire threads that have remained inactive for a set period of time.

Ideally it would be nice to move the threads to secondary database which I could then use as a sortof "archive". It wouldn't be hard to modify the search.php file to create an archivesearch.php file which would query the secondary database instead of the primary.

In reply to:

Make sure that you have installed the cron-scripts.




I have the scripts on the server in the /cron directory, but I'm not sure what they are used for. Is that required for the automatic thread expiration?


Link Copied to Clipboard
Donate Today!
Donate via PayPal

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.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)