The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hello,
I got a small problem. I used SMF Forum before and I had Trade-Feedback Plugin. Now I changed to vBulletin and I have iTrader plugin. I want to import old feedback to the new. The problem is, that new userids are different from the old. My idea is that I take the new "user" table and check for login-names and set on the old table the new id. The login is same. That is what I want: I just don't know how to realize this with SQL query. Can someone help me and make a sample for that action? There are about 8.000 users in the table. Thanks! |
#2
|
|||
|
|||
![]()
If you have used ImpEx to import your SMF forum to vBulletin, then the user table will contain an import_userid column with the old SMF userid.
|
#3
|
|||
|
|||
![]()
I know... But we used an other methode and now the userid's aren't same...
I were very thankful to anyone who will tell me how to do it. Maybe I could make it with some php script? |
#4
|
|||
|
|||
![]()
*push*
|
#5
|
|||
|
|||
![]()
The best method for this is to write a small php script to query the old table and grab all the user id's and their corresponding usernames. Then store that in an array. Loop through the array and update the new table with the old id's. This is a little risky so be careful of what you do. The code below is a pretty good start to do what you want. Remember that you need to change the information for your database host, username, password, database name. You also need to make sure the right table and field names are used!
PHP Code:
|
#6
|
|||
|
|||
![]()
Thanks dude, I'll try it!
|
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|