Announcement

Collapse
No announcement yet.

userfields from wbb 2.3.6 to vB

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • userfields from wbb 2.3.6 to vB

    Hi

    I've just done a migration from wbb 2.3.6 to vB 3.8.4 and I've recognized that my standard userfields are not migrated.

    Is there a chance to get them migrated? Because I also have a custom userfield which is required in my new vb forum.


    source table: bb3_userfields
    userid int(11)
    field1 varchar(250)
    field2 varchar(250)
    field3 varchar(250)
    my_custom_userfield varchar(250)

    target table: vb3_userfield
    userid int(10)
    temp mediumtext
    field1 mediumtext
    field2 mediumtext
    field3 mediumtext
    field4 mediumtext
    my_custom_userfield mediumtext (or should this be set to varchar 250?)


    I have identified file impex\upload\impex\systems\wBB\004.php for userimport and the following code.

    PHP Code:
    // TODO: get them from the user fields
    $user_fields $this->get_wBB_user_fields($Db_target$target_database_type
    $target_table_prefix$user_id);

    $try->add_default_value('Occupation',            $user_fields[1]);
    $try->add_default_value('Location',             $user_fields[2]);
    $try->add_default_value('Interests',            $user_fields[3]); 
    But the code is confusing me because it seems that it is not designed to migrate the data, but fill the vBulletin table just with default values. However I'm was not able to get thedata migrated. Could you please help?

    thanks
    Boneman

  • #2
    I've created a new userfield "test" via admincp and changed the name of my custom field in bb3_userfields to field4 varchar(250)

    Now my tables and code looks like this, but the database is still empty in all fields. Does someone have any idea?

    source table: bb3_userfields
    userid int(11)
    field1 varchar(250)
    field2 varchar(250)
    field3 varchar(250)
    field4 varchar(250)

    target table: vb3_userfield
    userid int(10)
    temp mediumtext
    field1 mediumtext
    field2 mediumtext
    field3 mediumtext
    field4 mediumtext
    field5 mediumtext

    PHP Code:
    $user_fields $this->get_wBB_user_fields($Db_target$target_database_type
    $target_table_prefix$user_id);

    $try->add_default_value('Occupation',$user_fields[1]);
    $try->add_default_value('Location',$user_fields[2]);
    $try->add_default_value('Interests',$user_fields[3]);

    $try->add_default_value('test',$user_fields[4]); 

    Comment


    • #3
      problem is fixed by Mystics @vbulletin-germany.com

      http://www.vbulletin-germany.com/for...99&postcount=5

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...
      X