11
Jufis
Re: Default Notification Method - how to.....?
  • 2005/8/4 16:58

  • Jufis

  • Just popping in

  • Posts: 46

  • Since: 2005/7/21


so that's it? Do i need to run somekind of update or something??

12
JamesSAEP
Re: Default Notification Method - how to.....?
  • 2005/8/4 17:01

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Quote:

neteasy wrote:
edit kernel/user.php, line 76:

[color=FF0000]$this->initVar('notify_method'XOBJ_DTYPE_INT2false);[/color]


Looking at the user.php file in XOOPS 2.2, this line isn't there. Or am I blind

13
Jufis
Re: Default Notification Method - how to.....?
  • 2005/8/4 17:02

  • Jufis

  • Just popping in

  • Posts: 46

  • Since: 2005/7/21


i was wondering that too so i thought i need to add it

14
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.

15
Jufis
Re: Default Notification Method - how to.....?
  • 2005/8/4 18:07

  • Jufis

  • Just popping in

  • Posts: 46

  • Since: 2005/7/21


k. thanks

16
JamesSAEP
Re: Default Notification Method - how to.....?
  • 2005/8/4 18:09

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Cool, thanks.

17
Phatbloke
Re: Default Notification Method - how to.....?
  • 2005/8/5 0:05

  • Phatbloke

  • Just popping in

  • Posts: 48

  • Since: 2005/4/22


I get the error

"Could not register new user."

when i try register as new user with this method. Any ideas. I'm not sure how to show debug info if you are not logged in as webmaster. It will let me add one from the administration area though.

18
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.

19
Jufis
Re: Default Notification Method - how to.....?
  • 2005/8/5 10:36

  • Jufis

  • Just popping in

  • Posts: 46

  • Since: 2005/7/21


ok thanks. I'll try that

20
JamesSAEP
Re: Default Notification Method - how to.....?
  • 2005/8/5 15:01

  • JamesSAEP

  • Just can't stay away

  • Posts: 732

  • Since: 2005/2/28


Great, that works like a charm.

Login

Who's Online

70 user(s) are online (37 user(s) are browsing Support Forums)


Members: 0


Guests: 70


more...

Donat-O-Meter

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

Latest GitHub Commits