1
neteasy
Re: Default Notification Method - how to.....?
  • 2005/8/5 3:10

  • neteasy

  • Just popping in

  • Posts: 5

  • Since: 2004/11/24


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.



2
neteasy
Re: Default Notification Method - how to.....?
  • 2005/8/4 18:04

  • neteasy

  • Just popping in

  • Posts: 5

  • Since: 2004/11/24


yes, add this line and no update needed.



3
neteasy
Re: Default Notification Method - how to.....?
  • 2005/8/4 16:13

  • neteasy

  • Just popping in

  • Posts: 5

  • Since: 2004/11/24


EDIT @ Aug.4, 2005: this won't work... see page 2

edit kernel/user.php, line 76:

le="color: #000000"><?php function XoopsUser($id = null) { $this->initVar('uid', XOBJ_DTYPE_INT, null, false); $this->initVar('loginname', XOBJ_DTYPE_TXTBOX, null, true, 25); $this->initVar('uname', XOBJ_DTYPE_TXTBOX, null, true, 55); $this->initVar('name', XOBJ_DTYPE_TXTBOX, "", false, 75); $this->initVar('email', XOBJ_DTYPE_TXTBOX, null, true, 60); $this->initVar('pass', XOBJ_DTYPE_TXTBOX, null, false, 32); $this->initVar('rank', XOBJ_DTYPE_INT, 0, false); $this->initVar('level', XOBJ_DTYPE_INT, 0, false); $this->initVar('user_avatar', XOBJ_DTYPE_TXTBOX, "", false, 30); [color=FF0000]$this->initVar('notify_method', XOBJ_DTYPE_INT, 2, false);[/color]



4
neteasy
Re: 1and1 path confusion during Xoops install gives blank page error.
  • 2005/1/19 20:32

  • neteasy

  • Just popping in

  • Posts: 5

  • Since: 2004/11/24


god!!! I spent 2 hours and couldn't figure out this problem! This is exactly what was happening. Thank You!




TopTop