We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

message notifications-global settings? | Forum

IB
IB Feb 11 '14
Hi,

Is there a way to set message notifications globally?

I'd like it to be set to immediately by default.


People on my site are complaining that they are not notified of messages straight away.

I know there is the setting in My Preferences, but that would involve each user doing this individually.

Is there a way I can globally set this for everyone?


Thanks.

dave Leader
dave Feb 11 '14
it would take a mod to write to the table on registration.  The table name is ow_notifications_schedule  and my original thought was to just change the default value for the field, however from what i can see the table is not even written to unless the user changes their preferences, otherwise they are not even in that table at all, so that idea will not work. 


Which means that it would be a code mode to do this as i see it right now.

dave Leader
dave Feb 12 '14
here is the best you can do i think... and that would be to just set this for new users.  


I do not know the full reg process with regard to privacy so to be honest i dont even know if this is executed during registration at all, and this has not been tested, and again i "think" even if it does work it will only affect new users. 


However, assuming i am right here... 


inside of  ow_plugins/notifications/bol/service.php


find this function (its down toward the bottom) 


public function getDefaultSchedule(){  return self::SCHEDULE_AUTO; }


and then just change SCHEDULE_AUTO;   to   SCHEDULE_IMMEDIATELY;


and then see what happens. 



team this should probably also go into custom coding i think.. 



Gopalakrishna Palem
Gopalakrishna Palem Feb 11 '15
Did it work? or is there any suggested mechanism to implement this global notification feature?


Our users are also requesting to be notified - but could not find a decent way to globally change this setting for all as "default value". 

Uriah
Uriah Dec 23 '21
I have a question about setting up global notifications for new messages. Is it possible to write superiorpapers online and set objects so that they will send out a notification whenever the value of the property is changed? I was wondering whether there is a way to do this with custom scripts or HUDs, if not can you recommend a plugin?