1
marcan
Default Notification Method
  • 2003/12/11 12:52

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


Is there a way to change de default notification method for users? For example, I would like that every new user has the Email notification by default. Now, by default it is Private Message, and they have to change it. How can I do that?

2
Dave_L
Re: Default Notification Method
  • 2003/12/11 16:54

  • Dave_L

  • XOOPS is my life!

  • Posts: 2277

  • Since: 2003/11/7


I don't know if this is the best way, but it looks like it should work:

kernel/user.php, class XoopsUser::(constructor)

Change:

$this->initVar('notify_method', XOBJ_DTYPE_OTHER, 1, false);

To:

$this->initVar('notify_method', XOBJ_DTYPE_OTHER, 2, false);

3
marcan
Re: Default Notification Method
  • 2003/12/12 13:54

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


It worked !

Thanks !

4
Mithrandir
Re: Default Notification Method

However, this will only be for NEW registrants - unless I have misunderstood something

5
marcan
Re: Default Notification Method
  • 2003/12/12 14:02

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


exactly, but for my site, most likely want the email notification so it should be the default when they register.

Personnaly, I think that this should be an option in the Admin | Preferences | User preferences.

Don't you think?

6
Mithrandir
Re: Default Notification Method

Yes, I think

And I think that it would be a good idea, yes.

7
marcan
Re: Default Notification Method
  • 2003/12/12 17:39

  • marcan

  • Just can't stay away

  • Posts: 824

  • Since: 2003/10/8


Does posting a message in the Feature Request forum is the official way to suggest a modification?

8
mvandam
Re: Default Notification Method
  • 2003/12/12 18:20

  • mvandam

  • Quite a regular

  • Posts: 253

  • Since: 2003/2/7 2


quote]
Does posting a message in the Feature Request forum is the official way to suggest a modification?
[/quote]
This seems to be what most people do... but I would suggest posting on sourceforge feature request (bottom right block on homepage) to make sure it doesn't get forgotten. Thanks!