The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#7
|
||||
|
||||
![]()
So for instance if the extra fields where :
MEMBER_FNAME MEMBER_LNAME MEMBER_START MEMBER_END MEMBER_YEAR MEMBER_STATE MEMBER_HOUSE The code would be : 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'); $this->add_custom_field($Db_target, $tdt, $ttp, 'start','Start'); $this->add_custom_field($Db_target, $tdt, $ttp, 'end','End'); $this->add_custom_field($Db_target, $tdt, $ttp, 'year','Year'); $this->add_custom_field($Db_target, $tdt, $ttp, 'state','State'); $this->add_custom_field($Db_target, $tdt, $ttp, 'house','House'); Code:
$try->add_custom_value('fname', $user_details['MEMBER_FNAME']); $try->add_custom_value('lname', $user_details['MEMBER_LNAME']); $try->add_custom_value('start', $user_details['MEMBER_START']); $try->add_custom_value('end', $user_details['MEMBER_END']); $try->add_custom_value('year', $user_details['MEMBER_YEAR']); $try->add_custom_value('state', $user_details['MEMBER_STATE']); $try->add_custom_value('house', $user_details['MEMBER_HOUSE']); As shown in the attached file braced by : Code:
// ******************* // The custom stuff // ******************* |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|