2024-02-07, 09:31 PM
So I want to merge into one thread about 150 threads all made by the same member.
I know that I cannot do this via the moderation tools nor the ACP but I could via SQL on the database.
I have tested a very simple SQL and it moves all the members posts into their newest thread BUT if any thread had a reply then it leaves those as the posts in the old threads.
So the simple SQL is this below
where 'tid' is thread number and 'fid' is forum section number and 'uid' is member number.
Now that does what is asked but it does not move all posts within each thread just the posts by the defined member.
So how can I alter it to merge all the posts in 150 threads (all threads made by the same user) into the same users latest/newest thread?
Do any of you have the MyBB used SQL which merges threads please (which maybe I could adapt to merge multiple at the same time)?
Thanks in advance
I know that I cannot do this via the moderation tools nor the ACP but I could via SQL on the database.
I have tested a very simple SQL and it moves all the members posts into their newest thread BUT if any thread had a reply then it leaves those as the posts in the old threads.
So the simple SQL is this below
UPDATE `mybb_posts` SET `tid`=500 WHERE `fid`=2 AND `uid`=100;
where 'tid' is thread number and 'fid' is forum section number and 'uid' is member number.
Now that does what is asked but it does not move all posts within each thread just the posts by the defined member.
So how can I alter it to merge all the posts in 150 threads (all threads made by the same user) into the same users latest/newest thread?
Do any of you have the MyBB used SQL which merges threads please (which maybe I could adapt to merge multiple at the same time)?
Thanks in advance