FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum » How To » Change default notification setting
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Change default notification setting [message #162629] Sat, 26 June 2010 19:41 Go to next message
Arren is currently offline  Arren
Messages: 1
Registered: June 2010
Karma: 0
Junior Member
Hey,

I am trying to change the default setting for "Select Notification by Default" to "no".

I understand that this line in register.php.t is responsible for the radio box:
$notify_default_radio = tmpl_draw_radio_opt('reg_notify', "2\n0", "{TEMPLATE: yes}\n{TEMPLATE: no}", ($uent->users_opt & 2), '{TEMPLATE: radio_button_separator}');

and that ($uent->users_opt & 2) must be the setting yes/no.

However I don't understand how to change it, or where the users_opt for new users is set.

I'd appreciate if anyone could help me change this setting. Smile
Re: Change default notification setting [message #162633 is a reply to message #162629] Sun, 27 June 2010 06:28 Go to previous messageGo to next message
naudefj is currently offline  naudefj   
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
You can change the value for users_opt in add_user() in users_reg.inc.t.

Best regards.

Frank
Re: Change default notification setting [message #184962 is a reply to message #162633] Wed, 19 February 2014 23:14 Go to previous messageGo to next message
rshannon is currently offline  rshannon
Messages: 18
Registered: August 2002
Karma: 0
Junior Member
It looks like add_user() is deprecated in favor of add(). Would appreciate guidance on where in add() should users_opt be changed. TIA

[Updated on: Fri, 21 February 2014 21:40]

Report message to a moderator

Re: Change default notification setting [message #184983 is a reply to message #184962] Sat, 22 February 2014 08:49 Go to previous message
naudefj is currently offline  naudefj   
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Line 98:

if (empty($this->users_opt)) {
	$this->users_opt = 2|4|16|32|64|128|256|512|2048|4096|8192|16384|131072|4194304;
}
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: new account notification default
Next Topic: link back in output to mailing list
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 21 21:58:24 GMT 2024

Total time taken to generate the page: 0.02055 seconds