Nisutec
(Niclas)
5. Dezember 2019 um 05:43
1
Hallo,
ist es möglich, das Mitarbeiter-Symbol für Administratoren und Moderatoren durch ein anderes Symbol zu ersetzen?
Schau dir dieses Thema an:
Custom descriptions for automatic groups (admin/moderator/trust levels) will be available soon along with a new groups directory design.
I don’t think there’s a reason to not have flair for those groups, there’s just a bit of a complication where flair is currently used to show a user’s primary group, and automatic groups can’t be set as primary groups… so it’s a little more complicated than it seems on the surface.
There’s some related discussion about this here: Avatar Flair Image for Staff…
Nisutec
(Niclas)
5. Dezember 2019 um 06:51
3
Danke für diese Information, aber ich werde das Schild-Icon hinter dem Benutzernamen eines Mitarbeiters ändern.
Wenn dies die gewünschte Änderung ist, das Icon neben dem Benutzernamen
Füge dies zum gemeinsamen Header hinzu:
<script type="text/discourse-plugin" version="0.8">
api.replaceIcon('shield-alt', 'terminal');
</script>
„terminal
Nisutec
(Niclas)
6. Dezember 2019 um 06:12
5
Ich habe den folgenden Code zum Header hinzugefügt
Aber jetzt ist das Schild-Icon versteckt. Wie kann ich ein anderes FA-Icon verwenden?
Ist es möglich, FA Pro-Icons zum „SVG-Icon-Subset“ hinzuzufügen?
[quote=“Nisutec, Beitrag:5, Thema:135129”]
Ist es möglich, FA Pro-Icons zur „SVG-Icon-Teilmenge
Canapin
(Coin-coin le Canapin)
6. Dezember 2019 um 14:54
7
Ich bin mir nicht sicher, ob das helfen kann, aber vielleicht kannst du dir das hier ansehen:
You can replace a Discourse’s default SVG icons individually or as a whole with your own custom SVG and override them within a theme or theme component.
Step 1 - Create an SVG Spritesheet
To get started, you must create an SVG Spritesheet. This can contain anything from a single additional custom SVG icon up to an entire replacement set of hundreds.
The spritesheet should be saved as an SVG file. In principle, you are nesting the <svg> tag contents from the original SVG icon file into <symbol> …
See also: We're upgrading our icons to Font Awesome 6!
We will shortly merge into master a branch that upgrades Discourse to Font Awesome 5.5.0 (the free version) and switches to using SVG icons instead of an icon font. This is a substantial change, with lots of benefits, and one significant change for developers.
Here is a quick rundown of the changes:
using SVG icons will provide crisper icons, better for accessibility and easier to customize, see this Github article for more details
since…
Nisutec
(Niclas)
6. Dezember 2019 um 18:43
8
Okay, die erste Zeile meines Headers dient der Möglichkeit, alle FA-Icons zu verwenden. Aber im Moment kann die API darauf wahrscheinlich nicht zugreifen.
Ich werde versuchen, eine Feature-Anfrage dafür zu stellen.
Vielen Dank an alle für eure Hilfe
Nisutec
(Niclas)
6. Dezember 2019 um 21:29
9
Wie kann ich eine benutzerdefinierte SVG-Datei als Symbol verwenden?
Ich habe die SVG-Datei im Dark Design hochgeladen.
Und ich habe folgenden benutzerdefinierten Header:
<script type="text/discourse-plugin" version="0.8">
api.replaceIcon('shield-alt', '$shield-alt-duotone');
</script>
Das Symbol wird jedoch nicht angezeigt.
Canapin
(Coin-coin le Canapin)
6. Dezember 2019 um 21:45
10
So funktioniert es nicht. $shield-alt-duotone ist eine Variable, die in Ihrem benutzerdefinierten CSS verwendet werden soll. Der erste Beitrag, den ich zuvor verlinkt habe, erklärt, wie man Symbole durch neue mit einer SVG-Datei ersetzt:
You can replace a Discourse’s default SVG icons individually or as a whole with your own custom SVG and override them within a theme or theme component.
Step 1 - Create an SVG Spritesheet
To get started, you must create an SVG Spritesheet. This can contain anything from a single additional custom SVG icon up to an entire replacement set of hundreds.
The spritesheet should be saved as an SVG file. In principle, you are nesting the <svg> tag contents from the original SVG icon file into <symbol> …
Nisutec
(Niclas)
7. Dezember 2019 um 09:29
11
Ok, es funktioniert. Danke.