• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

vb import

ankurs

Well-known member
#1
do userid's change after import ?

if it does change, is it possible to keep old userids ? by changing some import code
 

Brogan

XenForo moderator
Staff member
#4
I expect so.

You will need to edit the importer .php files to achieve that.

I'll have to leave it to someone else to answer how though as that's not an area I know much about.
 
F

Floris

Guest
#5
Every table (relevant to this topic) has a UNIQUE auto-increment field.

vBulletin and XenForo both do.

If you have 5 people register, and you delete 4 of them, the next unique auto incremented number is 6, the next that registers gets 6.

If that's the case in vBulletin and you import a user into xenforo, then the first one is still there, then the next one is unique auto incremented id number 2. not 6. So old 6, becomes new 2.

To customize this to your needs you need to customize the script to say "ignore whatever xenforo already has, import 6 as 6, .." the consequences of this are unknown to me.

a userid means nothing to the end user, their names are still the same.
 

ankurs

Well-known member
#6
To customize this to your needs you need to customize the script to say "ignore whatever xenforo already has, import 6 as 6, .." the consequences of this are unknown to me.
i am going to import on a fresh xf installation, so same userids imported isnt going to happen

so this is possible ? with code modification in importer code of import users
a userid means nothing to the end user, their names are still the same.
i have a backend script which uses userid & changing that will break lot of things ; so changing userid isnt a option to me
 
F

Floris

Guest
#8
You can consider updating the script to support a usergroup, and in XenForo have a secondary usergroup you add these users to. That way it's dynamic and only have to change the usergroupid may it ever change.

select * from xf_user where usergroupid=x; (or whatever the query would be)
 
F

Floris

Guest
#10
Then I hope you find a developer of xenforo addons or custom scripts to volunteer recode the vb importer, or perhaps build a budget to elance.com find someone.
 

ankurs

Well-known member
#11
Then I hope you find a developer of xenforo addons or custom scripts to volunteer recode the vb importer, or perhaps build a budget to elance.com find someone.
do i need to recode the whole importer or just the user import ? i hope its just the user part
 
F

Floris

Guest
#12
I am not familiar with the vBulletin import script for XenForo beyond using it with great success.