i usually have to do that everytime for last few versionsCorrect.
I do seem to remember a few instances where is_admin wasn't set during the import. In that situation just manually set that field and your previous admin permissions will apply.
cheersHmm. I am gonna remind him in chat.
I wrote a more extensive guide that you may find useful, which I link to here, https://xenforo.com/community/threa...-3-vbulletin-4-paid.52796/page-49#post-993869 .Or do you have updated detailed list of steps ?
No users have their "is_admin" or "is_moderator" field set to "1" in the xf_user table of my database even though many are moderators or admins. What could be wrong with my import or setup?The users have "is_admin" and "is_moderator" fields as "1" in their xf_user table.
The issue is that only the vBulletin Primary Users (i.e. usergroupid in user table) is checked by the Export.php script for admin or mod membership. If you preemptively move all users to Registered Users for their Primary user group (as generally recommended in Xenforo) in vBulletin before migration, their imported is_admin/is_moderator setting will not be correct since Additional Users (i.e. membergroupids) is not checked for admin/mod membership....What could be wrong with my import or setup?
Does the Big Board Importer normally import is_moderator and is_admin settings? If not, what is the best way of setting these correctly for multiple test imports? Manually through the admin control panel each time I do an import, even for many moderators?
$groups = array($user['usergroupid']) + explode(',', $user['membergroupids']);
$groups = array_unique(array_merge(array($user['usergroupid']),explode(',', $user['membergroupids'])));
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");
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') . " " . (in_array(4, $groups) ? '1' : '0') . " " . (in_array(3, $groups) ? '1' : '0') . " " . ($is_banned ? 1 : 0) . " $user[like_count] $user[ipoints] " . ((in_array(3, $groups) OR in_array(4, $groups)) ? '1' : '0')) . "\n");
I have six LinkForum(s). They are shown in both xf_link.txt and xf_node.txt. However, they do not appear in the node tree after import. How should I fix this?
The xf_node.txt file contains them as well, but the xf_node table does not (except for that one).
importTable('xf_node');
@michael24179
$avatarFile and $attachFile should be declared near the top of the class. Did you remove them?
Code:// VB'S STORAGE DIRECTORIES // IF EMPTY ('') THEN IT LOOKS TO THE DATABASE FOR THE FILE DATA public static $avatarFile = '/home/sites/yoursite/public_html/forums/customavatars/'; public static $profilePicFile = '/home/sites/yoursite/public_html/forums/customprofilepics/'; public static $attachFile = '/home/sites/yoursite/attachments/';
Hi Jake,
How would we handle file-based attachments and avatart if they are on a separate server from the Xenforo installation?
chmod -R 777 ./data
We use essential cookies to make this site work, and optional cookies to enhance your experience.