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:

function XoopsUser($id null)
    {
        
$this->initVar('uid'XOBJ_DTYPE_INTnullfalse);
        
$this->initVar('loginname'XOBJ_DTYPE_TXTBOXnulltrue25);
        
$this->initVar('uname'XOBJ_DTYPE_TXTBOXnulltrue55);
        
$this->initVar('name'XOBJ_DTYPE_TXTBOX""false75);
        
$this->initVar('email'XOBJ_DTYPE_TXTBOXnulltrue60);
        
$this->initVar('pass'XOBJ_DTYPE_TXTBOXnullfalse32);
        
$this->initVar('rank'XOBJ_DTYPE_INT0false);
        
$this->initVar('level'XOBJ_DTYPE_INT0false);
        
$this->initVar('user_avatar'XOBJ_DTYPE_TXTBOX""false30);
        [
color=FF0000]$this->initVar('notify_method'XOBJ_DTYPE_INT2false);[/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



Login

Who's Online

231 user(s) are online (150 user(s) are browsing Support Forums)


Members: 0


Guests: 231


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits