XF 2.2 Disable "and receive email notifications" by default

Compi

Member
The emails my forum can send hourly are limited, I want to disable the checkmark to be ticked by default when creating a post. It should still be clickable and working if a user decides to want emails
 
Solution
For new users registration you can set the defaults in ACP > Options > User registration

yoursite.com/admin.php?options/groups/usersAndRegistration/

Screenshot 2022-02-03 at 15.58.20.webp

For existing you need to do a database query.

It's a long time since I did this, try on a test froum before trusting I have this 100% correct!

Code:
UPDATE `xf_user_option`
SET `interaction_watch_state` = COALESCE(NULLIF(interaction_watch_state,''), 'watch_no_email')

UPDATE `xf_user_option`
SET `creation_watch_state` = COALESCE(NULLIF(creation_watch_state,''), 'watch_no_email')
For new users registration you can set the defaults in ACP > Options > User registration

yoursite.com/admin.php?options/groups/usersAndRegistration/

Screenshot 2022-02-03 at 15.58.20.webp

For existing you need to do a database query.

It's a long time since I did this, try on a test froum before trusting I have this 100% correct!

Code:
UPDATE `xf_user_option`
SET `interaction_watch_state` = COALESCE(NULLIF(interaction_watch_state,''), 'watch_no_email')

UPDATE `xf_user_option`
SET `creation_watch_state` = COALESCE(NULLIF(creation_watch_state,''), 'watch_no_email')
 
Solution
Back
Top Bottom