Previous Thread
Next Thread
Print Thread
Rate Thread
Joined: May 1999
Posts: 1,715
Addict
Addict
Joined: May 1999
Posts: 1,715
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.
Attachments
56209-postimporter_php.txt (0 Bytes, 25 downloads)

Sponsored Links
Entire Thread
Subject Posted By Posted
Help? Importing Posts from another Message Board Lerosia 08/29/2002 3:45 AM
Re: Help? Importing Posts from another Message Boa JoshPet 08/30/2002 1:31 AM
Re: Help? Importing Posts from another Message Boa Gardener 08/30/2002 1:42 AM
Re: Help? Importing Posts from another Message Board JustDave 08/30/2002 1:47 AM
Re: Help? Importing Posts from another Message Board Dave_L_dup1 08/30/2002 2:00 AM
Re: Help? Importing Posts from another Message Board JustDave 08/30/2002 2:09 AM
Re: Help? Importing Posts from another Message Boa Lerosia 08/30/2002 2:44 AM
Re: Help? Importing Posts from another Message Board Lerosia 08/30/2002 4:54 AM
Re: Help? Importing Posts from another Message Board Lerosia 09/05/2002 11:20 AM
Re: Help? Importing Posts from another Message Board Dave_L_dup1 09/05/2002 2:16 PM
Re: Help? Importing Posts from another Message Boa Gardener 09/06/2002 3:32 AM
Re: Help? Importing Posts from another Message Boa Lerosia 09/08/2002 3:33 PM
Re: Help? Importing Posts from another Message Boa Lerosia 09/08/2002 3:38 PM
Re: Help? Importing Posts from another Message Boa Gardener 09/09/2002 4:38 AM
Re: Help? Importing Posts from another Message Boa JoshPet 09/09/2002 4:46 AM
Re: Help? Importing Posts from another Message Boa Gardener 09/09/2002 6:30 AM
Re: Help? Importing Posts from another Message Boa Gardener 09/09/2002 7:28 AM
Re: Help? Importing Posts from another Message Boa Lerosia 09/09/2002 10:59 AM
Re: Help? Importing Posts from another Message Boa Lerosia 09/09/2002 11:06 AM
Re: Help? Importing Posts from another Message Boa Gardener 09/09/2002 3:47 PM

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
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
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,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20240506)