Support Forum
Exporting forum - moving forum to new website
Yellow Swordfish
Glinton, England
SP Master
Offline
If you can massage the source data using SQL queries to update some columns then things might get easier. Let's see if I can come up with an order. This might not be perfect but it is more or less correct I believe.
- Source: Change all the user_id of the WP Users and UserMeta tables and the user_id of the SP sfmembers table to enable them to be added to the Target. So basically you would then be circumventing the current auto-increment of the WP users table after you subsequently copy these records in from source.
- Copy from source the WP Users, UserMeta and SP sfmembers data.
- You would need to build the SP sfmemberships as well which assigns each new member to a User Group.
- Create your new forum on the target and note the forum ID.
- Update the source sftopics and sfposts tables with the new forum ID from target.
- Change the source sftopics topic_id column to ensure no clashes with taregt topic_id numbers
- Change the source sfposts post_id column top ensure no clashes with target post_id numbers
- Now for the tricky bit! Each sfpost record contains the topic_id (now changed in 6 above) and a user_id (now changed in 1 above) which would need to be changed for each topic record to their new values.
- At this point you should be able to add the data to the target DB.
- Then go to the forum admin > toolbox > housekeeping and update the forum indexing for the new forum.
And if I missed anything then as long as you make separate backups from each stage it should then be possible to revert to do again.
I am sure Steve (Mr Papa) will shout if he spots I have missed anything.
YELLOW
SWORDFISH
|
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626