FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Automatic pruning
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Automatic pruning [message #38242] Fri, 27 July 2007 22:06 Go to next message
pozmu is currently offline  pozmu   United Kingdom
Messages: 14
Registered: March 2005
Karma: 0
Junior Member
Hi
I'm going to set up usenet <-> forum gateway on my forum. Forums in one of the categories will display Usenet messages. I would like to automatically prune this forums by removing messages older by e.g. 60 days. Is it possible?

Thanks.
Re: Automatic pruning [message #38254 is a reply to message #38242] Sun, 29 July 2007 15:08 Go to previous messageGo to next message
Ilia is currently offline  Ilia   
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You can setup a script to run the forum's topic prunning time via cron.

FUDforum Core Developer
Re: Automatic pruning [message #158102 is a reply to message #38254] Sat, 31 January 2009 04:25 Go to previous messageGo to next message
mvanlamz is currently offline  mvanlamz   
Messages: 7
Registered: November 2008
Karma: 0
Junior Member
How exactly does one go about doing this?

Mike van Lammeren
Re: Automatic pruning [message #158103 is a reply to message #158102] Sat, 31 January 2009 06:26 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
See http://fudforum.org/forum/index.php?t=msg&th=118114&start=0&

This may also help: http://fudforum.org/forum/index.php?t=msg&goto=28485&
Re: Automatic pruning [message #158201 is a reply to message #38242] Mon, 09 February 2009 06:07 Go to previous messageGo to next message
mvanlamz is currently offline  mvanlamz   
Messages: 7
Registered: November 2008
Karma: 0
Junior Member
So, I've spent some time looking at admprune.php, and the FUD API, and from comments in the code, and a message displayed by admprune.php about running a system check, it doesn't seem like a good idea to delete messages from a forum.

So now I've decided to only display messages from the last few days, and not actually delete them. The net result is the same, and I don't have to worry about things getting out of sync, etc.

Unfortunately, I'm having a hard time locating the spot in the code that pulls the list of Topics. Can someone please point me in the right direction?

Mike van Lammeren
Re: Automatic pruning [message #158202 is a reply to message #158201] Mon, 09 February 2009 13:46 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
You will have to add an extra WHERE clause to all SQL statements that select from fud26_thread. Personally I think it would be easier to just delete the old threads and run the consistency checker afterwards.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Cross posting and word wrapping
Next Topic: how to implement or install a "captcha"?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 09:53:23 GMT 2024

Total time taken to generate the page: 0.02854 seconds