Discourse Gamification

@Falco It doesn’t seem to allow for decimal values for points. How difficult would it be to allow such a thing? The editor allows you to enter and save the value, but when you refresh the page it reverts or goes to 0.

When entering a decimal value in the UI, it seems the PUT request is accepted with 200 OK but the value still isn’t saved.

2 Likes

For points? Or for the multiplier in Site Settings?

1 Like

For the point values in the plugin settings.

2 Likes

Ohhh for the weights. While allowing only there would be doable, we are storing only integers, so the system will be truncating score during many steps of the calculation, which would make the system harder to validate.

For the moment I would recommend using larger numbers to accomplish the same effect, where instead of having let’s say

  • Like Given 0.5
  • Like Received 1

You can use

  • Like Given 5
  • Like Receives 10

and so on.

Works fine for Final Fantasy :innocent:

4 Likes

Hey, tks a lot for this plugin.

Wht do you think about adding users who answer a poll in the score? (ie: aggregate this action with the like given score value).

On my side, that would be terrific!

2 Likes

We’ve received some pushback from our community since switching this on. Part of that comes from the “All Time” view where folks who are active now feel less involved than those who have been active a while ago who are no longer active. So here’s an idea.

:bulb: Allow Admins to set the default timeframe view of the Leaderboard.

If that were the case I’d set it to either “Today” or “Week” as a way to help the community focus on the now.

Alternatively, include the timeframe parameters in the URL so folks could bookmark their preferred timeframe view of the Leaderboard.

I also reiterated this with our community:

Whenever I look at the leaderboard I first switch it to “Today” to get a quick sense of who is about. Then I switch to “Week” and then “Month”. It gives me a sense of who is “around”. It also reminds me to connect with people I haven’t connected with for a while. I then just switch away from the leaderboard and back to the “Everything Latest” view and get involved there, as that’s where it all matters.

4 Likes

I do agree! I am waiting for this feature but probably it will take time to have it

2 Likes

That’s already possible, as we had a great Enterprise customer sponsor this feature. To to the leaderboard you want and set the default time frame there.

4 Likes

Ah jeez, there it is! :facepalm:

Thanks for pointing that out, @Falco. :slightly_smiling_face:

4 Likes

That’s already in the roadmap of planned features in the OP:

5 Likes

Oups: sorry i haven’t double checked that.
Tks a lot for your response.

1 Like

@GH_Nam, I think this commit blanks out the name if a user doesn’t have a full name set:

6 Likes

Oh no, I will work on this!

2 Likes

For this one, is it possible to ask for a guidance for where to work on?
I am not sure if I should makes changes only to the Gamification plugin, or the Reaction plugin as well. Since not every site uses the Reactions plugin, is it okay to include settings about reactions in the gamification plugin?

2 Likes

Can that option only be enabled if Reactions plugin is found? I think that could do the trick :love_you_gesture:

1 Like

Is it possible to do an API PUT request to change the score of a user? Care to share how? I tried this but didn’t work

curl -X PUT "https://mydiscourse.com/u/someuser.json" \
-H "Api-Key: yadayday" \
-H "Api-Username: orlie" -d '{"gamification_score":123}' -H 'Content-Type: application/json'

Yes, we already do this for Discourse Solved. Since every scorable extends the base Scorable class you can redefine the enabled? method to check if a plugin is installed and enabled.

Yep, check out

5 Likes