expatbase/var/www/html/flarum/vendor/fof/default-user-preferences
2025-08-29 00:22:05 +09:00
..
js Upload 2025-08-29 00:22:05 +09:00
less Upload 2025-08-29 00:22:05 +09:00
locale Upload 2025-08-29 00:22:05 +09:00
src Upload 2025-08-29 00:22:05 +09:00
composer.json Upload 2025-08-29 00:22:05 +09:00
extend.php Upload 2025-08-29 00:22:05 +09:00
LICENSE Upload 2025-08-29 00:22:05 +09:00
phpstan.neon Upload 2025-08-29 00:22:05 +09:00
README.md Upload 2025-08-29 00:22:05 +09:00

Default User Preferences by FriendsOfFlarum

License Latest Stable Version

A Flarum 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

(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:

composer require fof/default-user-preferences:"*"

Updating

composer update fof/default-user-preferences

An extension by FriendsOfFlarum.