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

Home » FUDforum » How To » Automatic pruning
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Automatic pruning [message #38242] Fri, 27 July 2007 18:06 Go to next message
pozmu is currently offline  pozmu   United Kingdom
Messages: 14
Registered: March 2005
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 11: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
add to buddy list
ignore all messages by this user
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] Fri, 30 January 2009 23:25 Go to previous messageGo to next message
mvanlamz is currently offline  mvanlamz   
Messages: 7
Registered: November 2008
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 01:26 Go to previous messageGo to next message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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 01:07 Go to previous messageGo to next message
mvanlamz is currently offline  mvanlamz   
Messages: 7
Registered: November 2008
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 08:46 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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.
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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 Oct 22 04:15:17 EDT 2017

Total time taken to generate the page: 0.00626 seconds