david
(David Taylor)
26 مارس 2018، 10:08م
1
https://github.com/davidtaylorhq/discourse-admin-warnings
عندما ينقر المسؤولون على “الرد” في موضوع مغلق، سيظهر لهم تحذير. يساعد ذلك في منع المسؤولين من الاستمرار في مناقشة مغلقة أو مؤرشفة عن طريق الخطأ (وهو ما يسبب إحباطاً كبيراً لمستخدمي المنتدى الآخرين!).
يمكن تكوين نص التحذير وترجمته.
للتركيب، اتبع التعليمات هنا:
هذا دليل لتثبيت وإدارة الثيمات (القوالب) ومكونات الثيم في Discourse.
مستوى المستخدم المطلوب: مسؤول (Administrator)
يمكن أن يؤدي تثبيت الثيمات وتخصيصها إلى تحسين مظهر موقع Discourse الخاص بك بشكل كبير. يمكنك بسهولة استيراد الثيمات ومكوناتها وإدارتها من خلال لوحة تحكم مسؤول Discourse.
يغطي هذا الدليل:
استيراد الثيمات ومكونات الثيمات الجديدة
إضافة مكونات الثيمات إلى ثيم
إدارة التحديثات التلقائية
مصادر إضافية لمزيد من التعلم
تثبيت الثيمات ومكونات الثيمات الجد…
30 إعجابًا
Thanks! Very useful!
Is there an easy way to extend this so the alert pop up pops up when highlight-quote replying too? I think it goes straight to the reply box as is.
wolftune
(Wolftune)
5 نوفمبر 2018، 5:38م
3
Awesome thanks!
Just capturing this here so someone capable of helping to implement might see it:
That would be great too! If added, maybe this can be renamed or merged into a more general warn-admins theme component for a range of (maybe selectable?) warnings for cases where admins do things in non-admin spaces that would not be allowed were they not admins.
إعجاب واحد (1)
wolftune
(Wolftune)
5 نوفمبر 2018، 7:55م
4
Maybe the code isn’t set right, but when I try to import this theme-component, it only imports as a full theme and isn’t selectable as a component for other themes…
إعجابَين (2)
Stephen
(Stephen)
5 نوفمبر 2018، 7:56م
5
If you scroll back up to the original post you’ll see that Discourse automatically lists replies or topics which link in:
Stephen
(Stephen)
5 نوفمبر 2018، 7:56م
6
Yep, it needs to be updated to support a change from the summer. For now you can use the convert button. I will submit a PR for it now though.
4 إعجابات
Stephen
(Stephen)
5 نوفمبر 2018، 8:05م
7
I’ve submitted a PR, but looking back @Johani actually already submitted this PR which does the same thing:
https://github.com/davidtaylorhq/discourse-admin-warnings/pull/1
9 إعجابات
david
(David Taylor)
5 نوفمبر 2018، 8:09م
8
My bad, I completely missed your PR @Johani - sorry! The change is now merged, thanks @Stephen
10 إعجابات
Heliosurge
(Dan DeMontmorency)
5 فبراير 2020، 3:09م
9
مرحبًا ديفيد، هل سيحذر هذا أيضًا مستخدمين مستوى القائد 4 عند الرد على مواضيع مغلقة؟
david
(David Taylor)
5 فبراير 2020، 3:10م
10
نعم، يجب أن يعمل ذلك — فهو سَيُبلغ أي شخص يحاول الرد على موضوع مغلق. ربما كان ينبغي لي اختيار اسم أفضل للمكون…
6 إعجابات
Heliosurge
(Dan DeMontmorency)
5 فبراير 2020، 3:12م
11
رائع، شكرًا لك! هذا سيُنجح بشكل ممتاز، حيث نواجه غالبًا مستخدمين مرموقين يردون على موضوع مغلق. شكرًا لك على إضافتك الممتازة!
3 إعجابات
أعتقد أن هذا قد يحتاج إلى تحديث؟ (توقف عن العمل بعد تحديث ما، لكنني لم أتمكن من تحديد التحديث المحدد).
إعجاب واحد (1)
Heliosurge
(Dan DeMontmorency)
19 نوفمبر 2020، 2:47ص
13
أنا أعمل على أحدث إصدار من Discourse وقد نجح الاختبار، ولا يزال هذا المكون يعمل.
هل تستخدم النسخة التجريبية ربما؟
@david لقد فتحت طلب سحب (PR) لإصلاح هذا الأمر مرة أخرى، هل يمكنك مراجعة الأمر عندما يكون لديك وقت؟
master ← awesomerobot:dev-refactor-composer-msg
opened 06:23PM - 22 Jul 26 UTC
This refactors the component to get it working again. I've restructured it to us… e composer popups and also include a button so someone with permissions can choose to open/unarchive a topic if desired.
<img width="800" alt="image" src="https://github.com/user-attachments/assets/fff21314-c34d-43f2-972b-36ecdfc97e40" />
<img width="800" alt="image" src="https://github.com/user-attachments/assets/c537c1f1-2860-46f1-84d1-cf93f33dfbf4" />
إعجابَين (2)