vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - Thread Splitter (https://vborg.vbsupport.ru/showthread.php?t=275237)

Lairston 12-07-2011 11:00 PM

Thread Splitter
 
1 Attachment(s)
This is a port of Keloran Thread Splitter mod found here 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
  1. Import product-threadsplitter.xml into the Adminstration Control Panel
  2. 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

Quote:

Originally Posted by Sforums (Post 2276170)
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

Quote:

Originally Posted by OldSchoolDSL (Post 2276038)
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/showthr...n-Land/page975
beginning of ninx 2 - http://quarrelsandquills.com/showthr...en-Land-Part-1

Quote:

Originally Posted by Sforums (Post 2276170)
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.

Quote:

Originally Posted by Boofo (Post 2276276)
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.


All times are GMT. The time now is 08:43 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01136 seconds
  • Memory Usage 1,745KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete