• Extensions
  • FriendsOfFlarum Default User Preferences

0.2.0

Updating

composer require fof/default-user-preferences
2 months later

Hi,
I have install and enable this extension, But I dont now where can I set setting?

    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 ❌


    Default Notification Settings for Email

    a year later

    0.3.0

    • beta 14 compatible
    Updating
    composer require fof/default-user-preferences:^0.3.0
    php flarum cache:clear
    6 days later

    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
    17 days later

    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).

    3 months later

    0.4.0

    • Beta 16
    Updating
    composer require fof/default-user-preferences:"*"
      a month later

      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] if what I describe in my post above isn't correct, it should be easy enough to try on a test forum.

      25 days later
      a month later

      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

      • ctml replied to this.

        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?

          • ctml replied to this.