حقل الاستعلام المقفل لشارات النظام

هذا موضوعي الأول بعد أن أصبحت عضوًا هنا منذ 222 يومًا.

  1. كيف يمكنني نسخ ولصق هذا الكود؟

  2. أريد منح شارة لـ 25 دعوة ناجحة. إذن، أحتاج فقط إلى تغيير القيمة HAVING COUNT (*) >= 5 إلى HAVING COUNT (*) >= 25، وتعيين نوع الشارة ذهبيًا أيضًا. هل أنا محق؟

وجدت موضوعًا مشابهًا: https://meta.discourse.org/t/promoter-badge-broken/34413، لكنني أريد التأكد فقط، لأنني لستُ ملمًا حقًا بالبرمجة.

آسف على سؤالي “الغبي”.

Here are the steps for enabling the SQL Badge Queries

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.

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

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.