用户个人资料2个新手机字段

时间:2017-03-26 20:45:08

标签: php jquery osclass

大家好,我如何在Osclass的用户个人资料页面上添加2个新手机字段?

这就是我已经尝试过的!

我在数据库中在t_user中添加了2个新字段 s_phone_mobile2 s_phome_mobile3

α-内容/主题/ ctg_housing /用户profile.php

<label class="control-label" for="phoneMobile2">
  <?php _e('2 Mobile #', 'ctg_housing'); ?>
  (<?php _e('optional', 'ctg_housing'); ?>)
</label>
<?php UserForm::phone_mobile2_text(osc_user()); ?>
<label class="control-label" for="phoneMobile3">
  <?php _e('3 Mobile #', 'ctg_housing'); ?>
  (<?php _e('optional', 'ctg_housing'); ?>)
</label>
<?php UserForm::phone_mobile3_text(osc_user()); ?>

α-包括/ osclass / UserActions.php

$input['s_phone_mobile2'] = trim(Params::getParam('s_phone_mobile2'));
$input['s_phone_mobile3'] = trim(Params::getParam('s_phone_mobile3'));

希望有人可以提供帮助!

由于

0 个答案:

没有答案