The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
vBCron and Pruning
From what I was reading at vB, vB3 almost had this.
I would like to have vBCron prune threads older than xx days in selectable forums/catagories. Not worried about resetting counts, etc. since I do this manually every once in a while when I turn off the forums for maintenance. I have a couple of FSOT type forums and we try to keep them pruned, but don't always do it! Thanks! Dan |
#2
|
|||
|
|||
I'm interested in this also - as I'm running a Usenet gateway and don't really need to keep more than six months' worth of posts.
I'd also like to see this incorporated with a cron job to flush and rebuild the search index. Anybody got ideas? |
#3
|
|||
|
|||
I think this is much needed but have never really found anyone in the VB arena to take the time to make something for the bigger boards. I've been waiting for years.
|
#4
|
||||
|
||||
@Indyshooter
Try this:
Use AS-IS, no warranties. |
#5
|
|||
|
|||
Many thanks Kirby, this is just what I was looking for I just have a few questions.
1) If I add a new forum later do I have to rerun the query? 2) Will this ignore sticky topics? If I have something as a sticky I'd like it to be exempt from any/all pruning functions including this auto-prune. I have this installed and I've setup a few "tests" to confirm that it is working. I ran the task manually and it appears to work, I'll know more tomorrow after the scheduled task runs |
#6
|
||||
|
||||
Quote:
Quote:
Replace PHP Code:
PHP Code:
|
#7
|
|||
|
|||
Thank you!
|
#8
|
|||
|
|||
Just wanted to say thanks again Kirby, the script passed all of my tests All of the expired posts (open and closed) were automatically deleted and the sticky posts were unharmed Excellent!
|
#9
|
|||
|
|||
|
#10
|
|||
|
|||
KirbyDE, I would encourage you to release your post as a hack. People will appreciate this information because it is useful for many large boards. I have to spend at least five hours a month sitting at my computer to manually do the prunes and it is very annoying.
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|