masihdindar Did you run the migration step as per the upgrade instructions?

JasperVriends ⚠️ There are migrations in this update. Make sure to run php flarum migrate after updating this extension 🙂

    ctml Did you run the migration step as per the upgrade instructions?

    Of course i did.

    15 days later

    It doesn't seem to be compatible with php8.0

    Required parameter $lastEditedBy follows optional parameter $settings in /www/wwwroot/bbs/vendor/v17development/flarum-user-badges/src/AutoModerator/Action/GiveBadge.php on line 50
    PHP Deprecated: Required parameter $lastEditedBy follows optional parameter $settings in /www/wwwroot/bbs/vendor/v17development/flarum-user-badges/src/AutoModerator/Action/RemoveBadge.php on line 35

      allen13 you can (should) disable PHP deprecation warnings in production in php.ini. The extension will likely work fine with warnings hidden.

      2 months later

      Ziven very nice but this should be optional and toggle-able via extension settings, is it?

        I am having an issue with this extension:

        I can add badges just fine, but if I click the radio button "Badge is an image" it acts like it's going to take me to a new pop up but it never does. The screen just goes dark and blank and there is no in put box. I have to refresh the screen to get back to my Admin Panel. 🙁

        Any ideas? I have tried updating the extension though I installed it after the last update and I've tried using a different browser and disabling my pop up blocker.

          14 days later

          I have also tried to uninstall and reinstall the extension and I still can't get the image radio button to work 🙁

          I really love this extension and it would be even better if I could use the images, please if anyone has any ideas I would love the help!

          after I installed this extension, Flarum ask me to update database, is it correct?

            Awesome extension!.
            Any plan to add REST API?
            eg. I have that need. I would like to reward members dynamically specific badge. Thus, based on specific criteria , hours of use, achievement trigger point that I have configured in the achievement system of my app, member receive real-time achievement notification of badge award and it will show up next to his or her profile.
            In image below, it will be something I like to trigger a call to REST API at that specific time.
            ![Achievement](http://198.23.196.199/WinThreeWayBadge.jpg" Three Way Badge")
            Thanks!

              Ziven hey! thank you for this, but how can i use this on my flarum? i installed user badges but there is no option for this.

              and is there an option for a user to be able to chose only one badge from a category of badges?

              luceos
              Lock file operations: 0 installs, 0 updates, 1 removal

              • Removing v17development/flarum-user-badges (v1.1.0)
                Writing lock file
                Installing dependencies from lock file (including require-dev)
                Package operations: 0 installs, 0 updates, 1 removal
              • Removing v17development/flarum-user-badges (v1.1.0)

              I have removed this extension, why the software still ask me to update the database, thanks

                meihuak what happens after you insert your database password?

                The update screen is not supposed to appear after you enable an extension but it's not a big deal, it should go away after entering the password.

                Alternatively you could also run php flarum migrate via the command line to achieve the same result.

                there should be an option for user joinable badges. (users should be able to join them by themselves.

                10 days later

                Thanks for the nice extension!
                however,when i disabled this extension and purge it, something went wrong.

                I am using PHP8.0 ,MySQL5.7
                Here is the error log
                [2022-11-05 12:56:06] flarum.ERROR: PDOException: SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'badge_category_id'; check that column/key exists in /www/wwwroot/example.com/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:117
                It seems like something is missing in my database,but everything works well when i am using it.

                20 days later

                Ziven Hi, I've created a PR that add user badges to the discussion

                Hi, I suggest to show them beside the username, so that everything is on one line and more compact.
                If a user has too many badges, maybe we could also choose which one(s) to show limited to discussions.

                Something like this:

                And maybe being able to not show the icon, as an option

                  2 months later

                  VioletRage Pardon me for bumping your post after such long time.
                  I wonder, did you find a solution for this behavior (blank window) ?

                  I have the same thing.
                  Also, the little icons by the profile pic don't show up. But badges are on user card and profile.