![]() |
SQL query for deleting automatic forum pruning
What would the SQL query be for delete all threads older than 90 days from an array of forums?
I want to write a simple php file I can use with the "Scheduled Task" option on the vB adminCP to auto-prune the forums I use for classifieds. Thanks |
Maybe use an existing hack: Auto Prune Threads
If you don't want to use that one, you can at least download it and see what the query is. |
Quote:
|
The original code is :
Code:
while ($forum = $vbulletin->db->fetch_array($forums)) Code:
while ($forum = $vbulletin->db->[7,8,9]) |
No, that is not going to work. You should ask for help in the modification thread. They know the code and are best able to help you.
|
All times are GMT. The time now is 01:13 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:
|