Previous Thread
Next Thread
Print Thread
Hop To
Joined: Sep 2007
Posts: 4
B
stranger
stranger
B Offline
Joined: Sep 2007
Posts: 4
Hi all,
several years ago I have, for the purpose of learning, developed my own forum, which became in a certain smaller group of users (developers) somewhat popular.

But as time passed by, i kinda forgot about that community (i know it's no excuse, but i had others, larger ones to care for), so i really never upgraded that forum.

So now, after approximately seven years, i used my copy of ubbthreads to migrate whole community to a more stable environment. after a whole days work i finally managed to get this custom migration script working.

Most things work now, but there is only one problem left - i still don't have a working copy of POST_BODY in _posts table, only POST_DEFAULT_BODY.

It's obvious, with 15k+ posts i really don't want to edit every single message manually to repair it.

Is there any simple "rebuild all posts" type of command, or at least a sample part of generic importer code, which i could use to just get rid of this simple annoyance?


Thanks for your help.

Joined: Jun 2006
Posts: 9,242
Likes: 1
R
Former Developer
Former Developer
R Offline
Joined: Jun 2006
Posts: 9,242
Likes: 1
If you're running 7.3, then what you could do is use the Content Rebuilder section, and rebuild the post content. This will take what is in the POST_DEFAULT_BODY and then populate the POST_BODY field.

If your POST_DEFAULT_BODY already contains all of the marked up code and could be used directly, another option is just to run a simple query and set the POST_BODY to be the same as POST_DEFAULT_BODY

update ubbt_POSTS set POST_BODY = POST_DEFAULT_BODY

Joined: Sep 2007
Posts: 4
B
stranger
stranger
B Offline
Joined: Sep 2007
Posts: 4
Thank you very much Rick, looks like i'm gonna upgrade first and then let content rebuilder do its magic smile


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
DB error - Need help
by Pilgrim - 06/21/2025 5:52 PM
Honestly Disappointed in v8
by - 04/22/2025 2:21 PM
Who's Online Now
0 members (), 128 guests, and 346 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Ride safe!
Ride safe!
by Morgan, December 7
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20250209)