I have finished a script that reads the file you provided and imports all messages into the database. The script is attached to this post.
There are some things you have to think about when you use it though. First, HTML isn't allowed in usernames on UBB.threads, so posts containing usernames with HTML won't be added to the database. You could easily edit these in the file before you import the messages and remove the HTML yourself. Another thing is that I don't think there is a way to keep the thread structure on replies where the subject has changed, so they will become threads of their own.
How to use the importer 1. Download the attached file and rename it to postimporter.php 2. Edit the variable $messagefile at the top and set it to the name of your message file. If it will be in the same directory you only need the name, otherwise you will need the complete path to it. 3. Edit the variable $BoardKeyword and set it to the keyword of the board that you want the messages to be inserted to. 4. If you don't want the IP of the posters to be in the imported messages you should set the variable $saveip to "". 5. Upload the file to the root directory of your UBB.threads install. Also make sure that the message file is in the correct place. 6. Run the script from your browser, or from the command line if you have a stand-alone php binary: > php postimporter.php
Done! You should now have lots of new (old) posts in your UBB.threads.
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.