piotr-tokarczyk You can make a PR and I'll gladly merge it.
FriendsOfFlarum Default User Preferences
datitisev here you go
https://github.com/FriendsOfFlarum/default-user-preferences/pull/1
PS: didn't tested it, but no worries I'm a senior, I test only on prod
0.2.0
- Turn on follow after replying setting by default, thanks @piotr-tokarczyk
Updating
composer require fof/default-user-preferences
Hi,
I have install and enable this extension, But I dont now where can I set setting?
- Edited
hamedkouhfallah there are none in the Admin CP these just turn the following Notifications on/enabled/checked
by default in a user's personal forum settings when users join your forum rather than the default which is set to off/disabled/crossed out
0.3.0
- beta 14 compatible
Updating
composer require fof/default-user-preferences:^0.3.0
php flarum cache:clear
0.3.1
- Updated meta ready for beta 15 (no code/functionality change)
- Compatible with beta 14 and up
Updating
composer require fof/default-user-preferences:^0.3.1
FriendsOfFlarum Can it be used together with fof pretty mail?
Gatsu Even if you do not use this extension, and a user enables email notifications manually for mentions/replies, the PrettyMail templates for those actions would still be used.. this extension just enables those notifications for users by default in their preferences.
So yes it does work with, but they are not related. One changes default notification behaviour for a user for replies and mentions, the other is used for email notification templates. PrettyMail is restricted to a few different types of email templates (default, subscription/new post, mentioned user, mentioned post).
0.4.0
- Beta 16
Updating
composer require fof/default-user-preferences:"*"
IanM How can I set defaults? Is the preferences (i.e settings) of user is default to all new signed users?
Bishwas-py it's not configurable. It enables everything for new users.
I think that for existing users, it depends if they ever changed the default settings before. If they didn't, it will apply to them as well, but if they changed their settings before, their settings will stay.
[deleted]
what happens to old users?
[deleted] if what I describe in my post above isn't correct, it should be easy enough to try on a test forum.
1.0.0
- Flarum 1.0 ready
This is great. We have a lot of users who don't realise they're being tagged in posts, because they're not actively checking the forum themselves. When they don't see any emails, they assume there's no activity that warrants their attention.
Is there a simple way for me to alter this to iterate through the existing users on the forum, also? Looking at the code, it doesn't look like it should be too difficult - but I don't know where to look in the documentation to give this a go myself.
https://github.com/FriendsOfFlarum/default-user-preferences/blob/master/extend.php
troymccann Might be easier to just replace everyones user settings in the db directly with the default you want, and then after that people can customize and new users get the defaults.
ctml I was looking into that. Where are they in the database? Closest I could see was preferences stored in a binary blob?