Not Solved Converter phpbb2 -> mybb1.2
#1
Not Solved
Converter phpbb2 -> mybb1.2


Attached Files
.zip   import_phpbb2.zip (Size: 21.38 KB / Downloads: 3,801)
Reply
#2
Not Solved
Yeepah, thanks a lot.
[Image: yougoudouxj4.gif]
French community : http://www.mybb.fr
Reply
#3
Not Solved
Hmm... thanks. Works... almost. When I run this on the hompage it shows everything as it should except threads - it doesn't show threads in the forum home.
Reply
#4
Not Solved
Try Rebuilding your statistics and things in the Admin CP.
@ryanashbrook
Do NOT PM me for Support!
Reply
#5
Not Solved
Okay, thanks. That worked. However, when viewing the actual thread (and only there as far as I can tell) I get an error:

Warning: Invalid argument supplied for foreach() in /home/username/public_html/forum/inc/class_parser.php on line 344
Reply
#6
Not Solved
Nevermind. I fixed it when I upgraded to 1.2.1. Thanks,
Reply
#7
Not Solved
Good work! So you get more MyBB users!
Reply
#8
Not Solved
Thanks for the great import tool. Users, forums, threads, posts, and polls all worked ok. But avatars (either uploaded, linked, or gallery) and attachments didn't get imported for me. Has anyone got these to work?

Also, is it ok to run the import more than once? For example, during the transition period where I have both phpBB and myBB running while I play around with myBB and my users are still using the phpBB daily -- can I just run the import tool again to make myBB synced up with phpBB?
Reply
#9
Not Solved
To answer my own questions:

Yes it is possible to import avatars. In my case, remote avatars were being imported, but uploaded and gallery avatars were not being copied over.
I made a change in the 001_users.php that fixed this:

Find:
$result = import_avatar($user['user_id'], $phpBB2url . 'images/avatars/gallery/' . $user['user_avatar']);
and
$result = import_avatar($user['user_id'], $phpBB2url . 'images/avatars/' . $user['user_avatar']);

In those lines, replace
$phpBB2url
with
$phpbb_path

Update: the same change (replace $phpBB2url with $phpbb_path) applied in 010_attachments.php allowed me to import attachments as well.

Also, I didn't run into any problems so far from running parts of the script multiple times (users, threads, posts, polls). It just seems to overwrite the data again. Just have to remember to recalculate stats and post counts in the Admin CP afterwards.
Reply
#10
Not Solved
labrocca Wrote:On line 116 of 005_threads.php I had to addslashes() in order to get past an error.

	$db->insert_query("#_threads", $newthread, addslashes(array('tid', 'fid', 'icon', 'poll', 'uid', 'dateline', 'firstpost',
		'lastpost', 'views', 'replies', 'sticky', 'numratings', 'totalratings', 'visible')));
You cannot use addslashes on an array. And why should you have addslashes there? Seems stupid to me.. As that isn't anything that is used when inserting to the db Confused
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)