fwrite($fp_user, str_replace('\\', '\\\\', "$user[userid] " . html_entity_decode($user['username']) . " $user[email] " . ($user['customtitle'] ? html_entity_decode($user['usertitle']) : '') . " 1 0 " . $importModel->resolveTimeZoneOffset($user['timezoneoffset'], $user['options'] & 64) . " 1 1 $user[usergroupid] $user[membergroupids] $userGroupDisplay $permissionComboId $user[posts] $user[pmunread] $user[joindate] $user[lastactivity] 0 0 $user[avatar_date] 192 192 " . ($user['usergroupid'] == 1 ? 'email_confirm' : 'valid') . " " . ($user['usergroupid'] == 4 ? '1' : '0') . " " . ($user['usergroupid'] == 3 ? '1' : '0') . " " . ($is_banned ? 1 : 0) . " $user[like_count] $user[ipoints] " . (($user['usergroupid'] == 4 OR $user['usergroupid'] == 3) ? '1' : '0')) . "\n");
Various assorted fixes.
Basically run them all, apart from dont tick the recalculate post positions.
Look at them in your vb installation. If their primary usergroup was administrator or moderator, then what you need to do after the import in xf is change their primaries to Registered User and then tick off Moderator for the mods and Administrator and Moderator for the admin.thanks for replies...
When importing users, my moderators/admins aren't automatically inserted into the Moderator and Admin lists in the control panel. It appears these lists are maintained by xf_moderator and xf_admin tables. How are these supposed to be populated after import? I rebuilt user caches but this didn't work. The users have "is_admin" and "is_moderator" fields as "1" in their xf_user table.
Look at them in your vb installation. If their primary usergroup was administrator or moderator, then what you need to do after the import in xf is change their primaries to Registered User and then tick off Moderator for the mods and Administrator and Moderator for the admin.
No it's working properly. The issue is actually how you have it setup on the vb side. I know this because we had the same problem. Apparently the correct way to have it on vb is the same as I described... Both mods and admins as registered users, with the mod/admin as their secondary group. That would allow the xf big board importer to import it properly.ok, so it's simply a manual process after you import to make them true moderators/admins? I don't mind doing that, it's just hard to tell if it's a botched import or that's how the import works.
No it's working properly. The issue is actually how you have it setup on the vb side. I know this because we had the same problem. Apparently the correct way to have it on vb is the same as I described... Both mods and admins as registered users, with the mod/admin as their secondary group. That would allow the xf big board importer to import it properly.
However at this point, I didn't wanna make such a change in the vb install since I didn't know what any side effects would be, so I just do the manual change in xf after the import.
You are correct. I just double checked our test server and there were no other moderators added to the xf_moderator table other than the admin.Ah, I think we are talking about different things. So, right, I get that. but did your Moderators appear in this list without any manual intervention? Moderators are a special class beyond just placing them as a 2ndary user group.
In the screenshot, I'd expect to see a dozen other usernames, but it just has mine.
thanks for replies...
When importing users, my moderators/admins aren't automatically inserted into the Moderator and Admin lists in the control panel. It appears these lists are maintained by xf_moderator and xf_admin tables. How are these supposed to be populated after import? I rebuilt user caches but this didn't work. The users have "is_admin" and "is_moderator" fields as "1" in their xf_user table.
Look at them in your vb installation. If their primary usergroup was administrator or moderator, then what you need to do after the import in xf is change their primaries to Registered User and then tick off Moderator for the mods and Administrator and Moderator for the admin.
With respect to this big board importer, it doesn't do any permissions (groups, mods, admins, or forum-specific permissions). You need to manually recreate all permissions in XF as appropriate. It's a one-time task. The permissions will persist since repeated imports are run against the same installation of XF. So... you recreate the mod/admin entries for those users in XF. Those entries are recorded in the database by user_id, and the user_ids for imported users are preserved each time you import. So on the next import those mod/admin entries are automatically associated again. You just need to rebuild the user cache after each import in order to update the cached permission values for the newly imported users.
I guess the procedure should be: Import, set up permissions, and reimport overtop of your Xenforo install? No need to empty the Xenforo installation each time?
Try emptying this setting in the Export script:
Code:// USE THIS SETTING TO SPECIFY AN EXTRA PIPE FOR ALL OUTPUT RECORDS // EXAMPLE IS TO PIPE OUTPUT THROUGH iconv IF CHARACTER ENCODING CHANGES ARE NEEDED // '| iconv -f LATIN1 -t UTF8' public static $extraOutCommand = '| iconv -f LATIN1 -t UTF8';
A broken pipe isn't necessarily caused by iconv, but removing it has fixed this problem for me before.
public static $extraOutCommand = '| /path/to/iconv-chunks - -f LATIN1 -t UTF8';
The only outstanding issue with using this importer for XF 1.4 is the xf_ip table. It was actually XF 1.3 which added support for IPv6, and this importer will need the various IP sections rewritten to conform to the new format. If you don't care about importing your IP logs then it doesn't matter. I have commented out this line in the Import.php script so it doesn't import the IPs in the meantime:
Code://importTable('xf_ip');
When I get time to do this... my inclination will probably be to import IPs using the old format and then copy some code from the XF 1.3 upgrade script to make the appropriate conversions after-the-fact.
We use essential cookies to make this site work, and optional cookies to enhance your experience.