david
(David Taylor)
Mars 26, 2018, 10:08
1
https://github.com/davidtaylorhq/discourse-admin-warnings
Lorsque les administrateurs cliquent sur « répondre » sur un sujet fermé, ils recevront un avertissement. Cela aide à empêcher les administrateurs de poursuivre accidentellement une discussion fermée ou archivée (ce qui est très frustrant pour les autres utilisateurs du forum !).
Le texte d’avertissement est configurable via un paramètre du thème.
Pour l’installer, suivez les instructions ici :
This is a guide for installing and managing themes and theme components in Discourse.
Required user level: Administrator
Installing and customizing themes can significantly improve the look and feel of your Discourse site. You can easily import and manage themes and their components through the Discourse admin panel.
This guide covers:
Importing new themes and theme components
Adding theme components to a theme
Managing automatic updates
Additional resourc…
30 « J'aime »
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)
Novembre 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 « J'aime »
wolftune
(Wolftune)
Novembre 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 « J'aime »
Stephen
(Stephen)
Novembre 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)
Novembre 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 « J'aime »
Stephen
(Stephen)
Novembre 5, 2018, 8:05
7
I’ve submitted a PR, but looking back @Johani actually already submitted this PR which does the same thing:
master ← hnb-ku:master
closed 08:08PM - 05 Nov 18 UTC
A theme component needs to be set to "component": true in order to show up on th… e components list in the admin interface.
9 « J'aime »
david
(David Taylor)
Novembre 5, 2018, 8:09
8
My bad, I completely missed your PR @Johani - sorry! The change is now merged, thanks @Stephen
10 « J'aime »
Heliosurge
(Dan DeMontmorency)
Février 5, 2020, 3:09
9
Hi David will this also warn Leader Level 4 users when replying to closed topics?
david
(David Taylor)
Février 5, 2020, 3:10
10
Yes, it should do - it will notify anyone who tries to reply to a closed topic. I probably should have chosen a better name for the component…
6 « J'aime »
Heliosurge
(Dan DeMontmorency)
Février 5, 2020, 3:12
11
Awesome thanks this will work very nicely as we often have elevated users replying to a closed Topic. Thank you for your excellent plugin!
3 « J'aime »
Je pense que cela doit peut-être être mis à jour ? (Arrêté de fonctionner après une mise à jour, mais je n’ai pas su laquelle en particulier).
1 « J'aime »
Heliosurge
(Dan DeMontmorency)
Novembre 19, 2020, 2:47
13
Je exécute la dernière version de Discourse avec les tests passés, et ce composant fonctionne toujours.
Est-ce que vous utilisez peut-être la version bêta ?