https://github.com/FriendsOfFlarum/default-user-preferences
Enable emails for replies and mentions by default in user preferences
https://github.com/FriendsOfFlarum/default-user-preferences
flarum friendsofflarum
Last synced: about 2 months ago
JSON representation
Enable emails for replies and mentions by default in user preferences
- Host: GitHub
- URL: https://github.com/FriendsOfFlarum/default-user-preferences
- Owner: FriendsOfFlarum
- License: mit
- Created: 2019-01-24T23:38:15.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-10-04T08:57:40.000Z (8 months ago)
- Last Synced: 2024-10-29T22:37:23.913Z (7 months ago)
- Topics: flarum, friendsofflarum
- Language: PHP
- Size: 193 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
- awesome-flarum - FoF Default User Preferences - Enable emails for replies and mentions by default in user preferences. (Extensions / User ([:top:](#table-of-contents)))
README
# Default User Preferences by FriendsOfFlarum
 [](https://packagist.org/packages/fof/default-user-preferences)
A [Flarum](http://flarum.org) extension.
Enables the following preferences by default for all new user signing up to your forum, with toggles in the extension settings to modify your chosen defaults.:
- 'Someone replies to one of my posts (email) notification'
- 'Someone mentions me in a post (email) notification'
- 'Follow after reply'### Extending
Additional extensions may register defaults on the following way:
In your extension `extend.php`
```php
(new \FoF\DefaultUserPreferences\Extend\RegisterUserPreferenceDefault())
->register(THE PREFERENCE KEY, THE DEFAULT VALUE),
```Be sure to include translations in the `fof-default-user-preferences.admin.settings` namespace with the key matching the `PREFERENCE KEY` provided in the extender above. For example:
`fof-default-user-preferences.admin.settings.myCoolKey`
### Installation
Install manually with composer:
```sh
composer require fof/default-user-preferences:"*"
```### Updating
```sh
composer update fof/default-user-preferences
```### Links
- [Packagist](https://packagist.org/packages/fof/default-user-preferences)
- [GitHub](https://github.com/FriendsOfFlarum/default-user-preferences)An extension by [FriendsOfFlarum](https://github.com/FriendsOfFlarum).