UBB.Dev
Posted By: Ed Sullivan BETA Release: Thread Splitting Hack - 03/31/2000 1:07 AM
Beta Release v1.0b
Thread Splitting Hack
Description: You know those looong threads that change subject? Why not move those to a new thread? That's what this does. Essentially, its a "move hack" for individual posts.
Features: Either Move or Copy posts to new threads. Two methods of implementing [Linked Image]
Location: http://www.enter.net/~rmsullivan/ubb_hacks/threadsplit.txt
Installation: Download the file, and make any fixes necessary. Upload in ASCII to UBB CGI directory, rename to threadsplit.cgi, and set permissions to 755.
Usage: Either call threadsplit.cgi directly, or follow the optional directions below (freeware only)
Optional Directions: (note: assumes you have my O/C/D hack installed)
Open ubb_library2.pl and find:
Code
code:
at the end of THAT line, find:
Code
code:
DIRECTLY BEFORE that, add this:
Code
code:

(wow, what a structured post)
Hopefully, with later releases I'll make the HTML better (its really crappy now), add some more stuff, fix any bugs, etc.

Feedback?

(Oh, if you're wondering, being that I'm the Freeware guy, I had some help with the licensed stuff - so it should work.)

------------------
-mike
Casual Players Alliance - And that freeware UBB. [Linked Image]
Posted By: ilya Re: BETA Release: Thread Splitting Hack - 03/31/2000 5:56 AM
Can we see it in action?
Posted By: cal Re: BETA Release: Thread Splitting Hack - 03/31/2000 10:53 AM
I thought you'd do this soon. Could resist a challenge hey? hehe

OOI, who helped you Ed?

Just a thought [Linked Image]
Posted By: ilya Re: BETA Release: Thread Splitting Hack - 03/31/2000 7:01 PM
So, let me get this:
this hacks allow you to move one POST to another thread?
Or am i confused again? [Linked Image]
Posted By: cal Re: BETA Release: Thread Splitting Hack - 03/31/2000 7:26 PM
That's sort of what it means. Ed's been planning this for some time - it allows the splitting of a multi subject thread into seperate subject threads (for admin). It's a very good idea.

Just a thought [Linked Image]
Posted By: Ed Sullivan Re: BETA Release: Thread Splitting Hack - 04/01/2000 1:49 AM
ilya - Sorry, its only on my testing board right now. Hence the reason its beta. [Linked Image] Ok, what it does, though, is brings up a page that lists foreach $post(@thread) -- err.. for each post in the thread ([Linked Image]) in one page. Then you have an option to either move or copy each post to a new thread (or neither).

Oh, almost forgot:
Cal - Stallion helped me out a little.

------------------
-mike
Casual Players Alliance - And that freeware UBB. [Linked Image]
Posted By: Mutt Re: BETA Release: Thread Splitting Hack - 04/01/2000 4:03 PM
i had trouble with this on a licensed ubb. it looked like it was working but it didn't write the threads correctly. I'll be looking at it today to find out why.

very cool, thanx!
Posted By: Ed Sullivan Re: BETA Release: Thread Splitting Hack - 04/01/2000 6:13 PM
Mutt - check out the $StatsLine stuff -- that was an area I wasn't sure about. I think that may be the problem.

------------------
-mike
Casual Players Alliance - And that freeware UBB. smile
Posted By: Mutt Re: BETA Release: Thread Splitting Hack - 04/02/2000 6:01 PM
I have it working. and it's pretty cool. Have a direct link on the thread page and a link in the cp to the main page. it was the change me lines and a little more. here are the change me lines

Code
code:
i can't remember what is different with these guys but soimething changed


plus i had to add
Code
code:

before the 3

&CreateThreadHTML("Forum$x", "$thread", "0", "1");

NOTE : $x isn't the variavle in all 3 so make sure you change it to the right thing. whatever variable is after Forum in the &CreateThreadHTML line is the variable you need in &GetForumRecord($x);

Ed Sullivan I'd be happy to send you the file if you'd like. I stripped out all the freeware stuff so i could see what was going on better so i didn't want to post it. I like that you made one script for both free and licensed. neat! I can't believe i just said neat.

Mutt
Posted By: Ed Sullivan Re: BETA Release: Thread Splitting Hack - 04/02/2000 6:35 PM
Mutt - send it my way. I'll just do some comparing. Thanks!

------------------
-mike
Casual Players Alliance - And that freeware UBB. smile
Posted By: cal Re: BETA Release: Thread Splitting Hack - 04/19/2000 10:52 AM
I still waiting for this one - It's a great idea.

Just a thought [Linked Image]

------------------
"Just is a thought" is a regestered trademark of Cal Corporation. Any violation of this copyright is a crime, punishable by death, under UBB CHH Law.
Posted By: Mutt Re: BETA Release: Thread Splitting Hack - 04/20/2000 1:55 AM
opps, I was expecting an email for some dumb reason and hadn't checked back to this thread. here it comes. I just mailed it
Posted By: Ed Sullivan Re: BETA Release: Thread Splitting Hack - 04/28/2000 2:06 AM
And now I don't check back to this thread [Linked Image]

Anyway, I think I made my changes correctly, but I'll have to check with the file Mutt sent me. I'll get back about it later.
© UBB.Developers