Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 13 Jan 2004, 21:47
Indy Indy is offline
 
Join Date: Jun 2002
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

Last edited by Indyshooter; 28 Mar 2004 at 05:43.
Reply With Quote
  #2  
Old 29 Jan 2004, 13:12
allan grossman allan grossman is offline
 
Join Date: Apr 2003
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?
Reply With Quote
  #3  
Old 25 Feb 2004, 07:52
MRaburn MRaburn is offline
 
Join Date: Dec 2001
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.
Reply With Quote
  #4  
Old 25 Feb 2004, 09:43
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
@Indyshooter
Try this:

  1. Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  2. In admincp/forum.php FIND

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

    BELOW that ADD

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  3. Place the following as prune.php in includes/cron

    Block Disabled:      (Update License Status)  
    Suspended or Unlicensed Members Cannot View Code.

  4. Go to Forum Manager, Edit the Forums you want to be pruned automatically and set the number of days
  5. Create a Cron Job for prune.php

Use AS-IS, no warranties.
Reply With Quote
  #5  
Old 29 Feb 2004, 19:44
EricR EricR is offline
 
Join Date: Feb 2004
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

Last edited by EricR; 29 Feb 2004 at 20:26.
Reply With Quote
  #6  
Old 01 Mar 2004, 01:03
Andreas's Avatar
Andreas Andreas is offline
 
Join Date: Jan 2004
Real name: Andreas
If I add a new forum later do I have to rerun the query?
No. You will just have to set the amount of days in forum manager.

ill 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.
No, it will also delete sticky threads. But this can be modified easily:

Replace

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

With

Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Then it should ingore sticky threads.
Reply With Quote
  #7  
Old 01 Mar 2004, 01:42
EricR EricR is offline
 
Join Date: Feb 2004
Thank you!
Reply With Quote
  #8  
Old 04 Mar 2004, 00:16
EricR EricR is offline
 
Join Date: Feb 2004
Talking

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!
Reply With Quote
  #9  
Old 04 Mar 2004, 07:17
Limitter Limitter is offline
 
Join Date: Aug 2002
Modyfication by Pogo

http://www.vbulletin-germany.com/for...&threadid=9253

Limitter
Reply With Quote
  #10  
Old 27 Mar 2004, 16:26
Catch-22|BL Catch-22|BL is offline
 
Join Date: Aug 2003
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.
__________________
Reply With Quote
  #11  
Old 27 Mar 2004, 19:54
allan grossman allan grossman is offline
 
Join Date: Apr 2003
Thank you, Kirby - that's exactly what I needed.

edit: I also think if they incorporate this into vB 3.1 they should slip Kirby a couple hundred bucks for his trouble

Last edited by allan grossman; 27 Mar 2004 at 20:08.
Reply With Quote
  #12  
Old 27 Mar 2004, 20:34
allan grossman allan grossman is offline
 
Join Date: Apr 2003
Originally Posted by Limitter
Ich spreche kein Deutch

What does the mod do?

Last edited by allan grossman; 28 Mar 2004 at 13:03.
Reply With Quote
  #13  
Old 28 Mar 2004, 05:42
Indy Indy is offline
 
Join Date: Jun 2002
KirbyDE - Many Thanks!!

Haven't had a chance to apply your hack yet since I've been in the process of moving to a new server and all of the associated stuff that goes along with it.

I plan on doing so though!

Thanks again!
Indy
Reply With Quote
  #14  
Old 09 Jul 2004, 21:53
RCK's Avatar
RCK RCK is offline
 
Join Date: Jan 2002
Yeah thanks for your help KirbyDE
Reply With Quote
  #15  
Old 11 Oct 2005, 20:20
JoeWho's Avatar
JoeWho JoeWho is offline
 
Join Date: Oct 2005
Will this work on 3.5.0.r3

Hi,

Will this work on 3.5.0.r3

I would like to use this if it would work?

JoeWho
Reply With Quote
Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
[vbcron] Automatic database backup [v1.3] Brad vBulletin 3.0 Full Releases 180 18 Jul 2007 21:34
[vbCRON] Thread Redirect Removal Protoman vBulletin 3.5 Add-ons 5 16 Jul 2006 20:14



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


New To Site? Need Help?

All times are GMT. The time now is 10:23.

Layout Options | Width: Wide Color: