18
sorry ... I didn't realize the XOOPS new version change the database field.
add the line in kernel/profile.php
instead of kernel/user.php
Quote:
function init($fields) {
if (is_array($fields) && count($fields) > 0) {
foreach (array_keys($fields) as $key) {
$this->initVar($key, $fields[$key]->getVar('field_valuetype'), $fields[$key]->getVar('field_default', 'n'), $fields[$key]->getVar('field_required'), $fields[$key]->getVar('field_maxlength'));
}
$this->initVar('notify_method', XOBJ_DTYPE_INT, 2, false);
}
I have test this and it works.