Just used this on an old IPB install 1.3.1
Issues to fix before starting:
1) The config for MyBB must have changed.
So every instance of
$config[hostname]
needed to be replaced with
$config['database']['hostname']
instead. You'll find this:
$mybb_db = mysql_connect($config[hostname], $config[username], $config[password], true);
mysql_select_db($config[database], $mybb_db);
needs to be this:
$mybb_db = mysql_connect($config['database']['hostname'], $config['database']['username'], $config['database']['password'], true);
mysql_select_db($config['database']['database'], $mybb_db);
Ten instances required changing like that, but also 40 instances of
$config[table_prefix]
to
$config['database']['table_prefix']
Another change required was in the usergroups. There is no "canaddpublicevent" and "canaddprivateevent" within the database, so remove one of them (I got rid of public event) and altered "canaddprivateevent" to "canaddevent" (just do a search on the file).
After that the script ran fine.
Not had a chance to go over it yet, but so far nothing shows in the forums - so will investigate and see if I cannot locate the source of errors.
Hmm, seems to be a series of errors. Incorrectly set permissions for "open" and "active" on all forums, let alone user permissions which mean anyone could see admin sections.
However, whilst the overview shows the forum correctly, trying to go into any forum/category renders an "invalid forum" message.
Hmm
Permissions and others are norked by import.
Firstly:
UPDATE `mybb_forums` SET `active` = 1, `open` = 1 WHERE 1
By default, after import, no forums were visible.
Then parent id's were wrong.
UPDATE `mybb_forums` SET `parentlist` = `fid` WHERE type = 'c'
That's correcting the parentlist to be the forum id if it's a category.
The problem is then sub forums parentslist, which this may not be the most efficient way - but it works
UPDATE mybb_forums as fr, mybb_forums as t SET fr.parentlist = CONCAT_WS(',',t.parentlist,fr.fid) WHERE fr.fid != 0 AND fr.pid = t.fid
That sorts out the parents listings for non categories (can use fr.type != 'c' instead of fr.fid != 0).