19 days later

malago try to add the achievements to the database directly.

can anyone give me an example? Like how to kind of thing.

    I was looking for a way to increase the fontawesome icon size of this extension as I didn't opted for image. So for people who thought like me and was looking for a way, here it is,

    .Achievements--User .Badge {
        font-size: 20px;
        color: #68BBE3;
        background: none;
    }

    Remeber if you have turned on alternative layout for upvotes/downvotes in gamification, increasing font-size beyond 25px seems little disturbing. 20px seemed good to me.

    malago is there any list of value to be placed in the computation field in the database table so to extend this further ?

      Justoverclock I believe this should be ready for 1.0, it is now compatible with beta16 so I will keep an eye on 1.0 when it releases to check that nothing is broken.

      User24 This must be done separately on phpmyadmin or another script you might have, you just have to add a row on the table flarum_achievements_user with the user_id, achievement_id, created_at (this is a datetime) and you can put the column new to 1 so the user will get a notification when they log in next time. This is only for very customized achievements or events that happen outside the forum.

      User24 I am not sure what are you trying to do, can you explain a little more your goal and maybe I can find a workaround for that purpose or I can modify the extension.

        malago I am not sure what are you trying to do, can you explain a little more your goal and maybe I can find a workaround for that purpose or I can modify the extension.

        I planning to give users - say if they visit continuously the site for 7 days, thinking of to give a 7 day streak badge to them. So list of possible events can help me add more achievements right?

          User24 That would be a cool achievement!

          I wonder if Flarum has any way to check this... Otherwise I don't see any other way to do it that is not storing a list of the days the user logged in the forum and then check if there are 7 days in a row. That can be a little out of the scope of this extension...

          Anyone knows an extension that already does or checks the days a user had logged in? Maybe I can use that logic or rely on another extension for this achievement.

            malago I wonder if Flarum has any way to check this... Otherwise I don't see any other way to do it that is not storing a list of the days the user logged in the forum

            Maybe, online user extention can be helpful in recording the login activity of users?

            10 days later

            Extension updated for Flarum 1.0 and a few more improvements!

            0.3.0

            • Added a page in the forum with the Achievements list
            • Improved the modal for Achievements in the admin
            • Added a tooltip to help with the Variable field in the admin
            • Changed how the achievement type posts on tag works, now it uses the slugof the tag and not the full name. The variable field will need to be changed for this type of achievements.
            • Compatible with Flarum 1.0

            How to update:

            composer update malago/flarum-achievements
            php flarum migrate
            php flarum cache:clear

            Please try it and let me know if you find any issue, here or on the github 🙂

            • [deleted]

            There is one bug with Fof Best Answer if you have selected the someone's post as best answer who don't have any badge and you have 2 badges so at the last of your post it will show yours badges and but in best answer green box other user box it shows your badges. HOPE YOU UNDERSTAND.

              [deleted] Got it! I will make a note to fix this. I haven't tried this interaction yet. Thanks for letting me know.

              Also, is it possible to place the display of medals in UserCard? Instead of displaying it in each post as it is now.

                shebaoting Yes! One of the options is number of likes received, is that what you are looking for?

                shebaoting I plan to add a few settings so that it is no so invasive on the posts and only shows up on the new achievements page. I will keep you updated when I make this change. Thanks for the suggestion.

                • [deleted]

                • Edited

                Hello @malago found a permission bug only admins can view achievements page please fix it soon

                One more thing like Fof Gamification hide rankings page link from sidebar on user = guest

                  [deleted] Thanks for the report, I fixed it on version 0.3.1, please update and let me know if this fixes your issue.

                  [deleted] There is one bug with Fof Best Answer

                  This was also solved on this version!

                  0.3.1

                  • Fixed Achievements page
                  • Achievements page link will not show for non registered users
                  • Changed tooltip to use the Tooltip component