PDA

View Full Version : Miscellaneous Hacks - Thread Splitter


Lairston
12-07-2011, 11:00 PM
This is a port of Keloran Thread Splitter mod found here (https://vborg.vbsupport.ru/showthread.php?t=160074&highlight=thread+splitter) which is marked as reusable.

This creates a new thread once a thead has reached a certain size and a user posts a new reply to the thread. The new thread will have the same title with a Part # attached to it.

As with the original mod:

You are able to enable and disable the mod from the settings.
You are able to assign a user id for the posts that close and open threads
You can set the number of replies that can be made before the thread is split
Allow certain forums to continue to have long posts
Update Subscriptions
Unsticky threads


My additions:


You can keep the original author for the new threads
You can add links to the new thread's first post so that a table of contents of other thread breaks is created


In addition, I've made it so it updates the thread and post counters. And user post counts. I also switched the order of the posts for the newly created parts from the original mod. Now the original first post is in the first post and a message that this is a continuation thread is in the second place.

NOTE

It adds a new row to the thread table
it adds a new bbcode to your forum, so that the topic continue doesnt open a new window/tab


Install guide


Import product-threadsplitter.xml into the Adminstration Control Panel
Goto the BBCode Manager and open it. click to edit the Split bbcode. Save it. Ignore the warning about it not being formed correctly and click continue. For whatever reason it won't function correctly without doing the edit and save.

OldSchoolDSL
12-08-2011, 10:29 PM
Screen shot or demo?

Still not 100% sure what this does. Sorry.

puertoblack2003
12-09-2011, 04:39 AM
+1 :/

Sforums
12-09-2011, 12:25 PM
Why would anyone split thread and start all over again?

snowlion
12-09-2011, 04:42 PM
Why would anyone split thread and start all over again?
Actualy, it'll create a new thread with the same name when the old one's reached the number of replies that you defined.

Boofo
12-09-2011, 04:45 PM
It would be better to rename the threads as "Original Thread Title Name -" Part 1 and Part 2 and so one.

Dr.osamA
12-09-2011, 07:41 PM
thank you bro

unstalled under test

Lairston
12-09-2011, 08:39 PM
Screen shot or demo?

Still not 100% sure what this does. Sorry.
It closes a thread after a set number of posts that you decide on in the ACP.

You can see what it does with these two threads on my site

end of ninx - http://quarrelsandquills.com/showthread.php/1802-The-Kingdom-of-Ninx-Forbidden-Land/page975
beginning of ninx 2 - http://quarrelsandquills.com/showthread.php/1945-The-Kingdom-of-Ninx-Forbidden-Land-Part-1

Why would anyone split thread and start all over again?

Some think the length of threads impacts the database. My partner on the site used to be a staff member on christianforums.com and they did this. He wanted it for our site because he noticed some things with the database so I found the original mod and adapted it. Thought others might want it.

It would be better to rename the threads as "Original Thread Title Name -" Part 1 and Part 2 and so one.

Agreed. New version uploaded

kingMOB
12-10-2011, 11:15 AM
Will this mod make anything to existing threads that are beyond the numbers of replies where it should be splitted?

Is there a way to select a thread and split it?

Lairston
12-10-2011, 08:46 PM
Existing threads that are beyond the number of replies will be closed on the next post and they will simply be longer. The mod only checks to see if the new post causes the thread to be greater then the set number of replies.

And it will do the normal thing of creating the new thread.

But future parts will be the size selected in the acp.

Kraxell
12-11-2011, 08:39 PM
is it possible to use this hack only on some forum id's?

Lairston
12-16-2011, 06:40 AM
Yes, you can keep certain forums from having their threads split in the acp

War Machine
11-05-2012, 01:56 AM
I have this problem!

Database error in vBulletin 4.2.0:

Invalid SQL:
ALTER TABLE vb_thread ADD contnum INT NOT NULL;

MySQL Error : Duplicate column name 'contnum'
Error Number : 1060

Can you help me?

P.S. Can I change language phrase?

reizaku
08-04-2013, 05:02 AM
why ?

Database error in vBulletin 4.2.0:

Invalid SQL:
ALTER TABLE vb_thread ADD contnum INT NOT NULL;

MySQL Error : Duplicate column name 'contnum'
Error Number : 1060