IPB 1.3 > vB 3 - Importing Custom Profile Fields

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • BassX
    Senior Member
    • Oct 2001
    • 124
    • 3.8.x

    IPB 1.3 > vB 3 - Importing Custom Profile Fields

    Hey Jerry,

    After a long break, I'm finally getting around to finalizing my import process and I have 1 issue to resolve.

    I would like to import 2 custom profile fields that I created in IPB: "First Name" and "Last Name"

    I came across this thread, http://www.vbulletin.com/forum/showt...hlight=profile , where you mention that it's possible with custom code (for a different forum) and that you'd discuss it on vB.org. Well couldn't find any reference to it on vB.org.

    Could you please let me know if this is possible and the process to acheive it.

    Thanks
  • BassX
    Senior Member
    • Oct 2001
    • 124
    • 3.8.x

    #2
    Bump

    Comment

    • Jerry
      Senior Member
      • Dec 2002
      • 9137
      • 1.1.x

      #3
      Are the custom fields additional columns you have added to the members table ?

      If so do this ........

      -------------------------------

      flie : impex/systems/ipb/004.php
      line : 71 ( or any where in init() )

      add the fields to the dB with ;

      Code:
      // Add all the custom fields we want to import
      $tdt = $sessionobject->get_session_var('targetdatabasetype');
      $ttp = $sessionobject->get_session_var('targettableprefix');
      
      $this->add_custom_field($Db_target, $tdt, $ttp, 'fname','First name');
      $this->add_custom_field($Db_target, $tdt, $ttp, 'lname','Last name');
      That creates them in the dB so impex has some where to put the data.

      Then in resume() line 200 ish import the data ;

      Code:
      $try->add_custom_value('fname', addslashes(trim($user['firstname'])));
      $try->add_custom_value('lname', addslashes(trim($user['lastname'])));
      Where firstname and lastname are the extra columns in the members table.
      I wrote ImpEx.

      Blog | Me

      Comment

      • BassX
        Senior Member
        • Oct 2001
        • 124
        • 3.8.x

        #4
        Thanks Jerry! I will give it a try.

        They were custiom profile fields that I added through the "Custome Profile Field Manager" in the AdminCP.

        Comment

        widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
        Working...
        😀
        😂
        🥰
        😘
        🤢
        😎
        😞
        😡
        👍
        👎