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

Home » FUDforum » How To » Scheduled Locking/Pruning
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Scheduled Locking/Pruning [message #4842] Fri, 09 August 2002 12:51 Go to next message
ctbk is currently offline  ctbk   Italy
Messages: 142
Registered: April 2002
Location: Milan, Italy
Karma: 0
Senior Member
I need to run each night a script who locks unactive topics and removes oldest ones from the DB...

I can modify the DB without problem, but I suspect I have to run "check forum consistency" afterwards. How can I do it from a script?

Later,
Ste


~
~
:wq

[Updated on: Fri, 09 August 2002 12:53]

Report message to a moderator

Re: Scheduled Locking/Pruning [message #4843 is a reply to message #4842] Fri, 09 August 2002 13:24 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
If you use Forum's functions to remove & lock topics you do not need to run the consistency checker. The consistency will be maintained automatically.

FUDforum Core Developer
Re: Scheduled Locking/Pruning [message #4844 is a reply to message #4843] Fri, 09 August 2002 14:00 Go to previous messageGo to next message
ctbk is currently offline  ctbk   Italy
Messages: 142
Registered: April 2002
Location: Milan, Italy
Karma: 0
Senior Member
prottoss wrote on Fri, 09 August 2002 15:24

If you use Forum's functions to remove & lock topics you do not need to run the consistency checker. The consistency will be maintained automatically.


I think you are saying to make a php script using fud functions...

Mh... the fact is I have python scripts made to work with xmb, and I wanted to re-use them without rewriting too much.

Well, I could write something in php after all.
If you want to, I could post those scripts (once made).

later,
Ste




~
~
:wq
Re: Scheduled Locking/Pruning [message #4845 is a reply to message #4844] Fri, 09 August 2002 14:32 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
I do not use Python so for my perpouses that would be quite useless.
If you are just going to be deleting data from MySQL then you indeed need to run the consistency checker. You can do that by making a copy of the php script and removing the auth code from it and then using python (?) doing exec( php -q script_name ) to run it.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Forum with Category?
Next Topic: How can I?
Goto Forum:
  

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

Current Time: Sun Dec 22 15:58:19 GMT 2024

Total time taken to generate the page: 0.02680 seconds