Yup. Tested that. That changes basically NOTHING. I will tell you how it works. That "default" is just setting in your profile (that little switch in privacy). What is worse that does not affect the notifications at all. To make it happen you still have to go to the privacy settings and you have to hit SAVE. Then proper database entry is made and notifications are disabled. Crazy huh ? yeah. Problem is that by default code is written that way that if no database changes are made - then always notifications are sent. So no matter what is set in "default" php class code, no databse changes are made. In short - phpfox php code is not prepared for change in default behavior. It's set to sent notifications when NO databse changes are made. So setting the defaults to 0 does not change that because that does not affects database at all.
Ok...maybe I can get it right this time. It looks like when the notification for email notifications are change the following is added to the user_notification table with the user_id:
- comment.add_new_comment
- comment.approve_new_comment
- forum.subscribe_new_post
- friend.new_friend_accepted
- friend.new_friend_request
- like.new_like
- mail.new_message
If the above records are not there for the user than like Karol said...they get the emails and he is totally right on everything else as well. What we need to do is find the exact spot in the code where the user is added to the database and in that spot just add the 7 records to the database through
$this->database()->insert(Phpfox::getT('user_notification')