Expiration automatique des badges

J’aimerais offrir des avantages à mes utilisateurs Discourse qui restent engagés périodiquement. Par exemple, je souhaite accorder des avantages uniquement aux utilisateurs qui invitent au moins un nouvel utilisateur par mois.

Je pourrais configurer cela en disant que tous les utilisateurs possédant un badge « Promoteur » bénéficieront de ces avantages. Cependant, le badge « Promoteur » exige que l’utilisateur n’invite qu’un seul visiteur, et l’utilisateur conserve ce badge pour toujours.

Existe-t-il un moyen de configurer une expiration automatique du badge afin que, après un mois, le badge « Promoteur » (ou tout autre) soit retiré de l’utilisateur, l’obligeant à le gagner à nouveau ?

Ou existe-t-il une meilleure approche pour ce que je tente de faire (exiger un engagement mensuel de la part des utilisateurs) ?

Merci d’avance.

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?

Pour cela, je pense que le conseil serait toujours de créer de nouveaux badges qui intègrent un élément temporel dans la requête SQL sous-jacente.

Si quelqu’un a besoin d’aide pour une requête, vous pouvez ouvrir un sujet dans Data & reporting. :+1: