Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.6 > vBulletin 3.6 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Thread Splitter Details »»
Thread Splitter
Version: 0.4, by Keloran Keloran is offline
Developer Last Online: Jun 2010 Show Printable Version Email this Page

Category: New Posting Features - Version: 3.6.8 Rating:
Released: 10-11-2007 Last Update: 01-07-2008 Installs: 31
DB Changes Uses Plugins
Re-useable Code  
No support by the author.

This creates a new thread once a thead has reached a certain size and a user posts a new reply

NOTE
this does alter your thread table, it adds a new row (contnum) and a new index
it adds a new bbcode to your forum, so that the topic continue doesnt open a new window/tab

Install guide
when you install through the "manage products", a new set of options will appear in the vbulletin options->vbulletin options (defualt off)

this allows you to change the following settings:
userid of the post continuer - when a post is auto-closed a post is made that says it is closed, and a new thread is created with a post in it saying where the original is, this is posted auto by the user given (default 1)

reply count - the amount of posts before a thread is closed and split (default 500)

threadsplitter enabled - turn off/on the thread splitter (default off)

dont allow splits in X forums - add new forums by using ,. e.g 4,5 (default blank)

update subscriptions - update the users threadsubscriptions to the new thread if subscribed to the old one before split

unsticky old threads - unsticky the old threads after a continuation is made (default off)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
Благодарность от:
CarpCharacin

Comments
  #22  
Old 10-30-2007, 02:02 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great Idea, Keloran!!

But There is a Bug on this Hack for vBulletin 3.6.7 PL1!!

I Hope You Can Tell Me What's Wrong?? What Template or Plugin Should I Change to make it Work??

I didn't Even Reached the Count of Posts to Split the Thread, it Happened just Only by Posting a Simple New Post!!

(Perhaps a Bad Reference To a Table On a Plugin??)

I'll Keep the Hack Not Active so that I can Allow Postings on my Forum!!

My Best Regards!!

Code:
Database error 
The INCIARCO - FOROS - Comunidades Virtuales de Integraci?n database has encountered a problem. 

--------------------------------------------------------------------------------
 
Please try the following: 
Load the page again by clicking the Refresh button in your web browser. 
Open the inciarco.com home page, then try to open another page. 
Click the Back button to try another link. 
 
The inciarco.com forum technical staff have been notified of the error, though you may contact them if the problem persists. 
 
We apologise for any inconvenience. 

Database error in vBulletin 3.6.7:

Invalid SQL:
SELECT replycount, open, contnum  FROM vb_thread WHERE threadid = 818 AND thread.forumid NOT IN ('') LIMIT 1;

MySQL Error  : Unknown table 'thread' in where clause
Error Number : 1109
Date         : Tuesday, October 30th 2007 @ 09:59:44 AM
Script       : http://zzz/newreply.php?do=postreply&t=818
Referrer     : http://zzz/newreply.php?do=newreply&noquote=1&p=9433
IP Address   : zzz.zzz.zzz.zzz
Username     : zzz
Classname    : vb_database
Reply With Quote
  #23  
Old 10-30-2007, 03:40 PM
Keloran Keloran is offline
 
Join Date: Nov 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ahh sorry thats my fault, yeah i didnt add the " . TABLE_PREFIX . "

fixed
Reply With Quote
  #24  
Old 10-30-2007, 07:50 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Now is Working Better, Keloran!!

But...

There's a Bug With The Option "Update subscriptions" (Update the users thread subscriptions to add the new thread to people who subscribed to the old ones.)!!

When Activated, Causes the Error I Present To You Inside the Code Tags!!

The Hack Splits the Thead, but Presents that Error, and I Think that Don't Perform the Updating of the Suscriptions!!

(Code in Plugins Under "//update the subscribed people to the new thread").

My vBulletin Version is 3.6.7 PL1!!

My Best Regards, Keloran!! :up:

Code:
Database error 
The INCIARCO - FOROS - Comunidades Virtuales de Integraci?n database has encountered a problem. 

--------------------------------------------------------------------------------
 
Please try the following: 
Load the page again by clicking the Refresh button in your web browser. 
Open the inciarco.com home page, then try to open another page. 
Click the Back button to try another link. 
 
The inciarco.com forum technical staff have been notified of the error, though you may contact them if the problem persists. 
 
We apologise for any inconvenience. 

Database error in vBulletin 3.6.7:

Invalid SQL:
SELECT userid, folderid, emailupdate FROM vb_threadsubscribe WHERE threadid = 2048 AND canview = 1;

(The zzz_zzz text mentioned Next is the Name of the DataBase!!)

MySQL Error  : Table 'zzz_zzz.vb_threadsubscribe' doesn't exist
Error Number : 1146
Date         : Tuesday, October 30th 2007 @ 03:46:12 PM
Script       : http://zzz/newreply.php?do=postreply&t=2048
Referrer     : http://zzz/newreply.php?do=newreply&noquote=1&p=9454
IP Address   : zzz.zzz.zzz.zzz
Username     : zzz
Classname    : vb_database
Reply With Quote
  #25  
Old 10-30-2007, 08:05 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default



Another Additional Little Bug I Found!!

When the New Splitted Thread is Created, on the First Two (2) Replies (The Firts Post of the Previous Version of the Thread, and the Post that Caused the Split), the Smilies Don't Show (Appear Written But Don't Show), and I Have To Edit The Message with the Advanced Editor and Save It for the Smilies to Appear (the Codes Appear but Seems Like if the Smilies where Not Used on those Particular Posts that come from the Closed Splitted Thread)!!

My Best Regards, Keloran!! :up:

Reply With Quote
  #26  
Old 10-30-2007, 09:21 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Another Bug I Found Later, that I Think a Forumer Mentioned Previously, is that the Date of the Splitted (New) Thread is "31-12-1969 08:42 PM", and also NO User Appears as Poster of the Last Message!! (Perhaps Those Thow Fields Are Missing On The New Thread, and Shall be Copyed From the Las Post Placed on It)!!

I Hope You Can Fix Those Three (3) Bugs I've Mentioned on my Posts, because This Is a Great Hack!!

My Best Regards!!

Reply With Quote
  #27  
Old 10-31-2007, 08:38 AM
Keloran Keloran is offline
 
Join Date: Nov 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

the date one is an odd one, because it uses server time of time() + 1 or 2, depending on the post (to stop vB complaining of duplicates)

the only time it did it on mine was when the server decided to forget the real date, the others are fixed (or should be)
Reply With Quote
  #28  
Old 10-31-2007, 10:29 PM
inciarco's Avatar
inciarco inciarco is offline
 
Join Date: Mar 2007
Posts: 758
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I've Tested the New Update, Keloran, but Another Bug Appeared Also for the "Update subscriptions" Option!!

I'll Copy/Paste the Error Message!!

I Think You're Near The Final Solution!!

The "Unsticky old threads" Option, Works Fine!!

I Think You Should Consider Using the Date Of The Last Post as a Reference for the New Thread, or Simply Use the Same Formula of the Bump Hacks (there are like 2 or Three Hacks that Bump/DeBump Threads)!! I Think for some Reason Using the Date of the Server Don't Works Fine (I Know the Date of My Hosting Server is Ok, so there's Something in the Code of the Hack that Isn't Working Fine)!!

Perhaps If The Date of The New Thread When Creating It Is The Same Of The Old Thread, is Better To Leave Them That Way, Because The Old Thread Is Already Closed and Nobody Will Change It; and Also With The Date Set to "31-12-1969" the New Thread Don't Appear on the List of New Threads on the Forum Statistics Hacks, and It Also NOT Appear on the "Today's Threads" (http://zzz/search.php?do=getdaily) which Will Be Very Confusig For Users!!

I've tested the Hack with a Threar Limit Below the Max Number of Posts inside My Test Thread, and Also Works When Next Post is Posted and Splits the Thread Ok (Only Bug is the One Mentioned at the Beginning of this Message)!!

I've Tested the "Dont Split In Forums" Option, and Works Ok!!

I've Tested the Hack with the "Quick Reply" and Works, only that the "Closed" Image Appears After Refreshing the Window, but the Thread Is Closed and the Split is Made and the Message Of Split Appears Fine, and No Additional Message is Allowed To Be Posted (Old Thread Is Closed)!!

My Best Regards!!



Code:
Database error 
The INCIARCO - FOROS - Comunidades Virtuales de Integraci?n database has encountered a problem. 

--------------------------------------------------------------------------------
 
Please try the following: 
Load the page again by clicking the Refresh button in your web browser. 
Open the inciarco.com home page, then try to open another page. 
Click the Back button to try another link. 
 
The inciarco.com forum technical staff have been notified of the error, though you may contact them if the problem persists. 
 
We apologise for any inconvenience. 

Database error in vBulletin 3.6.7:

Invalid SQL:
INSERT INTO vb_subscribethread (threadid, folderid, userid, emailupdate, canview) VALUES (2050, , , , 1;

MySQL Error  : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ' , , 1' at line 1
Error Number : 1064
Date         : Wednesday, October 31st 2007 @ 06:12:04 PM
Script       : http://zzz/newreply.php?do=postreply&t=818
Referrer     : http://zzz/newreply.php?do=newreply&noquote=1&p=9473
IP Address   : zzz.zzz.zzz.zzz
Username     : zzz
Classname    : vb_database
Reply With Quote
  #29  
Old 11-01-2007, 03:24 PM
Ania Ania is offline
 
Join Date: Jun 2007
Location: ?urope
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

screenshots?
Reply With Quote
  #30  
Old 11-02-2007, 11:26 AM
Keloran Keloran is offline
 
Join Date: Nov 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ania its quite hard todo screenshots

it litterlly, closes a thread, starts a new one, i cant screenshot the process
Reply With Quote
  #31  
Old 11-05-2007, 08:58 AM
Keloran Keloran is offline
 
Join Date: Nov 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

that should fix the problem with hte dates not being inserted correctlly, although looking at my forum there was an occasion where this happened, but in the database the dates are correct, so im guessing vbulletin is doing something really stupid
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04764 seconds
  • Memory Usage 2,331KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (1)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete