DragonByte Tech
Well-known member
I'm looking at adding a couple options to let users control what emails they receive from a new product I'm creating.
First question; does the "Receive site mailings" act as a master switch for all emails? In other words if that option is off, is the "Receive email when a new conversation message is received" option ignored even if it's enabled?
Secondly; I'm looking at the process for adding a new user option and I want to make sure I'm not missing any points:

Thanks!
Fillip
First question; does the "Receive site mailings" act as a master switch for all emails? In other words if that option is off, is the "Receive email when a new conversation message is received" option ignored even if it's enabled?
Secondly; I'm looking at the process for adding a new user option and I want to make sure I'm not missing any points:
- Template modification:
admin:option_template_registrationDefaults - Template modification:
admin:user_edit - Template modification:
public:account_preferences - Class extension:
XF\Admin\Controller\Userto extendprotected function userSaveProcess(\XF\Entity\User $user)(setting up another entity input call) - Class extension:
XF\ChangeLog\Userto extendprotected function getLabelMap()andprotected function getFormatterMap() - Class extension:
XF\Entity\UserOptionto extendprotected function _setupDefaults() - Class extension:
XF\Pub\Controller\Accountto extendprotected function preferencesSaveProcess(\XF\Entity\User $visitor)(setting up another entity input call) - Class extension:
XF\Service\User\EmailStopto extendpublic function stopAll() - Code event listener:
entity_structure(hint:XF\Entity\User) to add the column to the structure
Thanks!
Fillip