malago now i'm able to install but seems something need a tweak

i do not understand how the image work 🙁

    Spectacular! This was exactly what I was looking for over here ctml! I'm not able to go to beta 16 yet to test, so I am really curious how the points work. Is it possible to display this as "Rep" or something like that on a users profile card?

    Some feature suggestions/ideas

    • counter of achievements on a users card
    • it would also be sweet if admins (or maybe public) could view a list of users and be able to sort by "Rep"... kind of like a rankings page.
    • achievements for a specific time period "Top poster of the month", "Most helpful user of the year"
      • it would be nice if these were automatic but if admins had a single pain of view into all of these metrics they could also reward manually.
    • support for best answer metrics
    • rewards for time spent online (maybe over a period of time), consecutive days signed on

    I'm sure time based metrics may be more challenging because they probably need to be continuously tracked.

    Thanks again for this amazing extension, would love to see some screenshots 🙂

      Justoverclock The image should be the size you want it to be, my recommendation is 64x64 px.

      You need to put that in the height and width on each achievement. If your image is bigger you will need to reduce it to the specific size or it will not appear correctly. It's a bit complicated but it was my first approximation!

      Let me know if you get it working

      Justoverclock @askvortsov no, I have a hosting with Aruba and they provide ssh only with dedicate server. I do all the composer thing on locale and then upload to server

        enricodx The migration was throwing an error so it should try to do it again. Did you try to just update the files and activate the extension again?

        Other option is to get into the database and delete the extension from the installed extensions, it should run the table creation again next time you activate it.

        You asked for a screenshot, here is one of the popup when you get a new achievement!

        ctml I think this extension is very close to what you are looking for! I will definitely consider adding the options you mentioned but for now I will focus on fixing upcoming bugs. It has been quite a ride to make this extension since I pretty much had to learn everything about Flarum, Laravel, Mithril... and there is still so much I don't understand yet 😅

          malago thank you for the example, that actually looks very nice! A nice way to reward users and make them feel valued by participating.

          RE: feature suggestions
          Completely understand, first comes stability, then come enhancements 🙂 I only provide my suggestions because of the excitement I get when seeing new extensions posted that clearly have so much value. Without even installing, I can tell it is a very impressive extension (regardless if it is only your first!) so again, thank you and great work!

          love the extension, i still wait for some improvement before using this on productions

          malago Now working! It's really awesome and I hope you'll keep developing it!

          Question 1: how the Manual variable works?
          Question 2: what is the "Points for this achievements" for?

          EDIT: I can't create any achievements. When I hit Save changes on the creation modal, I get a red alert error "oops something went wrong"

            enricodx Can you check the last log in the storage folder? The error will show up there and we can figure out what happened.

            Manual is just a placeholder for an achievement that you give manually. The number you put is not used at all. I guess I should hide that field in the future.

              I'm going to also add a feature request to the GitHub repo for this project to add the option to have different sizes for the post displayed achievement icon and the achievement modal that pops up. This will help with the sizing issue so it'll behave like platforms such as Reddit where the post achievement icons are small and the achievement received modal has the bigger image.

              Reddit award modal:

              Reddit award modal

              The post awards (count not required):

              Reddit post awards

              Edit: Done! malago86/flarum-achievements2

              trying to setup a new achievement, but when i click save i get the oops something went wrong error:

              console:
              Failed to load resource: the server responded with a status of 500 (Internal Server Error) api/achievements:1

              malago Here you go:

              [2021-04-03 10:11:59] flarum.ERROR: ParseError: syntax error, unexpected 'Arr' (T_STRING), expecting ')' in /web/htdocs/www.zerodx.it/home/forum/vendor/malago/flarum-achievements/src/Api/Controllers/CreateAchievementController.php:66

                enricodx I made this change days ago but for some reason it did not make it to the GitHub repository... I'm still learning how to use all these tools 🙄

                Version 0.1.2

                • Fixed missing comma
                • Added some tweaks to the achievements' image size

                Please update:
                composer update malago/flarum-achievements

                  malago Great! An important feature to add, in my opinion, is the ability to edit and remove previous achievement.