1
tedsmith
Changing Default Notification Method for ALL New Users
  • 2006/8/17 23:16

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


I'd like to ensure that when a user registers, the 'Notification Method' is set as 'E-mail' by default as opposed to 'PM' as it is currently. Any ideas on how to do that?

Related to this forum thread

Ted

2
Lance_
Re: Changing Default Notification Method for ALL New Users
  • 2006/8/18 0:04

  • Lance_

  • Home away from home

  • Posts: 983

  • Since: 2004/1/12


//EDIT////////////////////
Tried this didn't work,
Must be on some kind of track though.
////////////////////////////

Quote:

In file /include/notifications_constants.php

change

define('XOOPS_NOTIFICATION_METHOD_PM', 1);
define('XOOPS_NOTIFICATION_METHOD_EMAIL', 2);

to

define('XOOPS_NOTIFICATION_METHOD_PM', 2);
define('XOOPS_NOTIFICATION_METHOD_EMAIL', 1);


Cheers.


//EDIT 2 /////////////////////////////////
I have it set e-mail now in user profile, it has not been tested as to working. Hope nothing else was broken.

The correct way of doing it would be to find where in the creation sequence the 1 for PM gets attributed and change it to 2 for email.

I just couldn't right now.
/////////////////////////////////////////
GDL-Web.com :: Website development.
Xoopslance.com::Freelancing and Projects
thelionsden-arena.net:: Clan/League/Ladder Hosting

3
Daigoro
Re: Changing Default Notification Method for ALL New Users
  • 2006/9/14 21:54

  • Daigoro

  • Quite a regular

  • Posts: 223

  • Since: 2003/7/3 2


This should be the correct way to make the notification per email the default for new members.

Edit xoopsroot/kernal/user.php and locate this line:

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


Change it into:

Quote:
$this->initVar('notify_method', XOBJ_DTYPE_OTHER, 2, false);
Best regards,
Daigoro

Login

Who's Online

282 user(s) are online (243 user(s) are browsing Support Forums)


Members: 0


Guests: 282


more...

Donat-O-Meter

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

Latest GitHub Commits