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

Home » FUDforum » How To » Change default notification setting
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Change default notification setting [message #162629] Sat, 26 June 2010 15:41 Go to next message
Arren is currently offline  Arren
Messages: 1
Registered: June 2010
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 02:28 Go to previous messageGo to next message
naudefj is currently offline  naudefj   
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
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 18:14 Go to previous messageGo to next message
rshannon is currently offline  rshannon
Messages: 18
Registered: August 2002
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 16:40]

Report message to a moderator

Re: Change default notification setting [message #184983 is a reply to message #184962] Sat, 22 February 2014 03:49 Go to previous message
naudefj is currently offline  naudefj   
Messages: 3624
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
remove from buddy list
ignore all messages by this user
Line 98:

if (empty($this->users_opt)) {
	$this->users_opt = 2|4|16|32|64|128|256|512|2048|4096|8192|16384|131072|4194304;
}
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Tue Oct 17 02:16:03 EDT 2017

Total time taken to generate the page: 0.00644 seconds