JasperVriends Hi bro, I like this extension very much, it can do some great things! But I still want to make some suggestions, I hope you can adopt them. First of all, I can’t see the badges I got on my user information page or other pages. If other users can’t see the badges intuitively, there may be many people who don’t even know there is a 'badge' exist. Then, if it can set the color of the badge like Set User Group, it will be very, very good! Finally, my English is not very good. If you don’t understand anything, please leave me a message. thank you very much!

    10 days later

    Release v1.0.0 - Images, colors & more 🖌️

    It's time for a v1.0 release! This update brings colors and images to your badges!

    Style your badges in any color! It is possible to color the badge icon, badge background and badge text separately. Images can be any URL, so you can decide where to place your cool user badge images.

    Enjoy the update and make sure to share your feedback 😎

    Changelog

    To update, run:

    composer update v17development/flarum-user-badges

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

    If you run into any issues, please make sure to create an issue here: https://github.com/v17development/flarum-user-badges/issues


    010101 Let's help you with that with this update 🙂

    shebaoting The extension now supports images!

    Airy-_- Thanks for the feedback! Is a "Badges" user menu item what you need?


    Images and colored badges

    New badge settings

      JasperVriends I love it! I've been having fun customising each badge for a while now 😂

      I still have to think about the new possibilities now that you can upload images, I quite liked the example of the screenshot with the Image Banners.

      Thanks a lot for the update 🙂

        Hello,thank u for your powerful extention.it's really useful!

        And there find some issue

        1.When i click Load More button,the new list is repetitive.

        2.The badge can be repetitive,when i use automoderator change the rule ,implement again,the badge will be award again.

        flarum 1.1.1 extention is new

          There is a bug here

          Deprecated: Required parameter $lastEditedBy follows optional parameter $settings in \vendor\v17development\flarum-user-badges\src\AutoModerator\Action\GiveBadge.php on line 50


          Fatal error: Declaration of V17Development\FlarumUserBadges\AutoModerator\Action\GiveBadge::execute(Flarum\User\User $user, array $settings, Flarum\User\User $lastEditedBy) must be compatible with Askvortsov\AutoModerator\Action\ActionDriverInterface::execute(Flarum\User\User $user, Flarum\User\User $lastEditedBy, array $settings = []) in \vendor\v17development\flarum-user-badges\src\AutoModerator\Action\GiveBadge.php on line 50

          JasperVriends

            offtop in a way. since now you can use images. Anyone got good collection in a zip folder. I google it, but they all crappy

              JasperVriends Sure! You can have a look here.

              Anonymous43 Yeah, it's hard to find something that fits your site that is also royalty free, I'm thinking about designing them myself, so I'll probably make community related, maybe you could do the same.

              2 months later

              Great extension - thanks a lot! I would like to input a bunch of email addresses / usernames, and give those people badges because they have attended an event. Is there any way I can achieve this? Thanks for your help.

              Hello. On the admin side, it says that the model is not registered in the userBadges store.
              fireDebugWarning.ts:17 [Flarum 2.0 Deprecation] Pushing object of typeuserBadgesnot allowed, as type not yet registered in the store.
              Registered in src/admin/index.js
              import UserBadge from "../common/models/UserBadge";
              app.store.models.userBadges = UserBadge;
              but the warning from the console never disappears. What did he do wrong?

              3 months later

              Hello,
              So im new to flarum and im currently trying to use this extension. However im running into an issue that im suprised no one else is having.

              When using freeflarum when i go to try and upload an image to be used for the badge, the image breaks. I have tried in my head to do everything. If it were a scaling issue with the image itself, to seeing if https or http made a difference (which it did but it still didnt display the image)

              My question is how do i properly upload url based images into the image url section of a badge without it breaking and are there any pre reqs i need to follow to make sure it gets uploaded (ie. Image size, image type, image resolution, etc.)

                SethFPSde i assume that this might be an issue / limitation of FreeFlarum. As far as I know you are not allowed to upload files to the server there. Maybe @SKevo can give some insight to this.

                SethFPSde it's true that we do not allow file uploads, but that limitation is only for FoF Upload (where we have a custom extender for that). We haven't put any limitations to this extension (User Badges).

                SethFPSde My question is how do i properly upload url based images into the image url section of a badge without it breaking and are there any pre reqs i need to follow to make sure it gets uploaded (ie. Image size, image type, image resolution, etc.)

                By "URL based images", do you mean that the extension allows you to enter an URL to the image, which is hosted elsewhere? I assume that the extension might be embedding images from external URLs directly, instead of uploading them to FreeFlarum and then serving that. I'd suggest looking into the browser console for some clues (e. g.: CORS errors, etc...).

                Also, by "breaking", do you mean that the image is not displayed and instead the default browser image placeholder is shown? That further hints at the fact that these images might not be accessible by your browser - try to open the URLs directly in your browser to see if that works, else please check the console for details. If you want, I could also test this extension at my forum with one of your images to see if I can make it work.

                11 days later

                Can someone tell me how to show the user badges as in the image below:-

                I have setup the extension and added badges. I tried giving the badge to a user, but it doesn't show in his profile or in the posts. Is this still not implemented?

                  11 days later
                  11 days later

                  noob404 If you're on the latest version, you can use images by using the URL via the admin dashboard. You'll have to upload the image yourself somewhere (for example, via FoF Upload) and then entert he URL of the image.

                  Are you sure there are no badges on the user profile? If not, can you check the console log? Maybe there was an issue showing them.

                  adbo It's unfortunately not planned yet, but I want to add it somewhere this year 🙂

                    Is it possible to make that badges from the Hidden category don't send notifications to users upon their obtain?

                    If yes, I would like to sponsor that update.

                    JasperVriends It is being shown in the user profile when you click on the user and then check his badges. But, when the user posts, it is not being shown at all. For example, you have the verified badge being shown on top of your avatar. That's not happening.

                    13 days later

                    Release v1.1.0 - User card badges 🪪

                    In today's update we'll release the ability to show badges in users their card. Thanks contributions of datlechin and opening a PR! 🚀

                    It's possible for admins to limit the visible badges and users can select their own badges. If there are no badges selected, they will be auto-selected as soon they are earned! This way all users will have something interesting.

                    Changelog

                    To update, run:

                    composer update v17development/flarum-user-badges

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

                    If you run into any issues, please make sure to create an issue here: https://github.com/v17development/flarum-user-badges/issues

                    Screenshots

                    Check out a few screenshots of the user card, the user profile and the badge selector below:

                    User Badges list

                    User Badges list

                    Badges in User Card

                    Badges in User Card

                    Select Badges for User Card

                    Select Badges for User Card