Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: Mar 2000
Posts: 528
Junior Member
Junior Member
Offline
Joined: Mar 2000
Posts: 528
OK, does not work. Here are the results:

UPDATE w3t_Posts SET B_Main='x' WHERE B_Main='x'

The first 'x' is going to be the main thread, the second 'x' is the thread you are merging into the first.

Doing this DOES work, but it has a side effect. Since every new thread has a B_Parent of '0' (to denote it is a new post and not a reply), you have not changed THAT piece.

So after merging you have TWO first posts. Effectively looking at the forum main page, you will still see both separate threads, but one will now show with all the replies under it, the other will show with NO replies.
___________________________________________________

So to accomplish what you want to do, you have to run two separate UPDATE queries.

For example:

POST1 = Number 23
POST2 = Number 56

You want to take #56 and merge it into #23, effectivly clearing it as a "main" post, and having it and all its replies under the thread for post #23.

UPDATE w3t_Posts SET B_Main='23' WHERE B_Main='56'

UPDATE w3t_Posts SET B_Parent='23',B_Topic='0' WHERE B_Number='56'

Your REPLIES column will not update on the main page until someone makes a new post in the thread. I tested this and it worked for me.

Sponsored Links
Entire Thread
Subject Posted By Posted
A way to merge threads! Magle 02/24/2004 7:42 PM
Re: A way to merge threads! Medar 02/25/2004 8:49 PM
Re: A way to merge threads! Magle 02/25/2004 9:40 PM
Re: A way to merge threads! Medar 02/25/2004 10:18 PM
Re: A way to merge threads! Medar 02/25/2004 10:48 PM
Re: A way to merge threads! Magle 02/26/2004 1:29 AM
Re: A way to merge threads! JoshPet 02/26/2004 5:52 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
Top Likes Received
isaac 82
Gizmo 20
Brett 7
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)