1
Ronaldus
Change default notification method
  • 2007/4/21 13:24

  • Ronaldus

  • Friend of XOOPS

  • Posts: 389

  • Since: 2004/5/8 1


Hai folks,

Is there a way to change the default notification method from PM to email, in a way that goes automatically, i.e. that email IS the default and people have to change manually to PM if they wish?

Thx in advance and grtz,

2
MadFish
Re: Change default notification method
  • 2007/4/21 15:31

  • MadFish

  • Friend of XOOPS

  • Posts: 1056

  • Since: 2003/9/27


There is no admin setting to do this.

I *think* you can do it by altering the default value of the 'notify_method' field in the 'users' table of the database to '2'. However, this will only apply to people who register after you make the change.

Please back up your database before you go messing around with it. I might be horribly wrong :)

3
Ronaldus
Re: Change default notification method
  • 2007/4/21 16:32

  • Ronaldus

  • Friend of XOOPS

  • Posts: 389

  • Since: 2004/5/8 1


Thx Madfish,

I have a local backup to experiment with, so I'll try it out!

Grtz,

4
Ronaldus
Re: Change default notification method
  • 2007/4/22 18:00

  • Ronaldus

  • Friend of XOOPS

  • Posts: 389

  • Since: 2004/5/8 1


I tried your suggestion Madfish.
However: new registrations still have the default notification method PM...

Still I think your suggestion is good; I have my own notifications by email and the value in the table is 2 in my case.

So, what could be the issue here?
I updated the system module to be sure, but that didn't make a difference. Anything I forgot?

Thanks in advance and grtz,

5
don1974
Re: Change default notification method
  • 2007/5/3 9:55

  • don1974

  • Just popping in

  • Posts: 1

  • Since: 2007/5/3 9


Hi, I am curious to know if there is a way to fix this.

I have also update notify_method to 2, and still the default notification is PM.

Maybe its got something to do with the receive occasional email notices being set to off my default?

Any ideas anybody?

6
hyzteric
Re: Change default notification method
  • 2007/6/10 18:41

  • hyzteric

  • Just popping in

  • Posts: 2

  • Since: 2006/9/29


I'm interested in this too...
Tried to edit edituser.php but... could not find anything relevant to edit
Can't see where the default value is!

7
zyspec
Re: Change default notification method
  • 2007/6/10 19:28

  • zyspec

  • Module Developer

  • Posts: 1095

  • Since: 2004/9/21


I, like MadFish, haven't actually tried this but looking at the code is appears to me the best place to change this in XOOPS 2.10.16 is in /kernel/user.php line 98 - should be changed from:
$this->initVar('notify_method'XOBJ_DTYPE_OTHER1false);
to:
$this->initVar('notify_method'XOBJ_DTYPE_OTHER, [b][color=00CC00]2[/color][/b], false);


This is where default values are established for a new user.

8
Ronaldus
Re: Change default notification method (solved)
  • 2007/6/11 6:41

  • Ronaldus

  • Friend of XOOPS

  • Posts: 389

  • Since: 2004/5/8 1


That did the trick!!!

Thank you zyspec !!

9
hyzteric
Re: Change default notification method
  • 2007/6/12 18:54

  • hyzteric

  • Just popping in

  • Posts: 2

  • Since: 2006/9/29


It worked here too, thank you!
All new people that register will now be notified via email

10
fosterm
Re: Change default notification method
  • 2007/7/28 23:57

  • fosterm

  • Just popping in

  • Posts: 93

  • Since: 2005/8/7 2


anyone able to give the 2.2.5 users a hand on doing the same thing?

I have unsuccessfully attempted to find the correct code to change but cannot.

Any help would be appreciated.

Thanks

Login

Who's Online

172 user(s) are online (118 user(s) are browsing Support Forums)


Members: 0


Guests: 172


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