PDA

View Full Version : Auto split thread after x posts


trafix
01-21-2005, 06:30 PM
cinq requested me to code the following

Possible to also do one "Auto Close thread after 100 posts and create a new one with the same title" ( but append a part X to it where X is 2 if the new post created has been branched once, 3 if branched twice and so on .. ) and with the first post of this new thread to have the content : " In continuation of this previous thread here: XX )" where XX is the link to the previous closed thread ?
I can code it however i think that on the first run it would put the server under huge stress especially if there is a heap of threads over 100 posts and 2 as it will split every thread it could require quite a bid of cosmetic sergery deleting auto generated threads split from old threads that havnt been replied to for ages.

whats your thoughts .... would this hack be of any use to you?

trafix

Andreas
01-21-2005, 06:32 PM
I'd stick the code into newreply.php so it will only affect new threads.

Magic Spark
02-21-2005, 05:19 AM
I'm very interested.

I need something like this:

- Thread will be auto-closed after x numbers of posts
- Auto generate last post in this thread with link to new thread
- Auto generate new thread with link to original thread

Is this possible and what about the huge stress for the server?

Thanks...

trafix
02-21-2005, 05:53 AM
sorry ... i have too much on at the moment so if anyone else wants to do it ... go ahead :)

Sidewindr
07-18-2006, 06:19 AM
I'm also interested in this ...

SBlueman
08-16-2009, 05:16 PM
I am interested in this as well.

Sidewindr
11-08-2009, 08:20 AM
It has been done here ...

https://vborg.vbsupport.ru/showthread.php?t=160074

But not working 100% on 3.8.x