自動バッジ有効期限切れ

Discourse のユーザーに、定期的にエンゲージメントを維持している人への特典を提供したいと考えています。例えば、月に少なくとも 1 人の新規ユーザーを招待したユーザーにのみ特典を提供したいと考えています。

「プロモーター」というバッジを所有するすべてのユーザーにそのような特典を与えるように設定することはできますが、「プロモーター」バッジはユーザーが 1 人の訪問者を招待するだけで取得でき、そのバッジは永久に保持されてしまいます。

1 ヶ月後に「プロモーター」(または他の)バッジが自動的に削除され、ユーザーが再度それを獲得する必要があるように、バッジの有効期限を自動的に設定する方法はありますか?

あるいは、私が目指していること(ユーザーに月次のエンゲージメントを要求すること)に対して、より良いアプローチはありますか?

よろしくお願いいたします。

Definitely an interesting idea.

@codinghorror, I understand then that there is no such feature yet? :slight_smile:
Is there any workaround that can be used to implement this, even if manually? The main problem I see now is that I can’t see even information about when a badge was granted to a user. Is this available somewhere, even if it via API?

I guess you could use Discourse Data Explorer Plugin to replicate SQL queries and add time constraints to create new “expiring” badges. I did not check in the #plugin:data-explorer category or (Superseded) What cool data explorer queries have you come up with? collection if there are such queries already. It would definitely be appreciated to share what you come up with in this topic!

Under the 3 lines next to your Avatar, click Badges. Each badge has a number… for how many users have it. Click on the number it shows. Then, each user with the badge will be listed with the date they earned the badge.

But why would anyone want expiring badges? Users will get ticked, IMO.

This is actually a common ask within the community space. Badges that are tied to more recent/current actions of the users vs. the historical granting of badges you get to keep forever regardless of whether or not you are still active in the community. Especially for communities that have been up for years. Facebook does this with the “Top Fan” badge which is not static and can go away if you fade away from participating on the page.

If I simply manually delete a badge from an user, will he/she gain that badge again if he perform the needed actions?

これについては、基になるSQLクエリに時間要素が組み込まれた新しいバッジを作成するというアドバイスが引き続き有効だと思います。

クエリのヘルプが必要な場合は、#data-reportingでトピックを開始できます。:+1: