Gesperrtes Abfragefeld für Systemabzeichen

Das ist mein erster Beitrag, seit ich vor 222 Tagen Mitglied hier geworden bin.

  1. Wie kopiere und füge ich diesen Code ein?

  2. Ich möchte ein Abzeichen für 25 erfolgreiche Einladungen vergeben. Muss ich also nur den Wert HAVING COUNT (*) >= 5 in HAVING COUNT (*) >= 25 ändern und zusätzlich den Typ des Abzeichens auf „Gold" setzen? Stimmt das?

Ich habe ein ähnliches Thema gefunden: "Promoter" Badge broken?. Ich möchte es jedoch nur bestätigen, da ich mich mit dem Programmieren nicht wirklich auskenne.

Entschuldigt bitte meine dumme Frage.

1 „Gefällt mir“

Here are the steps for enabling the SQL Badge Queries

6 „Gefällt mir“

Thank you Cpradio, yes I have enabled the SQL within 3 days, but its still locked.
I believe its for security purpose.
I tried to explore the Github too, but still does not know how to find the code line.

1 „Gefällt mir“

You can find the badge query SQL here: discourse/lib/badge_queries.rb at main · discourse/discourse · GitHub

5 „Gefällt mir“

Thank you very much Simon.
I put wrong keyword in searching the code in the repository.
After I found the sql query, I still confuse.

I want to open another support topic, to make another question relating to this.
Thank you.

1 „Gefällt mir“

This topic was automatically closed after 33 hours. New replies are no longer allowed.