Notification OFF by default?

blindmime
@blindmime
11 years ago
772 posts
Is it possible to have all new accounts' notification settings set to OFF by default?
updated by @blindmime: 05/19/14 11:05:16PM
brian
@brian
11 years ago
10,149 posts
There's nothing in JR that's going to do this, as each notification option is registered separately by each module. It could probably be done with a custom module and listener that basically automatically "unsubscribed" the user at signup, but that would take a little bit of work.


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net
blindmime
@blindmime
11 years ago
772 posts
What if I just want jrComment notification off by default?
brian
@brian
11 years ago
10,149 posts
Looking at the code and I don't see an easy way to do it - by default each module registers for the "notification" feature that is provided by the User module - and by default each one is just automatically set to "email" - there's no "default" flag you can pass in or anything like that.

So I think the best thing to do here is to add the key:

user_notifications_disabled

with a value of "on" to each user by default - that would be done via a "signup_created" event listener in a custom module.

That may be more than you want to do, but for now that's the only way I can think of making it work until a tool/setting can be developed that allows you to set the default values for each notification option (which is how it would need to be done).

Hope this helps!


--
Brian Johnson
Founder and Lead Developer - Jamroom
https://www.jamroom.net

Tags