هذا موضوعي الأول بعد أن أصبحت عضوًا هنا منذ 222 يومًا.
كيف يمكنني نسخ ولصق هذا الكود؟
أريد منح شارة لـ 25 دعوة ناجحة. إذن، أحتاج فقط إلى تغيير القيمة HAVING COUNT (*) >= 5 إلى HAVING COUNT (*) >= 25، وتعيين نوع الشارة ذهبيًا أيضًا. هل أنا محق؟
وجدت موضوعًا مشابهًا: https://meta.discourse.org/t/promoter-badge-broken/34413، لكنني أريد التأكد فقط، لأنني لستُ ملمًا حقًا بالبرمجة.
آسف على سؤالي “الغبي”.
إعجاب واحد (1)
cpradio
(cpradio)
20 مارس 2018، 4:50م
2
Here are the steps for enabling the SQL Badge Queries
Enabling Badge SQL entails security and performance risks.
Starting from Discourse 1.6 badge SQL can no longer be edited by admins unless explicitly enabled.
This change was made for a couple of reasons:
Security: Allowing admins to enter SQL directly grants them raw access to the database. Generally, we opt that raw access to the database from the web UI as a feature you opt-in for. Even though the queries only return user_ids, an admin attacker can discover any information in …
6 إعجابات
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)
simon
20 مارس 2018، 5:22م
4
5 إعجابات
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)
jomaxro
(Joshua Rosenfeld)
تم إغلاقه في
26 مارس 2018، 10:00م
6
This topic was automatically closed after 33 hours. New replies are no longer allowed.